Documentation
¶
Index ¶
- func ConvertPublicKeyToPeerID(pk crypto.PublicKey) (core.PeerID, error)
- func NewNetworkMessenger(args ArgsNetworkMessenger) (p2p.Messenger, error)
- func NewPeersHolder(preferredConnectionAddresses []string) (p2p.PreferredPeersHolderHandler, error)
- func NewPeersRatingHandler(args ArgPeersRatingHandler) (p2p.PeersRatingHandler, error)
- type ArgPeersRatingHandler
- type ArgsNetworkMessenger
- type LocalSyncTimer
- type Message
- type PeerShard
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertPublicKeyToPeerID ¶
ConvertPublicKeyToPeerID will convert a public key to core.PeerID
func NewNetworkMessenger ¶
func NewNetworkMessenger(args ArgsNetworkMessenger) (p2p.Messenger, error)
NewNetworkMessenger creates a libP2P messenger by opening a port on the current machine
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
Types ¶
type ArgPeersRatingHandler ¶
type ArgPeersRatingHandler = rating.ArgPeersRatingHandler
ArgPeersRatingHandler is the DTO used to create a new peers rating handler
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
Click to show internal directories.
Click to hide internal directories.