Versions in this module Expand all Collapse all v1 v1.14.2 Aug 2, 2025 Changes in this version + func NewAdapter(sender AppSender) core.AppSender + type Adapter struct + func (a *Adapter) SendAppError(ctx context.Context, nodeID ids.NodeID, requestID uint32, errorCode int32, ...) error + func (a *Adapter) SendAppGossip(ctx context.Context, msg []byte) error + func (a *Adapter) SendAppRequest(ctx context.Context, nodeIDs []ids.NodeID, requestID uint32, msg []byte) error + func (a *Adapter) SendAppResponse(ctx context.Context, nodeID ids.NodeID, requestID uint32, msg []byte) error + func (a *Adapter) SendCrossChainAppRequest(ctx context.Context, chainID ids.ID, requestID uint32, msg []byte) error + func (a *Adapter) SendCrossChainAppResponse(ctx context.Context, chainID ids.ID, requestID uint32, msg []byte) error + type AppSender interface + SendAppGossip func(ctx context.Context, config SendConfig, message []byte) error + SendAppGossipSpecific func(ctx context.Context, nodeIDs set.Set[ids.NodeID], message []byte) error + SendAppRequest func(ctx context.Context, nodeIDs set.Set[ids.NodeID], requestID uint32, ...) error + SendAppResponse func(ctx context.Context, nodeID ids.NodeID, requestID uint32, message []byte) error + SendCrossChainAppRequest func(ctx context.Context, chainID ids.ID, requestID uint32, message []byte) error + SendCrossChainAppResponse func(ctx context.Context, chainID ids.ID, requestID uint32, message []byte) error + type Client struct + func NewClient(client appsenderpb.AppSenderClient) *Client + func (c *Client) SendAppError(ctx context.Context, nodeID ids.NodeID, requestID uint32, errorCode int32, ...) error + func (c *Client) SendAppGossip(ctx context.Context, msg []byte) error + func (c *Client) SendAppRequest(ctx context.Context, nodeIDs []ids.NodeID, requestID uint32, msg []byte) error + func (c *Client) SendAppResponse(ctx context.Context, nodeID ids.NodeID, requestID uint32, msg []byte) error + func (c *Client) SendCrossChainAppRequest(ctx context.Context, chainID ids.ID, requestID uint32, msg []byte) error + func (c *Client) SendCrossChainAppResponse(ctx context.Context, chainID ids.ID, requestID uint32, msg []byte) error + type GRPCServer struct + func NewGRPCServer(appSender core.AppSender) *GRPCServer + func (s *GRPCServer) SendAppError(ctx context.Context, req *appsenderpb.SendAppErrorMsg) (*emptypb.Empty, error) + func (s *GRPCServer) SendAppGossip(ctx context.Context, req *appsenderpb.SendAppGossipMsg) (*emptypb.Empty, error) + func (s *GRPCServer) SendAppRequest(ctx context.Context, req *appsenderpb.SendAppRequestMsg) (*emptypb.Empty, error) + func (s *GRPCServer) SendAppResponse(ctx context.Context, req *appsenderpb.SendAppResponseMsg) (*emptypb.Empty, error) + type SendConfig struct + NonValidators set.Set[ids.NodeID] + Validators set.Set[ids.NodeID] + type Server struct + func NewServer(sender AppSender) *Server Other modules containing this package github.com/luxfi/node/v2