mock_netceptor

package
v1.4.10 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package mock_netceptor is a generated GoMock package.

Package mock_netceptor is a generated GoMock package.

Package mock_netceptor is a generated GoMock package.

Package mock_netceptor is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBackend

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

MockBackend is a mock of Backend interface.

func NewMockBackend

func NewMockBackend(ctrl *gomock.Controller) *MockBackend

NewMockBackend creates a new mock instance.

func (*MockBackend) EXPECT

func (m *MockBackend) EXPECT() *MockBackendMockRecorder

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

func (*MockBackend) Start

func (m *MockBackend) Start(arg0 context.Context, arg1 *sync.WaitGroup) (chan netceptor.BackendSession, error)

Start mocks base method.

type MockBackendMockRecorder

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

MockBackendMockRecorder is the mock recorder for MockBackend.

func (*MockBackendMockRecorder) Start

func (mr *MockBackendMockRecorder) Start(arg0, arg1 any) *gomock.Call

Start indicates an expected call of Start.

type MockBackendSession

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

MockBackendSession is a mock of BackendSession interface.

func NewMockBackendSession

func NewMockBackendSession(ctrl *gomock.Controller) *MockBackendSession

NewMockBackendSession creates a new mock instance.

func (*MockBackendSession) Close

func (m *MockBackendSession) Close() error

Close mocks base method.

func (*MockBackendSession) EXPECT

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

func (*MockBackendSession) Recv

func (m *MockBackendSession) Recv(arg0 time.Duration) ([]byte, error)

Recv mocks base method.

func (*MockBackendSession) Send

func (m *MockBackendSession) Send(arg0 []byte) error

Send mocks base method.

type MockBackendSessionMockRecorder

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

MockBackendSessionMockRecorder is the mock recorder for MockBackendSession.

func (*MockBackendSessionMockRecorder) Close

Close indicates an expected call of Close.

func (*MockBackendSessionMockRecorder) Recv

Recv indicates an expected call of Recv.

func (*MockBackendSessionMockRecorder) Send

Send indicates an expected call of Send.

type MockMessageConn

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

MockMessageConn is a mock of MessageConn interface.

func NewMockMessageConn

func NewMockMessageConn(ctrl *gomock.Controller) *MockMessageConn

NewMockMessageConn creates a new mock instance.

func (*MockMessageConn) Close

func (m *MockMessageConn) Close() error

Close mocks base method.

func (*MockMessageConn) EXPECT

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

func (*MockMessageConn) ReadMessage

func (m *MockMessageConn) ReadMessage(ctx context.Context, timeout time.Duration) ([]byte, error)

ReadMessage mocks base method.

func (*MockMessageConn) SetReadDeadline

func (m *MockMessageConn) SetReadDeadline(t time.Time) error

SetReadDeadline mocks base method.

func (*MockMessageConn) WriteMessage

func (m *MockMessageConn) WriteMessage(ctx context.Context, data []byte) error

WriteMessage mocks base method.

type MockMessageConnMockRecorder

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

MockMessageConnMockRecorder is the mock recorder for MockMessageConn.

func (*MockMessageConnMockRecorder) Close

Close indicates an expected call of Close.

func (*MockMessageConnMockRecorder) ReadMessage

func (mr *MockMessageConnMockRecorder) ReadMessage(ctx, timeout any) *gomock.Call

ReadMessage indicates an expected call of ReadMessage.

func (*MockMessageConnMockRecorder) SetReadDeadline

func (mr *MockMessageConnMockRecorder) SetReadDeadline(t any) *gomock.Call

SetReadDeadline indicates an expected call of SetReadDeadline.

func (*MockMessageConnMockRecorder) WriteMessage

func (mr *MockMessageConnMockRecorder) WriteMessage(ctx, data any) *gomock.Call

WriteMessage indicates an expected call of WriteMessage.

type MockNetcForPacketConn

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

MockNetcForPacketConn is a mock of NetcForPacketConn interface.

func NewMockNetcForPacketConn

func NewMockNetcForPacketConn(ctrl *gomock.Controller) *MockNetcForPacketConn

NewMockNetcForPacketConn creates a new mock instance.

func (*MockNetcForPacketConn) AddLocalServiceAdvertisement

func (m *MockNetcForPacketConn) AddLocalServiceAdvertisement(service string, connType byte, tags map[string]string)

AddLocalServiceAdvertisement mocks base method.

func (*MockNetcForPacketConn) AddNameHash

func (m *MockNetcForPacketConn) AddNameHash(name string) uint64

AddNameHash mocks base method.

func (*MockNetcForPacketConn) Context

func (m *MockNetcForPacketConn) Context() context.Context

Context mocks base method.

func (*MockNetcForPacketConn) EXPECT

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

func (*MockNetcForPacketConn) GetEphemeralService

func (m *MockNetcForPacketConn) GetEphemeralService() string

GetEphemeralService mocks base method.

func (*MockNetcForPacketConn) GetListenerLock

func (m *MockNetcForPacketConn) GetListenerLock() *sync.RWMutex

GetListenerLock mocks base method.

func (*MockNetcForPacketConn) GetListenerRegistry

func (m *MockNetcForPacketConn) GetListenerRegistry() map[string]*netceptor.PacketConn

GetListenerRegistry mocks base method.

func (*MockNetcForPacketConn) GetLogger

GetLogger mocks base method.

func (*MockNetcForPacketConn) GetNetworkName

func (m *MockNetcForPacketConn) GetNetworkName() string

GetNetworkName mocks base method.

func (*MockNetcForPacketConn) GetUnreachableBroker

func (m *MockNetcForPacketConn) GetUnreachableBroker() *utils.Broker

GetUnreachableBroker mocks base method.

func (*MockNetcForPacketConn) MaxForwardingHops

func (m *MockNetcForPacketConn) MaxForwardingHops() byte

MaxForwardingHops mocks base method.

func (*MockNetcForPacketConn) NodeID

func (m *MockNetcForPacketConn) NodeID() string

NodeID mocks base method.

func (*MockNetcForPacketConn) RemoveLocalServiceAdvertisement

func (m *MockNetcForPacketConn) RemoveLocalServiceAdvertisement(service string) error

RemoveLocalServiceAdvertisement mocks base method.

func (*MockNetcForPacketConn) SendMessageWithHopsToLive

func (m *MockNetcForPacketConn) SendMessageWithHopsToLive(fromService, toNode, toService string, data []byte, hopsToLive byte) error

SendMessageWithHopsToLive mocks base method.

type MockNetcForPacketConnMockRecorder

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

MockNetcForPacketConnMockRecorder is the mock recorder for MockNetcForPacketConn.

func (*MockNetcForPacketConnMockRecorder) AddLocalServiceAdvertisement

func (mr *MockNetcForPacketConnMockRecorder) AddLocalServiceAdvertisement(service, connType, tags any) *gomock.Call

AddLocalServiceAdvertisement indicates an expected call of AddLocalServiceAdvertisement.

func (*MockNetcForPacketConnMockRecorder) AddNameHash

func (mr *MockNetcForPacketConnMockRecorder) AddNameHash(name any) *gomock.Call

AddNameHash indicates an expected call of AddNameHash.

func (*MockNetcForPacketConnMockRecorder) Context

Context indicates an expected call of Context.

func (*MockNetcForPacketConnMockRecorder) GetEphemeralService

func (mr *MockNetcForPacketConnMockRecorder) GetEphemeralService() *gomock.Call

GetEphemeralService indicates an expected call of GetEphemeralService.

func (*MockNetcForPacketConnMockRecorder) GetListenerLock

func (mr *MockNetcForPacketConnMockRecorder) GetListenerLock() *gomock.Call

GetListenerLock indicates an expected call of GetListenerLock.

func (*MockNetcForPacketConnMockRecorder) GetListenerRegistry

func (mr *MockNetcForPacketConnMockRecorder) GetListenerRegistry() *gomock.Call

GetListenerRegistry indicates an expected call of GetListenerRegistry.

func (*MockNetcForPacketConnMockRecorder) GetLogger

GetLogger indicates an expected call of GetLogger.

func (*MockNetcForPacketConnMockRecorder) GetNetworkName

func (mr *MockNetcForPacketConnMockRecorder) GetNetworkName() *gomock.Call

GetNetworkName indicates an expected call of GetNetworkName.

func (*MockNetcForPacketConnMockRecorder) GetUnreachableBroker

func (mr *MockNetcForPacketConnMockRecorder) GetUnreachableBroker() *gomock.Call

GetUnreachableBroker indicates an expected call of GetUnreachableBroker.

func (*MockNetcForPacketConnMockRecorder) MaxForwardingHops

func (mr *MockNetcForPacketConnMockRecorder) MaxForwardingHops() *gomock.Call

MaxForwardingHops indicates an expected call of MaxForwardingHops.

func (*MockNetcForPacketConnMockRecorder) NodeID

NodeID indicates an expected call of NodeID.

func (*MockNetcForPacketConnMockRecorder) RemoveLocalServiceAdvertisement

func (mr *MockNetcForPacketConnMockRecorder) RemoveLocalServiceAdvertisement(service any) *gomock.Call

RemoveLocalServiceAdvertisement indicates an expected call of RemoveLocalServiceAdvertisement.

func (*MockNetcForPacketConnMockRecorder) SendMessageWithHopsToLive

func (mr *MockNetcForPacketConnMockRecorder) SendMessageWithHopsToLive(fromService, toNode, toService, data, hopsToLive any) *gomock.Call

SendMessageWithHopsToLive indicates an expected call of SendMessageWithHopsToLive.

type MockNetcForPing

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

MockNetcForPing is a mock of NetcForPing interface.

func NewMockNetcForPing

func NewMockNetcForPing(ctrl *gomock.Controller) *MockNetcForPing

NewMockNetcForPing creates a new mock instance.

func (*MockNetcForPing) Context

func (m *MockNetcForPing) Context() context.Context

Context mocks base method.

func (*MockNetcForPing) EXPECT

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

func (*MockNetcForPing) ListenPacket

func (m *MockNetcForPing) ListenPacket(service string) (netceptor.PacketConner, error)

ListenPacket mocks base method.

func (*MockNetcForPing) NewAddr

func (m *MockNetcForPing) NewAddr(target, service string) netceptor.Addr

NewAddr mocks base method.

func (*MockNetcForPing) NodeID

func (m *MockNetcForPing) NodeID() string

NodeID mocks base method.

type MockNetcForPingMockRecorder

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

MockNetcForPingMockRecorder is the mock recorder for MockNetcForPing.

func (*MockNetcForPingMockRecorder) Context

func (mr *MockNetcForPingMockRecorder) Context() *gomock.Call

Context indicates an expected call of Context.

func (*MockNetcForPingMockRecorder) ListenPacket

func (mr *MockNetcForPingMockRecorder) ListenPacket(service any) *gomock.Call

ListenPacket indicates an expected call of ListenPacket.

func (*MockNetcForPingMockRecorder) NewAddr

func (mr *MockNetcForPingMockRecorder) NewAddr(target, service any) *gomock.Call

NewAddr indicates an expected call of NewAddr.

func (*MockNetcForPingMockRecorder) NodeID

func (mr *MockNetcForPingMockRecorder) NodeID() *gomock.Call

NodeID indicates an expected call of NodeID.

type MockNetcForTraceroute

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

MockNetcForTraceroute is a mock of NetcForTraceroute interface.

func NewMockNetcForTraceroute

func NewMockNetcForTraceroute(ctrl *gomock.Controller) *MockNetcForTraceroute

NewMockNetcForTraceroute creates a new mock instance.

func (*MockNetcForTraceroute) Context

func (m *MockNetcForTraceroute) Context() context.Context

Context mocks base method.

func (*MockNetcForTraceroute) EXPECT

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

func (*MockNetcForTraceroute) MaxForwardingHops

func (m *MockNetcForTraceroute) MaxForwardingHops() byte

MaxForwardingHops mocks base method.

func (*MockNetcForTraceroute) Ping

func (m *MockNetcForTraceroute) Ping(ctx context.Context, target string, hopsToLive byte) (time.Duration, string, error)

Ping mocks base method.

type MockNetcForTracerouteMockRecorder

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

MockNetcForTracerouteMockRecorder is the mock recorder for MockNetcForTraceroute.

func (*MockNetcForTracerouteMockRecorder) Context

Context indicates an expected call of Context.

func (*MockNetcForTracerouteMockRecorder) MaxForwardingHops

func (mr *MockNetcForTracerouteMockRecorder) MaxForwardingHops() *gomock.Call

MaxForwardingHops indicates an expected call of MaxForwardingHops.

func (*MockNetcForTracerouteMockRecorder) Ping

func (mr *MockNetcForTracerouteMockRecorder) Ping(ctx, target, hopsToLive any) *gomock.Call

Ping indicates an expected call of Ping.

type MockPacketConner

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

MockPacketConner is a mock of PacketConner interface.

func NewMockPacketConner

func NewMockPacketConner(ctrl *gomock.Controller) *MockPacketConner

NewMockPacketConner creates a new mock instance.

func (*MockPacketConner) Cancel

func (m *MockPacketConner) Cancel() *context.CancelFunc

Cancel mocks base method.

func (*MockPacketConner) Close

func (m *MockPacketConner) Close() error

Close mocks base method.

func (*MockPacketConner) EXPECT

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

func (*MockPacketConner) GetHopsToLive

func (m *MockPacketConner) GetHopsToLive() byte

GetHopsToLive mocks base method.

func (*MockPacketConner) GetLogger

func (m *MockPacketConner) GetLogger() *logger.ReceptorLogger

GetLogger mocks base method.

func (*MockPacketConner) GetReadDeadline added in v1.4.4

func (m *MockPacketConner) GetReadDeadline() time.Time

GetReadDeadline mocks base method.

func (*MockPacketConner) LocalAddr

func (m *MockPacketConner) LocalAddr() net.Addr

LocalAddr mocks base method.

func (*MockPacketConner) LocalService

func (m *MockPacketConner) LocalService() string

LocalService mocks base method.

func (*MockPacketConner) ReadFrom

func (m *MockPacketConner) ReadFrom(p []byte) (int, net.Addr, error)

ReadFrom mocks base method.

func (*MockPacketConner) SetDeadline

func (m *MockPacketConner) SetDeadline(t time.Time) error

SetDeadline mocks base method.

func (*MockPacketConner) SetHopsToLive

func (m *MockPacketConner) SetHopsToLive(hopsToLive byte)

SetHopsToLive mocks base method.

func (*MockPacketConner) SetReadDeadline

func (m *MockPacketConner) SetReadDeadline(t time.Time) error

SetReadDeadline mocks base method.

func (*MockPacketConner) SetWriteDeadline

func (m *MockPacketConner) SetWriteDeadline(t time.Time) error

SetWriteDeadline mocks base method.

func (*MockPacketConner) StartUnreachable

func (m *MockPacketConner) StartUnreachable()

StartUnreachable mocks base method.

func (*MockPacketConner) SubscribeUnreachable

func (m *MockPacketConner) SubscribeUnreachable(doneChan chan struct{}) chan netceptor.UnreachableNotification

SubscribeUnreachable mocks base method.

func (*MockPacketConner) WriteTo

func (m *MockPacketConner) WriteTo(p []byte, addr net.Addr) (int, error)

WriteTo mocks base method.

type MockPacketConnerMockRecorder

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

MockPacketConnerMockRecorder is the mock recorder for MockPacketConner.

func (*MockPacketConnerMockRecorder) Cancel

Cancel indicates an expected call of Cancel.

func (*MockPacketConnerMockRecorder) Close

Close indicates an expected call of Close.

func (*MockPacketConnerMockRecorder) GetHopsToLive

func (mr *MockPacketConnerMockRecorder) GetHopsToLive() *gomock.Call

GetHopsToLive indicates an expected call of GetHopsToLive.

func (*MockPacketConnerMockRecorder) GetLogger

func (mr *MockPacketConnerMockRecorder) GetLogger() *gomock.Call

GetLogger indicates an expected call of GetLogger.

func (*MockPacketConnerMockRecorder) GetReadDeadline added in v1.4.4

func (mr *MockPacketConnerMockRecorder) GetReadDeadline() *gomock.Call

GetReadDeadline indicates an expected call of GetReadDeadline.

func (*MockPacketConnerMockRecorder) LocalAddr

func (mr *MockPacketConnerMockRecorder) LocalAddr() *gomock.Call

LocalAddr indicates an expected call of LocalAddr.

func (*MockPacketConnerMockRecorder) LocalService

func (mr *MockPacketConnerMockRecorder) LocalService() *gomock.Call

LocalService indicates an expected call of LocalService.

func (*MockPacketConnerMockRecorder) ReadFrom

func (mr *MockPacketConnerMockRecorder) ReadFrom(p any) *gomock.Call

ReadFrom indicates an expected call of ReadFrom.

func (*MockPacketConnerMockRecorder) SetDeadline

func (mr *MockPacketConnerMockRecorder) SetDeadline(t any) *gomock.Call

SetDeadline indicates an expected call of SetDeadline.

func (*MockPacketConnerMockRecorder) SetHopsToLive

func (mr *MockPacketConnerMockRecorder) SetHopsToLive(hopsToLive any) *gomock.Call

SetHopsToLive indicates an expected call of SetHopsToLive.

func (*MockPacketConnerMockRecorder) SetReadDeadline

func (mr *MockPacketConnerMockRecorder) SetReadDeadline(t any) *gomock.Call

SetReadDeadline indicates an expected call of SetReadDeadline.

func (*MockPacketConnerMockRecorder) SetWriteDeadline

func (mr *MockPacketConnerMockRecorder) SetWriteDeadline(t any) *gomock.Call

SetWriteDeadline indicates an expected call of SetWriteDeadline.

func (*MockPacketConnerMockRecorder) StartUnreachable

func (mr *MockPacketConnerMockRecorder) StartUnreachable() *gomock.Call

StartUnreachable indicates an expected call of StartUnreachable.

func (*MockPacketConnerMockRecorder) SubscribeUnreachable

func (mr *MockPacketConnerMockRecorder) SubscribeUnreachable(doneChan any) *gomock.Call

SubscribeUnreachable indicates an expected call of SubscribeUnreachable.

func (*MockPacketConnerMockRecorder) WriteTo

func (mr *MockPacketConnerMockRecorder) WriteTo(p, addr any) *gomock.Call

WriteTo indicates an expected call of WriteTo.

Jump to

Keyboard shortcuts

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