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

mocks

package
v1.24.12 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRouter

type MockRouter struct {
	// contains filtered or unexported fields
}

MockRouter is a mock of Router interface.

func NewMockRouter

func NewMockRouter(ctrl *gomock.Controller) *MockRouter

NewMockRouter creates a new mock instance.

func (*MockRouter) AddChain

func (m *MockRouter) AddChain(chainID ids.ID, handler any)

AddChain mocks base method.

func (*MockRouter) Connected

func (m *MockRouter) Connected(nodeID ids.NodeID, nodeVersion *version.Application, netID ids.ID)

Connected mocks base method.

func (*MockRouter) Disconnected

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

Disconnected mocks base method.

func (*MockRouter) EXPECT

func (m *MockRouter) EXPECT() *MockRouterMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRouter) Gossip added in v1.22.87

func (m *MockRouter) Gossip(ctx context.Context, nodeID ids.NodeID, msg []byte) error

Gossip mocks base method.

func (*MockRouter) HandleInbound

func (m *MockRouter) HandleInbound(arg0 context.Context, arg1 any)

HandleInbound mocks base method.

func (*MockRouter) HealthCheck

func (m *MockRouter) HealthCheck(ctx context.Context) (any, error)

HealthCheck mocks base method.

func (*MockRouter) Initialize

func (m *MockRouter) Initialize(nodeID ids.NodeID, log, timeoutManager any, closeTimeout time.Duration, criticalChains any, sybilProtectionEnabled bool, trackedNets any, onFatal func(int), healthConfig interface{}, metricsRegisterer any) error

Initialize mocks base method.

func (*MockRouter) RemoveChain

func (m *MockRouter) RemoveChain(chainID ids.ID)

RemoveChain mocks base method.

func (*MockRouter) Request added in v1.22.87

func (m *MockRouter) Request(ctx context.Context, nodeID ids.NodeID, requestID uint32, deadline time.Time, appRequestBytes []byte) error

Request mocks base method.

func (*MockRouter) RequestFailed added in v1.22.87

func (m *MockRouter) RequestFailed(ctx context.Context, nodeID ids.NodeID, requestID uint32, appErr *warp.Error) error

RequestFailed mocks base method.

func (*MockRouter) Response added in v1.22.87

func (m *MockRouter) Response(ctx context.Context, nodeID ids.NodeID, requestID uint32, appResponseBytes []byte) error

Response mocks base method.

type MockRouterMockRecorder

type MockRouterMockRecorder struct {
	// contains filtered or unexported fields
}

MockRouterMockRecorder is the mock recorder for MockRouter.

func (*MockRouterMockRecorder) AddChain

func (mr *MockRouterMockRecorder) AddChain(chainID, handler any) *gomock.Call

AddChain indicates an expected call of AddChain.

func (*MockRouterMockRecorder) Connected

func (mr *MockRouterMockRecorder) Connected(nodeID, nodeVersion, netID any) *gomock.Call

Connected indicates an expected call of Connected.

func (*MockRouterMockRecorder) Disconnected

func (mr *MockRouterMockRecorder) Disconnected(nodeID any) *gomock.Call

Disconnected indicates an expected call of Disconnected.

func (*MockRouterMockRecorder) Gossip added in v1.22.87

func (mr *MockRouterMockRecorder) Gossip(ctx, nodeID, msg any) *gomock.Call

Gossip indicates an expected call of Gossip.

func (*MockRouterMockRecorder) HandleInbound

func (mr *MockRouterMockRecorder) HandleInbound(arg0, arg1 any) *gomock.Call

HandleInbound indicates an expected call of HandleInbound.

func (*MockRouterMockRecorder) HealthCheck

func (mr *MockRouterMockRecorder) HealthCheck(ctx any) *gomock.Call

HealthCheck indicates an expected call of HealthCheck.

func (*MockRouterMockRecorder) Initialize

func (mr *MockRouterMockRecorder) Initialize(nodeID, log, timeoutManager, closeTimeout, criticalChains, sybilProtectionEnabled, trackedNets, onFatal, healthConfig, metricsRegisterer any) *gomock.Call

Initialize indicates an expected call of Initialize.

func (*MockRouterMockRecorder) RemoveChain

func (mr *MockRouterMockRecorder) RemoveChain(chainID any) *gomock.Call

RemoveChain indicates an expected call of RemoveChain.

func (*MockRouterMockRecorder) Request added in v1.22.87

func (mr *MockRouterMockRecorder) Request(ctx, nodeID, requestID, deadline, appRequestBytes any) *gomock.Call

Request indicates an expected call of Request.

func (*MockRouterMockRecorder) RequestFailed added in v1.22.87

func (mr *MockRouterMockRecorder) RequestFailed(ctx, nodeID, requestID, appErr any) *gomock.Call

RequestFailed indicates an expected call of RequestFailed.

func (*MockRouterMockRecorder) Response added in v1.22.87

func (mr *MockRouterMockRecorder) Response(ctx, nodeID, requestID, appResponseBytes any) *gomock.Call

Response indicates an expected call of Response.

Jump to

Keyboard shortcuts

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