Documentation ¶
Index ¶
- func NewInterceptedHeartbeat(arg ArgBaseInterceptedHeartbeat) (*interceptedHeartbeat, error)
- func NewInterceptedPeerAuthentication(arg ArgInterceptedPeerAuthentication) (*interceptedPeerAuthentication, error)
- type ArgBaseInterceptedHeartbeat
- type ArgInterceptedPeerAuthentication
- type NodesCoordinator
- type SignaturesHandler
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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.