Documentation ¶
Index ¶
Constants ¶
View Source
const (
CodecVersion = 0
)
Variables ¶
View Source
var Codec codec.Manager
View Source
var (
ErrUnexpectedCodecVersion = errors.New("unexpected codec version")
)
Functions ¶
Types ¶
type Message ¶
type Message interface { // Handle this message with the correct message handler Handle(handler Handler, nodeID ids.NodeID, requestID uint32) error // Bytes returns the binary representation of this message // // Bytes should only be called after being initialized Bytes() []byte // contains filtered or unexported methods }
type NoopHandler ¶
Click to show internal directories.
Click to hide internal directories.