Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockNetworkEntity
- func (m *MockNetworkEntity) Close() error
- func (m *MockNetworkEntity) EXPECT() *MockNetworkEntityMockRecorder
- func (m *MockNetworkEntity) Kick(ctx context.Context) error
- func (m *MockNetworkEntity) Push(route string, v interface{}) error
- func (m *MockNetworkEntity) RemoteAddr() net.Addr
- func (m *MockNetworkEntity) ResponseMID(ctx context.Context, mid uint, v interface{}, isError ...bool) error
- func (m *MockNetworkEntity) SendRequest(ctx context.Context, serverID, route string, v interface{}) (*protos.Response, error)
- type MockNetworkEntityMockRecorder
- func (mr *MockNetworkEntityMockRecorder) Close() *gomock.Call
- func (mr *MockNetworkEntityMockRecorder) Kick(ctx interface{}) *gomock.Call
- func (mr *MockNetworkEntityMockRecorder) Push(route, v interface{}) *gomock.Call
- func (mr *MockNetworkEntityMockRecorder) RemoteAddr() *gomock.Call
- func (mr *MockNetworkEntityMockRecorder) ResponseMID(ctx, mid, v interface{}, isError ...interface{}) *gomock.Call
- func (mr *MockNetworkEntityMockRecorder) SendRequest(ctx, serverID, route, v interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockNetworkEntity ¶
type MockNetworkEntity struct {
// contains filtered or unexported fields
}
MockNetworkEntity is a mock of NetworkEntity interface
func NewMockNetworkEntity ¶
func NewMockNetworkEntity(ctrl *gomock.Controller) *MockNetworkEntity
NewMockNetworkEntity creates a new mock instance
func (*MockNetworkEntity) EXPECT ¶
func (m *MockNetworkEntity) EXPECT() *MockNetworkEntityMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockNetworkEntity) Kick ¶
func (m *MockNetworkEntity) Kick(ctx context.Context) error
Kick mocks base method
func (*MockNetworkEntity) Push ¶
func (m *MockNetworkEntity) Push(route string, v interface{}) error
Push mocks base method
func (*MockNetworkEntity) RemoteAddr ¶
func (m *MockNetworkEntity) RemoteAddr() net.Addr
RemoteAddr mocks base method
func (*MockNetworkEntity) ResponseMID ¶
func (m *MockNetworkEntity) ResponseMID(ctx context.Context, mid uint, v interface{}, isError ...bool) error
ResponseMID mocks base method
func (*MockNetworkEntity) SendRequest ¶
func (m *MockNetworkEntity) SendRequest(ctx context.Context, serverID, route string, v interface{}) (*protos.Response, error)
SendRequest mocks base method
type MockNetworkEntityMockRecorder ¶
type MockNetworkEntityMockRecorder struct {
// contains filtered or unexported fields
}
MockNetworkEntityMockRecorder is the mock recorder for MockNetworkEntity
func (*MockNetworkEntityMockRecorder) Close ¶
func (mr *MockNetworkEntityMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockNetworkEntityMockRecorder) Kick ¶
func (mr *MockNetworkEntityMockRecorder) Kick(ctx interface{}) *gomock.Call
Kick indicates an expected call of Kick
func (*MockNetworkEntityMockRecorder) Push ¶
func (mr *MockNetworkEntityMockRecorder) Push(route, v interface{}) *gomock.Call
Push indicates an expected call of Push
func (*MockNetworkEntityMockRecorder) RemoteAddr ¶
func (mr *MockNetworkEntityMockRecorder) RemoteAddr() *gomock.Call
RemoteAddr indicates an expected call of RemoteAddr
func (*MockNetworkEntityMockRecorder) ResponseMID ¶
func (mr *MockNetworkEntityMockRecorder) ResponseMID(ctx, mid, v interface{}, isError ...interface{}) *gomock.Call
ResponseMID indicates an expected call of ResponseMID
func (*MockNetworkEntityMockRecorder) SendRequest ¶
func (mr *MockNetworkEntityMockRecorder) SendRequest(ctx, serverID, route, v interface{}) *gomock.Call
SendRequest indicates an expected call of SendRequest