heartbeat

package
v1.11.3 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 License: GPL-3.0 Imports: 10 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 NewInterceptedHeartbeat

func NewInterceptedHeartbeat(arg ArgBaseInterceptedHeartbeat) (*interceptedHeartbeat, error)

NewInterceptedHeartbeat tries to create a new intercepted heartbeat instance

func NewInterceptedPeerAuthentication

func NewInterceptedPeerAuthentication(arg ArgInterceptedPeerAuthentication) (*interceptedPeerAuthentication, error)

NewInterceptedPeerAuthentication tries to create a new intercepted peer authentication instance

Types

type ArgBaseInterceptedHeartbeat

type ArgBaseInterceptedHeartbeat struct {
	DataBuff   []byte
	Marshaller marshal.Marshalizer
}

ArgBaseInterceptedHeartbeat is the base argument used for messages

type ArgInterceptedPeerAuthentication

type ArgInterceptedPeerAuthentication struct {
	ArgBaseInterceptedHeartbeat
	NodesCoordinator      NodesCoordinator
	SignaturesHandler     SignaturesHandler
	PeerSignatureHandler  crypto.PeerSignatureHandler
	PayloadValidator      process.PeerAuthenticationPayloadValidator
	HardforkTriggerPubKey []byte
}

ArgInterceptedPeerAuthentication is the argument used in the intercepted peer authentication constructor

type NodesCoordinator

type NodesCoordinator interface {
	GetValidatorWithPublicKey(publicKey []byte) (validator nodesCoordinator.Validator, shardId uint32, err error)
	IsInterfaceNil() bool
}

NodesCoordinator defines the behavior of a struct able to do validator selection

type SignaturesHandler

type SignaturesHandler interface {
	Verify(payload []byte, pid core.PeerID, signature []byte) error
	IsInterfaceNil() bool
}

SignaturesHandler defines the behavior of a struct able to handle signatures

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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