routermock

package
v1.12.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Overview

Package routermock is a generated GoMock package.

Index

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) AddChain

func (m *Router) AddChain(ctx context.Context, chain handler.Handler)

AddChain mocks base method.

func (*Router) Benched

func (m *Router) Benched(chainID ids.ID, validatorID ids.NodeID)

Benched mocks base method.

func (*Router) Connected

func (m *Router) Connected(nodeID ids.NodeID, nodeVersion *version.Application, subnetID ids.ID)

Connected mocks base method.

func (*Router) Disconnected

func (m *Router) Disconnected(nodeID ids.NodeID)

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

func (m *Router) HealthCheck(arg0 context.Context) (any, error)

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.

func (*Router) Shutdown

func (m *Router) Shutdown(arg0 context.Context)

Shutdown mocks base method.

func (*Router) Unbenched

func (m *Router) Unbenched(chainID ids.ID, validatorID ids.NodeID)

Unbenched 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.

func (*RouterMockRecorder) Shutdown

func (mr *RouterMockRecorder) Shutdown(arg0 any) *gomock.Call

Shutdown indicates an expected call of Shutdown.

func (*RouterMockRecorder) Unbenched

func (mr *RouterMockRecorder) Unbenched(chainID, validatorID any) *gomock.Call

Unbenched indicates an expected call of Unbenched.

Jump to

Keyboard shortcuts

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