Documentation ¶
Index ¶
- func NewMessageVerifier(args ArgsMessageVerifier) (p2p.P2PSigningHandler, error)
- func NewNetworkMessenger(args ArgsNetworkMessenger) (p2p.Messenger, error)
- func NewP2PKeyConverter() p2p.P2PKeyConverter
- func NewPeersHolder(preferredConnectionAddresses []string) (p2p.PreferredPeersHolderHandler, error)
- func NewPeersRatingHandler(args ArgPeersRatingHandler) (p2p.PeersRatingHandler, error)
- func NewPeersRatingMonitor(args ArgPeersRatingMonitor) (p2p.PeersRatingMonitor, error)
- type ArgPeersRatingHandler
- type ArgPeersRatingMonitor
- type ArgsMessageVerifier
- type ArgsNetworkMessenger
- type LocalSyncTimer
- type Message
- type PeerShard
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMessageVerifier ¶ added in v1.6.0
func NewMessageVerifier(args ArgsMessageVerifier) (p2p.P2PSigningHandler, error)
NewMessageVerifier will return a new instance of messages verifier
func NewNetworkMessenger ¶
func NewNetworkMessenger(args ArgsNetworkMessenger) (p2p.Messenger, error)
NewNetworkMessenger creates a libP2P messenger by opening a port on the current machine
func NewP2PKeyConverter ¶ added in v1.6.0
func NewP2PKeyConverter() p2p.P2PKeyConverter
NewP2PKeyConverter returns a new instance of p2pKeyConverter
func NewPeersHolder ¶
func NewPeersHolder(preferredConnectionAddresses []string) (p2p.PreferredPeersHolderHandler, error)
NewPeersHolder returns a new instance of peersHolder
func NewPeersRatingHandler ¶
func NewPeersRatingHandler(args ArgPeersRatingHandler) (p2p.PeersRatingHandler, error)
NewPeersRatingHandler returns a new peers rating handler
func NewPeersRatingMonitor ¶ added in v1.6.0
func NewPeersRatingMonitor(args ArgPeersRatingMonitor) (p2p.PeersRatingMonitor, error)
NewPeersRatingMonitor returns a new peers rating monitor
Types ¶
type ArgPeersRatingHandler ¶
type ArgPeersRatingHandler = rating.ArgPeersRatingHandler
ArgPeersRatingHandler is the DTO used to create a new peers rating handler
type ArgPeersRatingMonitor ¶ added in v1.6.0
type ArgPeersRatingMonitor = rating.ArgPeersRatingMonitor
ArgPeersRatingMonitor is the DTO used to create a new peers rating monitor
type ArgsMessageVerifier ¶ added in v1.6.0
type ArgsMessageVerifier = messagecheck.ArgsMessageVerifier
ArgsMessageVerifier defines the args used to create a message verifier
type ArgsNetworkMessenger ¶
type ArgsNetworkMessenger = libp2p.ArgsNetworkMessenger
ArgsNetworkMessenger defines the options used to create a p2p wrapper
type LocalSyncTimer ¶
type LocalSyncTimer = libp2p.LocalSyncTimer
LocalSyncTimer uses the local system to provide the current time