mock_morpc

package
v1.2.3-hotfix-20241016 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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) AsyncWrite added in v1.1.0

func (m *MockClientSession) AsyncWrite(response morpc.Message) error

AsyncWrite mocks base method.

func (*MockClientSession) Close

func (m *MockClientSession) Close() error

Close mocks base method.

func (*MockClientSession) CreateCache

func (m *MockClientSession) CreateCache(ctx context.Context, cacheID uint64) (morpc.MessageCache, error)

CreateCache mocks base method.

func (*MockClientSession) DeleteCache

func (m *MockClientSession) DeleteCache(cacheID 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(cacheID uint64) (morpc.MessageCache, error)

GetCache mocks base method.

func (*MockClientSession) RemoteAddress

func (m *MockClientSession) RemoteAddress() string

RemoteAddress mocks base method.

func (*MockClientSession) SessionCtx added in v1.2.1

func (m *MockClientSession) SessionCtx() context.Context

SessionCtx mocks base method.

func (*MockClientSession) Write

func (m *MockClientSession) Write(ctx context.Context, response 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) AsyncWrite added in v1.2.1

func (mr *MockClientSessionMockRecorder) AsyncWrite(response interface{}) *gomock.Call

AsyncWrite indicates an expected call of AsyncWrite.

func (*MockClientSessionMockRecorder) Close

Close indicates an expected call of Close.

func (*MockClientSessionMockRecorder) CreateCache

func (mr *MockClientSessionMockRecorder) CreateCache(ctx, cacheID interface{}) *gomock.Call

CreateCache indicates an expected call of CreateCache.

func (*MockClientSessionMockRecorder) DeleteCache

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

DeleteCache indicates an expected call of DeleteCache.

func (*MockClientSessionMockRecorder) GetCache

func (mr *MockClientSessionMockRecorder) GetCache(cacheID 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) SessionCtx added in v1.2.1

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

SessionCtx indicates an expected call of SessionCtx.

func (*MockClientSessionMockRecorder) Write

func (mr *MockClientSessionMockRecorder) Write(ctx, response 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(closeConn 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(ctx context.Context, request 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(closeConn 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(ctx, request 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