Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler interface {
// HandleInbound handles inbound messages
HandleInbound(context.Context, Message) error
// HandleOutbound handles outbound messages
HandleOutbound(context.Context, Message) error
// Connected handles node connection
Connected(context.Context, ids.NodeID) error
// Disconnected handles node disconnection
Disconnected(context.Context, ids.NodeID) error
}
Handler handles network messages
type Op ¶
type Op byte
Op represents an operation
const ( // GetAcceptedFrontier gets accepted frontier GetAcceptedFrontier Op = iota // AcceptedFrontier is accepted frontier response AcceptedFrontier // GetAccepted gets accepted GetAccepted // Accepted is accepted response Accepted // Get gets an item Get // Put puts an item Put // PushQuery pushes a query PushQuery // PullQuery pulls a query PullQuery // Chits is chits response Chits )
Click to show internal directories.
Click to hide internal directories.