package
0.0.0-20230720142802-055f8dac88b4
Repository: https://github.com/wetware/casm.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
New socket.
NewBandwidthLimiter enforces limits over the network bandwidth used by a socket.
NewCache creates a new RecordCache with the given size.
NewPacketLimiter enforces limits over the number of packets sent by a socket.
No description provided by the author
WithCache sets the socket's record cache.
WithErrHandler sets the socket's error callback.
WithLogger sets the logger instance.
WithRateLimiter sets the socket's rate-limiter.
WithValidator sets the socket's record validator.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

TODO: register this once stable.
ErrClosed is returned when performing operations against a closed socket.
ErrIgnore causes a message to be dropped silently.
ErrNoListenAddrs is returned if the host has not exported any listen addresses.

# Structs

ProtocolError signals a non-fatal error caused either either by a malformed *record.Envelope, or by a *Record containing unexpected values.
RateLimiter provides flow-control for a Socket.
No description provided by the author
No description provided by the author
Socket is a a packet-oriented network interface that exchanges signed messages.
ValidationError signals that a packet contains the expected data, but that its authenticity and provenance could not be proven.

# Interfaces

No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Sealer is a higher-order function capable of sealing a record for a specific peer.