processor

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: GPL-3.0 Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDirectConnectionProcessor

func NewDirectConnectionProcessor(args ArgsDirectConnectionProcessor) (*directConnectionProcessor, error)

NewDirectConnectionProcessor will create a new direct connection processor instance

func NewPeerAuthenticationRequestsProcessor

func NewPeerAuthenticationRequestsProcessor(args ArgPeerAuthenticationRequestsProcessor) (*peerAuthenticationRequestsProcessor, error)

NewPeerAuthenticationRequestsProcessor creates a new instance of peerAuthenticationRequestsProcessor

Types

type ArgPeerAuthenticationRequestsProcessor

type ArgPeerAuthenticationRequestsProcessor struct {
	RequestHandler          process.RequestHandler
	NodesCoordinator        heartbeat.NodesCoordinator
	PeerAuthenticationPool  storage.Cacher
	ShardId                 uint32
	Epoch                   uint32
	MinPeersThreshold       float32
	DelayBetweenRequests    time.Duration
	MaxTimeout              time.Duration
	MaxMissingKeysInRequest uint32
	Randomizer              dataRetriever.IntRandomizer
}

ArgPeerAuthenticationRequestsProcessor represents the arguments for the peer authentication request processor

type ArgsDirectConnectionProcessor

type ArgsDirectConnectionProcessor struct {
	TimeToReadDirectConnections time.Duration
	Messenger                   heartbeat.P2PMessenger
	PeerShardMapper             heartbeat.PeerShardMapper
	ShardCoordinator            sharding.Coordinator
	BaseIntraShardTopic         string
	BaseCrossShardTopic         string
}

ArgsDirectConnectionProcessor is the argument DTO for the NewDirectConnectionProcessor constructor function

type NodesCoordinator

type NodesCoordinator interface {
	GetOwnPublicKey() []byte
	GetValidatorWithPublicKey(publicKey []byte) (nodesCoord.Validator, uint32, error)
	IsInterfaceNil() bool
}

NodesCoordinator defines the operations for a struct that is able to determine if a key is a validator or not

Jump to

Keyboard shortcuts

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