Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 )
type Sender ¶
type Sender interface {
// Send sends a message
Send(context.Context, Message) error
// SendRequest sends a warp request
SendRequest(context.Context, set.Set[ids.NodeID], uint32, []byte) error
// SendResponse sends a warp response
SendResponse(context.Context, ids.NodeID, uint32, []byte) error
// SendGossip sends warp gossip
SendGossip(context.Context, warp.SendConfig, []byte) error
}
Sender sends messages
Directories
¶
| Path | Synopsis |
|---|---|
|
Package sendermock provides mock implementations for message sending
|
Package sendermock provides mock implementations for message sending |
|
Package sendertest provides test utilities for message sending
|
Package sendertest provides test utilities for message sending |
Click to show internal directories.
Click to hide internal directories.