Help us shape the future of Go! Take the 2026 Go Developer Survey

sender

package
v1.13.16 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2025 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New added in v0.15.6

func New(
	ctx *consensus.Context,
	msgCreator message.OutboundMsgBuilder,
	externalSender ExternalSender,
	router router.InternalHandler,
	timeouts timeout.Manager,
	engineType p2p.EngineType,
	subnet subnets.Subnet,
	reg prometheus.Registerer,
) (engine.Sender, error)

func Trace added in v0.15.6

func Trace(sender engine.Sender, tracer trace.Tracer) engine.Sender

Types

type ExternalSender

type ExternalSender interface {
	Send(
		msg message.OutboundMessage,
		config engine.SendConfig,
		subnetID ids.ID,
		allower subnets.Allower,
	) set.Set[ids.NodeID]
}

ExternalSender sends consensus messages to other validators Right now this is implemented in the networking package

Directories

Path Synopsis
Package sendermock is a generated GoMock package.
Package sendermock is a generated GoMock package.

Jump to

Keyboard shortcuts

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