mocks

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRPCClient

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

MockRPCClient is a mock of RPCClient interface

func NewMockRPCClient

func NewMockRPCClient(ctrl *gomock.Controller) *MockRPCClient

NewMockRPCClient creates a new mock instance

func (*MockRPCClient) AfterInit

func (m *MockRPCClient) AfterInit()

AfterInit mocks base method

func (*MockRPCClient) BeforeShutdown

func (m *MockRPCClient) BeforeShutdown()

BeforeShutdown mocks base method

func (*MockRPCClient) BroadcastSessionBind

func (m *MockRPCClient) BroadcastSessionBind(uid string) error

BroadcastSessionBind mocks base method

func (*MockRPCClient) Call

func (m *MockRPCClient) Call(ctx context.Context, rpcType protos.RPCType, route *route.Route, session *session.Session, msg *message.Message, server *cluster.Server) (*protos.Response, error)

Call mocks base method

func (*MockRPCClient) EXPECT

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

func (*MockRPCClient) Init

func (m *MockRPCClient) Init() error

Init mocks base method

func (*MockRPCClient) Send

func (m *MockRPCClient) Send(route string, data []byte) error

Send mocks base method

func (*MockRPCClient) SendKick added in v0.7.6

func (m *MockRPCClient) SendKick(userID, serverType string, kick *protos.KickMsg) error

SendKick mocks base method

func (*MockRPCClient) SendPush

func (m *MockRPCClient) SendPush(userID string, frontendSv *cluster.Server, push *protos.Push) error

SendPush mocks base method

func (*MockRPCClient) Shutdown

func (m *MockRPCClient) Shutdown() error

Shutdown mocks base method

type MockRPCClientMockRecorder

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

MockRPCClientMockRecorder is the mock recorder for MockRPCClient

func (*MockRPCClientMockRecorder) AfterInit

func (mr *MockRPCClientMockRecorder) AfterInit() *gomock.Call

AfterInit indicates an expected call of AfterInit

func (*MockRPCClientMockRecorder) BeforeShutdown

func (mr *MockRPCClientMockRecorder) BeforeShutdown() *gomock.Call

BeforeShutdown indicates an expected call of BeforeShutdown

func (*MockRPCClientMockRecorder) BroadcastSessionBind

func (mr *MockRPCClientMockRecorder) BroadcastSessionBind(uid interface{}) *gomock.Call

BroadcastSessionBind indicates an expected call of BroadcastSessionBind

func (*MockRPCClientMockRecorder) Call

func (mr *MockRPCClientMockRecorder) Call(ctx, rpcType, route, session, msg, server interface{}) *gomock.Call

Call indicates an expected call of Call

func (*MockRPCClientMockRecorder) Init

Init indicates an expected call of Init

func (*MockRPCClientMockRecorder) Send

func (mr *MockRPCClientMockRecorder) Send(route, data interface{}) *gomock.Call

Send indicates an expected call of Send

func (*MockRPCClientMockRecorder) SendKick added in v0.7.6

func (mr *MockRPCClientMockRecorder) SendKick(userID, serverType, kick interface{}) *gomock.Call

SendKick indicates an expected call of SendKick

func (*MockRPCClientMockRecorder) SendPush

func (mr *MockRPCClientMockRecorder) SendPush(userID, frontendSv, push interface{}) *gomock.Call

SendPush indicates an expected call of SendPush

func (*MockRPCClientMockRecorder) Shutdown

func (mr *MockRPCClientMockRecorder) Shutdown() *gomock.Call

Shutdown indicates an expected call of Shutdown

type MockRPCServer

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

MockRPCServer is a mock of RPCServer interface

func NewMockRPCServer

func NewMockRPCServer(ctrl *gomock.Controller) *MockRPCServer

NewMockRPCServer creates a new mock instance

func (*MockRPCServer) AfterInit

func (m *MockRPCServer) AfterInit()

AfterInit mocks base method

func (*MockRPCServer) BeforeShutdown

func (m *MockRPCServer) BeforeShutdown()

BeforeShutdown mocks base method

func (*MockRPCServer) EXPECT

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

func (*MockRPCServer) Init

func (m *MockRPCServer) Init() error

Init mocks base method

func (*MockRPCServer) SetPitayaServer

func (m *MockRPCServer) SetPitayaServer(arg0 protos.PitayaServer)

SetPitayaServer mocks base method

func (*MockRPCServer) Shutdown

func (m *MockRPCServer) Shutdown() error

Shutdown mocks base method

type MockRPCServerMockRecorder

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

MockRPCServerMockRecorder is the mock recorder for MockRPCServer

func (*MockRPCServerMockRecorder) AfterInit

func (mr *MockRPCServerMockRecorder) AfterInit() *gomock.Call

AfterInit indicates an expected call of AfterInit

func (*MockRPCServerMockRecorder) BeforeShutdown

func (mr *MockRPCServerMockRecorder) BeforeShutdown() *gomock.Call

BeforeShutdown indicates an expected call of BeforeShutdown

func (*MockRPCServerMockRecorder) Init

Init indicates an expected call of Init

func (*MockRPCServerMockRecorder) SetPitayaServer

func (mr *MockRPCServerMockRecorder) SetPitayaServer(arg0 interface{}) *gomock.Call

SetPitayaServer indicates an expected call of SetPitayaServer

func (*MockRPCServerMockRecorder) Shutdown

func (mr *MockRPCServerMockRecorder) Shutdown() *gomock.Call

Shutdown indicates an expected call of Shutdown

type MockRemoteBindingListener

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

MockRemoteBindingListener is a mock of RemoteBindingListener interface

func NewMockRemoteBindingListener

func NewMockRemoteBindingListener(ctrl *gomock.Controller) *MockRemoteBindingListener

NewMockRemoteBindingListener creates a new mock instance

func (*MockRemoteBindingListener) EXPECT

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

func (*MockRemoteBindingListener) OnUserBind

func (m *MockRemoteBindingListener) OnUserBind(uid, fid string)

OnUserBind mocks base method

type MockRemoteBindingListenerMockRecorder

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

MockRemoteBindingListenerMockRecorder is the mock recorder for MockRemoteBindingListener

func (*MockRemoteBindingListenerMockRecorder) OnUserBind

func (mr *MockRemoteBindingListenerMockRecorder) OnUserBind(uid, fid interface{}) *gomock.Call

OnUserBind indicates an expected call of OnUserBind

type MockSDListener

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

MockSDListener is a mock of SDListener interface

func NewMockSDListener

func NewMockSDListener(ctrl *gomock.Controller) *MockSDListener

NewMockSDListener creates a new mock instance

func (*MockSDListener) AddServer

func (m *MockSDListener) AddServer(arg0 *cluster.Server)

AddServer mocks base method

func (*MockSDListener) EXPECT

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

func (*MockSDListener) RemoveServer

func (m *MockSDListener) RemoveServer(arg0 *cluster.Server)

RemoveServer mocks base method

type MockSDListenerMockRecorder

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

MockSDListenerMockRecorder is the mock recorder for MockSDListener

func (*MockSDListenerMockRecorder) AddServer

func (mr *MockSDListenerMockRecorder) AddServer(arg0 interface{}) *gomock.Call

AddServer indicates an expected call of AddServer

func (*MockSDListenerMockRecorder) RemoveServer

func (mr *MockSDListenerMockRecorder) RemoveServer(arg0 interface{}) *gomock.Call

RemoveServer indicates an expected call of RemoveServer

type MockServiceDiscovery

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

MockServiceDiscovery is a mock of ServiceDiscovery interface

func NewMockServiceDiscovery

func NewMockServiceDiscovery(ctrl *gomock.Controller) *MockServiceDiscovery

NewMockServiceDiscovery creates a new mock instance

func (*MockServiceDiscovery) AddListener

func (m *MockServiceDiscovery) AddListener(listener cluster.SDListener)

AddListener mocks base method

func (*MockServiceDiscovery) AfterInit

func (m *MockServiceDiscovery) AfterInit()

AfterInit mocks base method

func (*MockServiceDiscovery) BeforeShutdown

func (m *MockServiceDiscovery) BeforeShutdown()

BeforeShutdown mocks base method

func (*MockServiceDiscovery) EXPECT

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

func (*MockServiceDiscovery) GetServer

func (m *MockServiceDiscovery) GetServer(id string) (*cluster.Server, error)

GetServer mocks base method

func (*MockServiceDiscovery) GetServers added in v0.7.6

func (m *MockServiceDiscovery) GetServers() []*cluster.Server

GetServers mocks base method

func (*MockServiceDiscovery) GetServersByType

func (m *MockServiceDiscovery) GetServersByType(serverType string) (map[string]*cluster.Server, error)

GetServersByType mocks base method

func (*MockServiceDiscovery) Init

func (m *MockServiceDiscovery) Init() error

Init mocks base method

func (*MockServiceDiscovery) Shutdown

func (m *MockServiceDiscovery) Shutdown() error

Shutdown mocks base method

func (*MockServiceDiscovery) SyncServers

func (m *MockServiceDiscovery) SyncServers() error

SyncServers mocks base method

type MockServiceDiscoveryMockRecorder

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

MockServiceDiscoveryMockRecorder is the mock recorder for MockServiceDiscovery

func (*MockServiceDiscoveryMockRecorder) AddListener

func (mr *MockServiceDiscoveryMockRecorder) AddListener(listener interface{}) *gomock.Call

AddListener indicates an expected call of AddListener

func (*MockServiceDiscoveryMockRecorder) AfterInit

func (mr *MockServiceDiscoveryMockRecorder) AfterInit() *gomock.Call

AfterInit indicates an expected call of AfterInit

func (*MockServiceDiscoveryMockRecorder) BeforeShutdown

func (mr *MockServiceDiscoveryMockRecorder) BeforeShutdown() *gomock.Call

BeforeShutdown indicates an expected call of BeforeShutdown

func (*MockServiceDiscoveryMockRecorder) GetServer

func (mr *MockServiceDiscoveryMockRecorder) GetServer(id interface{}) *gomock.Call

GetServer indicates an expected call of GetServer

func (*MockServiceDiscoveryMockRecorder) GetServers added in v0.7.6

func (mr *MockServiceDiscoveryMockRecorder) GetServers() *gomock.Call

GetServers indicates an expected call of GetServers

func (*MockServiceDiscoveryMockRecorder) GetServersByType

func (mr *MockServiceDiscoveryMockRecorder) GetServersByType(serverType interface{}) *gomock.Call

GetServersByType indicates an expected call of GetServersByType

func (*MockServiceDiscoveryMockRecorder) Init

Init indicates an expected call of Init

func (*MockServiceDiscoveryMockRecorder) Shutdown

Shutdown indicates an expected call of Shutdown

func (*MockServiceDiscoveryMockRecorder) SyncServers

func (mr *MockServiceDiscoveryMockRecorder) SyncServers() *gomock.Call

SyncServers indicates an expected call of SyncServers

Jump to

Keyboard shortcuts

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