Documentation ¶
Overview ¶
Package sender is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New( ctx *snow.ConsensusContext, msgCreator message.OutboundMsgBuilder, externalSender ExternalSender, router router.Router, timeouts timeout.Manager, engineType p2p.EngineType, subnet subnets.Subnet, ) (common.Sender, error)
Types ¶
type ExternalSender ¶
type ExternalSender interface { Send( msg message.OutboundMessage, config common.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
type ExternalSenderTest ¶
type ExternalSenderTest struct { TB testing.TB CantSend bool SendF func(msg message.OutboundMessage, config common.SendConfig, subnetID ids.ID, allower subnets.Allower) set.Set[ids.NodeID] }
ExternalSenderTest is a test sender
func (*ExternalSenderTest) Default ¶
func (s *ExternalSenderTest) Default(cant bool)
Default set the default callable value to [cant]
func (*ExternalSenderTest) Send ¶
func (s *ExternalSenderTest) Send( msg message.OutboundMessage, config common.SendConfig, subnetID ids.ID, allower subnets.Allower, ) set.Set[ids.NodeID]
type MockExternalSender ¶ added in v1.9.4
type MockExternalSender struct {
// contains filtered or unexported fields
}
MockExternalSender is a mock of ExternalSender interface.
func NewMockExternalSender ¶ added in v1.9.4
func NewMockExternalSender(ctrl *gomock.Controller) *MockExternalSender
NewMockExternalSender creates a new mock instance.
func (*MockExternalSender) EXPECT ¶ added in v1.9.4
func (m *MockExternalSender) EXPECT() *MockExternalSenderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockExternalSender) Send ¶ added in v1.9.4
func (m *MockExternalSender) Send(msg message.OutboundMessage, config common.SendConfig, subnetID ids.ID, allower subnets.Allower) set.Set[ids.NodeID]
Send mocks base method.
type MockExternalSenderMockRecorder ¶ added in v1.9.4
type MockExternalSenderMockRecorder struct {
// contains filtered or unexported fields
}
MockExternalSenderMockRecorder is the mock recorder for MockExternalSender.
Click to show internal directories.
Click to hide internal directories.