Documentation ¶
Overview ¶
Package mock_peer is a generated GoMock package.
Index ¶
- type MockPeer
- func (m *MockPeer) AcquireDrpcConn(arg0 context.Context) (drpc.Conn, error)
- func (m *MockPeer) Close() error
- func (m *MockPeer) Context() context.Context
- func (m *MockPeer) DoDrpc(arg0 context.Context, arg1 func(drpc.Conn) error) error
- func (m *MockPeer) EXPECT() *MockPeerMockRecorder
- func (m *MockPeer) Id() string
- func (m *MockPeer) IsClosed() bool
- func (m *MockPeer) ReleaseDrpcConn(arg0 drpc.Conn)
- func (m *MockPeer) TryClose(arg0 time.Duration) (bool, error)
- type MockPeerMockRecorder
- func (mr *MockPeerMockRecorder) AcquireDrpcConn(arg0 interface{}) *gomock.Call
- func (mr *MockPeerMockRecorder) Close() *gomock.Call
- func (mr *MockPeerMockRecorder) Context() *gomock.Call
- func (mr *MockPeerMockRecorder) DoDrpc(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockPeerMockRecorder) Id() *gomock.Call
- func (mr *MockPeerMockRecorder) IsClosed() *gomock.Call
- func (mr *MockPeerMockRecorder) ReleaseDrpcConn(arg0 interface{}) *gomock.Call
- func (mr *MockPeerMockRecorder) TryClose(arg0 interface{}) *gomock.Call
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 ¶
AcquireDrpcConn 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) ReleaseDrpcConn ¶
ReleaseDrpcConn 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 interface{}) *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) Context ¶
func (mr *MockPeerMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context.
func (*MockPeerMockRecorder) DoDrpc ¶
func (mr *MockPeerMockRecorder) DoDrpc(arg0, arg1 interface{}) *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 interface{}) *gomock.Call
ReleaseDrpcConn indicates an expected call of ReleaseDrpcConn.
func (*MockPeerMockRecorder) TryClose ¶
func (mr *MockPeerMockRecorder) TryClose(arg0 interface{}) *gomock.Call
TryClose indicates an expected call of TryClose.