mock_morpc

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mock_morpc is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClientSession

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

MockClientSession is a mock of ClientSession interface.

func NewMockClientSession

func NewMockClientSession(ctrl *gomock.Controller) *MockClientSession

NewMockClientSession creates a new mock instance.

func (*MockClientSession) Close

func (m *MockClientSession) Close() error

Close mocks base method.

func (*MockClientSession) CreateCache

func (m *MockClientSession) CreateCache(arg0 context.Context, arg1 uint64) (morpc.MessageCache, error)

CreateCache mocks base method.

func (*MockClientSession) DeleteCache

func (m *MockClientSession) DeleteCache(arg0 uint64)

DeleteCache mocks base method.

func (*MockClientSession) EXPECT

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

func (*MockClientSession) GetCache

func (m *MockClientSession) GetCache(arg0 uint64) (morpc.MessageCache, error)

GetCache mocks base method.

func (*MockClientSession) RemoteAddress

func (m *MockClientSession) RemoteAddress() string

RemoteAddress mocks base method.

func (*MockClientSession) Write

func (m *MockClientSession) Write(arg0 context.Context, arg1 morpc.Message) error

Write mocks base method.

type MockClientSessionMockRecorder

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

MockClientSessionMockRecorder is the mock recorder for MockClientSession.

func (*MockClientSessionMockRecorder) Close

Close indicates an expected call of Close.

func (*MockClientSessionMockRecorder) CreateCache

func (mr *MockClientSessionMockRecorder) CreateCache(arg0, arg1 interface{}) *gomock.Call

CreateCache indicates an expected call of CreateCache.

func (*MockClientSessionMockRecorder) DeleteCache

func (mr *MockClientSessionMockRecorder) DeleteCache(arg0 interface{}) *gomock.Call

DeleteCache indicates an expected call of DeleteCache.

func (*MockClientSessionMockRecorder) GetCache

func (mr *MockClientSessionMockRecorder) GetCache(arg0 interface{}) *gomock.Call

GetCache indicates an expected call of GetCache.

func (*MockClientSessionMockRecorder) RemoteAddress

func (mr *MockClientSessionMockRecorder) RemoteAddress() *gomock.Call

RemoteAddress indicates an expected call of RemoteAddress.

func (*MockClientSessionMockRecorder) Write

func (mr *MockClientSessionMockRecorder) Write(arg0, arg1 interface{}) *gomock.Call

Write indicates an expected call of Write.

type MockStream

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

MockStream is a mock of Stream interface.

func NewMockStream

func NewMockStream(ctrl *gomock.Controller) *MockStream

NewMockStream creates a new mock instance.

func (*MockStream) Close

func (m *MockStream) Close(arg0 bool) error

Close mocks base method.

func (*MockStream) EXPECT

func (m *MockStream) EXPECT() *MockStreamMockRecorder

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

func (*MockStream) ID

func (m *MockStream) ID() uint64

ID mocks base method.

func (*MockStream) Receive

func (m *MockStream) Receive() (chan morpc.Message, error)

Receive mocks base method.

func (*MockStream) Send

func (m *MockStream) Send(arg0 context.Context, arg1 morpc.Message) error

Send mocks base method.

type MockStreamMockRecorder

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

MockStreamMockRecorder is the mock recorder for MockStream.

func (*MockStreamMockRecorder) Close

func (mr *MockStreamMockRecorder) Close(arg0 interface{}) *gomock.Call

Close indicates an expected call of Close.

func (*MockStreamMockRecorder) ID

ID indicates an expected call of ID.

func (*MockStreamMockRecorder) Receive

func (mr *MockStreamMockRecorder) Receive() *gomock.Call

Receive indicates an expected call of Receive.

func (*MockStreamMockRecorder) Send

func (mr *MockStreamMockRecorder) Send(arg0, arg1 interface{}) *gomock.Call

Send indicates an expected call of Send.

Jump to

Keyboard shortcuts

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