Versions in this module Expand all Collapse all v0 v0.5.6 Jul 16, 2024 v0.0.1 Jun 28, 2024 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(router *p2p.Router, appSender common.AppSender, codec 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