Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockRPCClient
- func (m *MockRPCClient) AfterInit()
- func (m *MockRPCClient) BeforeShutdown()
- func (m *MockRPCClient) BroadcastSessionBind(uid string) error
- func (m *MockRPCClient) Call(ctx context.Context, rpcType protos.RPCType, route *route.Route, ...) (*protos.Response, error)
- func (m *MockRPCClient) EXPECT() *MockRPCClientMockRecorder
- func (m *MockRPCClient) Init() error
- func (m *MockRPCClient) Send(route string, data []byte) error
- func (m *MockRPCClient) SendKick(userID, serverType string, kick *protos.KickMsg) error
- func (m *MockRPCClient) SendPush(userID string, frontendSv *cluster.Server, push *protos.Push) error
- func (m *MockRPCClient) Shutdown() error
- type MockRPCClientMockRecorder
- func (mr *MockRPCClientMockRecorder) AfterInit() *gomock.Call
- func (mr *MockRPCClientMockRecorder) BeforeShutdown() *gomock.Call
- func (mr *MockRPCClientMockRecorder) BroadcastSessionBind(uid interface{}) *gomock.Call
- func (mr *MockRPCClientMockRecorder) Call(ctx, rpcType, route, session, msg, server interface{}) *gomock.Call
- func (mr *MockRPCClientMockRecorder) Init() *gomock.Call
- func (mr *MockRPCClientMockRecorder) Send(route, data interface{}) *gomock.Call
- func (mr *MockRPCClientMockRecorder) SendKick(userID, serverType, kick interface{}) *gomock.Call
- func (mr *MockRPCClientMockRecorder) SendPush(userID, frontendSv, push interface{}) *gomock.Call
- func (mr *MockRPCClientMockRecorder) Shutdown() *gomock.Call
- type MockRPCServer
- type MockRPCServerMockRecorder
- func (mr *MockRPCServerMockRecorder) AfterInit() *gomock.Call
- func (mr *MockRPCServerMockRecorder) BeforeShutdown() *gomock.Call
- func (mr *MockRPCServerMockRecorder) Init() *gomock.Call
- func (mr *MockRPCServerMockRecorder) SetPitayaServer(arg0 interface{}) *gomock.Call
- func (mr *MockRPCServerMockRecorder) Shutdown() *gomock.Call
- type MockRemoteBindingListener
- type MockRemoteBindingListenerMockRecorder
- type MockSDListener
- type MockSDListenerMockRecorder
- type MockServiceDiscovery
- func (m *MockServiceDiscovery) AddListener(listener cluster.SDListener)
- func (m *MockServiceDiscovery) AfterInit()
- func (m *MockServiceDiscovery) BeforeShutdown()
- func (m *MockServiceDiscovery) EXPECT() *MockServiceDiscoveryMockRecorder
- func (m *MockServiceDiscovery) GetServer(id string) (*cluster.Server, error)
- func (m *MockServiceDiscovery) GetServers() []*cluster.Server
- func (m *MockServiceDiscovery) GetServersByType(serverType string) (map[string]*cluster.Server, error)
- func (m *MockServiceDiscovery) Init() error
- func (m *MockServiceDiscovery) Shutdown() error
- func (m *MockServiceDiscovery) SyncServers(firstSync bool) error
- type MockServiceDiscoveryMockRecorder
- func (mr *MockServiceDiscoveryMockRecorder) AddListener(listener interface{}) *gomock.Call
- func (mr *MockServiceDiscoveryMockRecorder) AfterInit() *gomock.Call
- func (mr *MockServiceDiscoveryMockRecorder) BeforeShutdown() *gomock.Call
- func (mr *MockServiceDiscoveryMockRecorder) GetServer(id interface{}) *gomock.Call
- func (mr *MockServiceDiscoveryMockRecorder) GetServers() *gomock.Call
- func (mr *MockServiceDiscoveryMockRecorder) GetServersByType(serverType interface{}) *gomock.Call
- func (mr *MockServiceDiscoveryMockRecorder) Init() *gomock.Call
- func (mr *MockServiceDiscoveryMockRecorder) Shutdown() *gomock.Call
- func (mr *MockServiceDiscoveryMockRecorder) SyncServers() *gomock.Call
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) 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 ¶
func (m *MockRPCClient) EXPECT() *MockRPCClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
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 ¶
func (mr *MockRPCClientMockRecorder) Init() *gomock.Call
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) BeforeShutdown ¶
func (m *MockRPCServer) BeforeShutdown()
BeforeShutdown mocks base method
func (*MockRPCServer) EXPECT ¶
func (m *MockRPCServer) EXPECT() *MockRPCServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
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 ¶
func (mr *MockRPCServerMockRecorder) Init() *gomock.Call
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 ¶
func (m *MockRemoteBindingListener) EXPECT() *MockRemoteBindingListenerMockRecorder
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 ¶
func (m *MockSDListener) EXPECT() *MockSDListenerMockRecorder
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 ¶
func (m *MockServiceDiscovery) EXPECT() *MockServiceDiscoveryMockRecorder
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(firstSync bool) 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 ¶
func (mr *MockServiceDiscoveryMockRecorder) Init() *gomock.Call
Init indicates an expected call of Init
func (*MockServiceDiscoveryMockRecorder) Shutdown ¶
func (mr *MockServiceDiscoveryMockRecorder) Shutdown() *gomock.Call
Shutdown indicates an expected call of Shutdown
func (*MockServiceDiscoveryMockRecorder) SyncServers ¶
func (mr *MockServiceDiscoveryMockRecorder) SyncServers() *gomock.Call
SyncServers indicates an expected call of SyncServers