Documentation ¶
Overview ¶
Package routermock is a generated GoMock package.
Index ¶
- type Router
- func (m *Router) AddChain(ctx context.Context, chain handler.Handler)
- func (m *Router) Benched(chainID ids.ID, validatorID ids.NodeID)
- func (m *Router) Connected(nodeID ids.NodeID, nodeVersion *version.Application, subnetID ids.ID)
- func (m *Router) Disconnected(nodeID ids.NodeID)
- func (m *Router) EXPECT() *RouterMockRecorder
- func (m *Router) HandleInbound(arg0 context.Context, arg1 message.InboundMessage)
- func (m *Router) HealthCheck(arg0 context.Context) (any, error)
- func (m *Router) Initialize(nodeID ids.NodeID, log logging.Logger, timeouts timeout.Manager, ...) error
- func (m *Router) RegisterRequest(ctx context.Context, nodeID ids.NodeID, chainID ids.ID, requestID uint32, ...)
- func (m *Router) Shutdown(arg0 context.Context)
- func (m *Router) Unbenched(chainID ids.ID, validatorID ids.NodeID)
- type RouterMockRecorder
- func (mr *RouterMockRecorder) AddChain(ctx, chain any) *gomock.Call
- func (mr *RouterMockRecorder) Benched(chainID, validatorID any) *gomock.Call
- func (mr *RouterMockRecorder) Connected(nodeID, nodeVersion, subnetID any) *gomock.Call
- func (mr *RouterMockRecorder) Disconnected(nodeID any) *gomock.Call
- func (mr *RouterMockRecorder) HandleInbound(arg0, arg1 any) *gomock.Call
- func (mr *RouterMockRecorder) HealthCheck(arg0 any) *gomock.Call
- func (mr *RouterMockRecorder) Initialize(...) *gomock.Call
- func (mr *RouterMockRecorder) RegisterRequest(ctx, nodeID, chainID, requestID, op, failedMsg, engineType any) *gomock.Call
- func (mr *RouterMockRecorder) Shutdown(arg0 any) *gomock.Call
- func (mr *RouterMockRecorder) Unbenched(chainID, validatorID any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
Router is a mock of Router interface.
func NewRouter ¶
func NewRouter(ctrl *gomock.Controller) *Router
NewRouter creates a new mock instance.
func (*Router) Disconnected ¶
Disconnected mocks base method.
func (*Router) EXPECT ¶
func (m *Router) EXPECT() *RouterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*Router) HandleInbound ¶
func (m *Router) HandleInbound(arg0 context.Context, arg1 message.InboundMessage)
HandleInbound mocks base method.
func (*Router) HealthCheck ¶
HealthCheck mocks base method.
func (*Router) Initialize ¶
func (m *Router) Initialize(nodeID ids.NodeID, log logging.Logger, timeouts timeout.Manager, shutdownTimeout time.Duration, criticalChains set.Set[ids.ID], sybilProtectionEnabled bool, trackedSubnets set.Set[ids.ID], onFatal func(int), healthConfig router.HealthConfig, reg prometheus.Registerer) error
Initialize mocks base method.
func (*Router) RegisterRequest ¶
func (m *Router) RegisterRequest(ctx context.Context, nodeID ids.NodeID, chainID ids.ID, requestID uint32, op message.Op, failedMsg message.InboundMessage, engineType p2p.EngineType)
RegisterRequest mocks base method.
type RouterMockRecorder ¶
type RouterMockRecorder struct {
// contains filtered or unexported fields
}
RouterMockRecorder is the mock recorder for Router.
func (*RouterMockRecorder) AddChain ¶
func (mr *RouterMockRecorder) AddChain(ctx, chain any) *gomock.Call
AddChain indicates an expected call of AddChain.
func (*RouterMockRecorder) Benched ¶
func (mr *RouterMockRecorder) Benched(chainID, validatorID any) *gomock.Call
Benched indicates an expected call of Benched.
func (*RouterMockRecorder) Connected ¶
func (mr *RouterMockRecorder) Connected(nodeID, nodeVersion, subnetID any) *gomock.Call
Connected indicates an expected call of Connected.
func (*RouterMockRecorder) Disconnected ¶
func (mr *RouterMockRecorder) Disconnected(nodeID any) *gomock.Call
Disconnected indicates an expected call of Disconnected.
func (*RouterMockRecorder) HandleInbound ¶
func (mr *RouterMockRecorder) HandleInbound(arg0, arg1 any) *gomock.Call
HandleInbound indicates an expected call of HandleInbound.
func (*RouterMockRecorder) HealthCheck ¶
func (mr *RouterMockRecorder) HealthCheck(arg0 any) *gomock.Call
HealthCheck indicates an expected call of HealthCheck.
func (*RouterMockRecorder) Initialize ¶
func (mr *RouterMockRecorder) Initialize(nodeID, log, timeouts, shutdownTimeout, criticalChains, sybilProtectionEnabled, trackedSubnets, onFatal, healthConfig, reg any) *gomock.Call
Initialize indicates an expected call of Initialize.
func (*RouterMockRecorder) RegisterRequest ¶
func (mr *RouterMockRecorder) RegisterRequest(ctx, nodeID, chainID, requestID, op, failedMsg, engineType any) *gomock.Call
RegisterRequest indicates an expected call of RegisterRequest.