Versions in this module Expand all Collapse all v0 v0.11.7 Jun 29, 2023 Changes in this version + var ErrRequestFailed = errors.New("request failed") + func NewPeerTracker() *peerTracker + type Network interface + Gossip func(gossip []byte) error + SendAppRequest func(nodeID ids.NodeID, message []byte, handler message.ResponseHandler) error + SendAppRequestAny func(minVersion *version.Application, message []byte, ...) (ids.NodeID, error) + SendCrossChainRequest func(chainID ids.ID, message []byte, handler message.ResponseHandler) error + SetCrossChainRequestHandler func(handler message.CrossChainRequestHandler) + SetGossipHandler func(handler message.GossipHandler) + SetRequestHandler func(handler message.RequestHandler) + Shutdown func() + Size func() uint32 + TrackBandwidth func(nodeID ids.NodeID, bandwidth float64) + func NewNetwork(appSender common.AppSender, codec codec.Manager, crossChainCodec codec.Manager, ...) Network + type NetworkClient interface + Gossip func(gossip []byte) error + SendAppRequest func(nodeID ids.NodeID, request []byte) ([]byte, error) + SendAppRequestAny func(minVersion *version.Application, request []byte) ([]byte, ids.NodeID, error) + SendCrossChainRequest func(chainID ids.ID, request []byte) ([]byte, error) + TrackBandwidth func(nodeID ids.NodeID, bandwidth float64) + func NewNetworkClient(network Network) NetworkClient v0.11.7-rc.0 Jun 29, 2023