factory

package
v1.8.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

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

type Message

type Message = message.Message

Message is a data holder struct

type PeerShard

type PeerShard = message.PeerShard

PeerShard represents the data regarding a new direct connection`s info

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL