mock_peer

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mock_peer is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockPeer

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

MockPeer is a mock of Peer interface.

func NewMockPeer

func NewMockPeer(ctrl *gomock.Controller) *MockPeer

NewMockPeer creates a new mock instance.

func (*MockPeer) AcquireDrpcConn

func (m *MockPeer) AcquireDrpcConn(arg0 context.Context) (drpc.Conn, error)

AcquireDrpcConn mocks base method.

func (*MockPeer) Close

func (m *MockPeer) Close() error

Close mocks base method.

func (*MockPeer) CloseChan added in v0.3.17

func (m *MockPeer) CloseChan() <-chan struct{}

CloseChan mocks base method.

func (*MockPeer) Context

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

Context mocks base method.

func (*MockPeer) DoDrpc

func (m *MockPeer) DoDrpc(arg0 context.Context, arg1 func(drpc.Conn) error) error

DoDrpc mocks base method.

func (*MockPeer) EXPECT

func (m *MockPeer) EXPECT() *MockPeerMockRecorder

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

func (*MockPeer) Id

func (m *MockPeer) Id() string

Id mocks base method.

func (*MockPeer) IsClosed

func (m *MockPeer) IsClosed() bool

IsClosed mocks base method.

func (*MockPeer) ReleaseDrpcConn

func (m *MockPeer) ReleaseDrpcConn(arg0 drpc.Conn)

ReleaseDrpcConn mocks base method.

func (*MockPeer) SetTTL added in v0.3.0

func (m *MockPeer) SetTTL(arg0 time.Duration)

SetTTL mocks base method.

func (*MockPeer) TryClose

func (m *MockPeer) TryClose(arg0 time.Duration) (bool, error)

TryClose mocks base method.

type MockPeerMockRecorder

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

MockPeerMockRecorder is the mock recorder for MockPeer.

func (*MockPeerMockRecorder) AcquireDrpcConn

func (mr *MockPeerMockRecorder) AcquireDrpcConn(arg0 any) *gomock.Call

AcquireDrpcConn indicates an expected call of AcquireDrpcConn.

func (*MockPeerMockRecorder) Close

func (mr *MockPeerMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockPeerMockRecorder) CloseChan added in v0.3.17

func (mr *MockPeerMockRecorder) CloseChan() *gomock.Call

CloseChan indicates an expected call of CloseChan.

func (*MockPeerMockRecorder) Context

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

Context indicates an expected call of Context.

func (*MockPeerMockRecorder) DoDrpc

func (mr *MockPeerMockRecorder) DoDrpc(arg0, arg1 any) *gomock.Call

DoDrpc indicates an expected call of DoDrpc.

func (*MockPeerMockRecorder) Id

func (mr *MockPeerMockRecorder) Id() *gomock.Call

Id indicates an expected call of Id.

func (*MockPeerMockRecorder) IsClosed

func (mr *MockPeerMockRecorder) IsClosed() *gomock.Call

IsClosed indicates an expected call of IsClosed.

func (*MockPeerMockRecorder) ReleaseDrpcConn

func (mr *MockPeerMockRecorder) ReleaseDrpcConn(arg0 any) *gomock.Call

ReleaseDrpcConn indicates an expected call of ReleaseDrpcConn.

func (*MockPeerMockRecorder) SetTTL added in v0.3.0

func (mr *MockPeerMockRecorder) SetTTL(arg0 any) *gomock.Call

SetTTL indicates an expected call of SetTTL.

func (*MockPeerMockRecorder) TryClose

func (mr *MockPeerMockRecorder) TryClose(arg0 any) *gomock.Call

TryClose indicates an expected call of TryClose.

Jump to

Keyboard shortcuts

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