Documentation
¶
Overview ¶
Package appsender provides the AppSender interface for cross-chain communication.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppSender ¶
type AppSender interface {
// SendAppRequest sends an application-level request to the given nodes.
SendAppRequest(ctx context.Context, nodeIDs set.Set[ids.NodeID], requestID uint32, appRequestBytes []byte) error
// SendAppResponse sends an application-level response to the given node.
SendAppResponse(ctx context.Context, nodeID ids.NodeID, requestID uint32, appResponseBytes []byte) error
// SendAppGossip sends an application-level gossip message to the given nodes.
SendAppGossip(ctx context.Context, nodeIDs set.Set[ids.NodeID], appGossipBytes []byte) error
// SendAppError sends an application error to the given node.
SendAppError(ctx context.Context, nodeID ids.NodeID, requestID uint32, errorCode int32, errorMessage string) error
}
AppSender sends application-level messages to other nodes.
Click to show internal directories.
Click to hide internal directories.