mocks

package
v0.0.0-...-d499528 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2023 License: MIT Imports: 15 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 MockAcceptor

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

MockAcceptor is a mock of Acceptor interface

func NewMockAcceptor

func NewMockAcceptor(ctrl *gomock.Controller) *MockAcceptor

NewMockAcceptor creates a new mock instance

func (*MockAcceptor) EXPECT

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

func (*MockAcceptor) GetAddr

func (m *MockAcceptor) GetAddr() string

GetAddr mocks base method

func (*MockAcceptor) GetConnChan

func (m *MockAcceptor) GetConnChan() chan acceptor.PlayerConn

GetConnChan mocks base method

func (*MockAcceptor) ListenAndServe

func (m *MockAcceptor) ListenAndServe()

ListenAndServe mocks base method

func (*MockAcceptor) Stop

func (m *MockAcceptor) Stop()

Stop mocks base method

type MockAcceptorMockRecorder

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

MockAcceptorMockRecorder is the mock recorder for MockAcceptor

func (*MockAcceptorMockRecorder) GetAddr

func (mr *MockAcceptorMockRecorder) GetAddr() *gomock.Call

GetAddr indicates an expected call of GetAddr

func (*MockAcceptorMockRecorder) GetConnChan

func (mr *MockAcceptorMockRecorder) GetConnChan() *gomock.Call

GetConnChan indicates an expected call of GetConnChan

func (*MockAcceptorMockRecorder) ListenAndServe

func (mr *MockAcceptorMockRecorder) ListenAndServe() *gomock.Call

ListenAndServe indicates an expected call of ListenAndServe

func (*MockAcceptorMockRecorder) Stop

func (mr *MockAcceptorMockRecorder) Stop() *gomock.Call

Stop indicates an expected call of Stop

type MockPitaya

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

MockPitaya is a mock of Pitaya interface

func NewMockPitaya

func NewMockPitaya(ctrl *gomock.Controller) *MockPitaya

NewMockPitaya creates a new mock instance

func (*MockPitaya) AddRoute

func (m *MockPitaya) AddRoute(arg0 string, arg1 router.RoutingFunc) error

AddRoute mocks base method

func (*MockPitaya) Documentation

func (m *MockPitaya) Documentation(arg0 bool) (map[string]interface{}, error)

Documentation mocks base method

func (*MockPitaya) EXPECT

func (m *MockPitaya) EXPECT() *MockPitayaMockRecorder

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

func (*MockPitaya) GetDieChan

func (m *MockPitaya) GetDieChan() chan bool

GetDieChan mocks base method

func (*MockPitaya) GetMetricsReporters

func (m *MockPitaya) GetMetricsReporters() []metrics.Reporter

GetMetricsReporters mocks base method

func (*MockPitaya) GetModule

func (m *MockPitaya) GetModule(arg0 string) (interfaces.Module, error)

GetModule mocks base method

func (*MockPitaya) GetServer

func (m *MockPitaya) GetServer() *cluster.Server

GetServer mocks base method

func (*MockPitaya) GetServerByID

func (m *MockPitaya) GetServerByID(arg0 string) (*cluster.Server, error)

GetServerByID mocks base method

func (*MockPitaya) GetServerID

func (m *MockPitaya) GetServerID() string

GetServerID mocks base method

func (*MockPitaya) GetServers

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

GetServers mocks base method

func (*MockPitaya) GetServersByType

func (m *MockPitaya) GetServersByType(arg0 string) (map[string]*cluster.Server, error)

GetServersByType mocks base method

func (*MockPitaya) GetSessionFromCtx

func (m *MockPitaya) GetSessionFromCtx(arg0 context.Context) session.Session

GetSessionFromCtx mocks base method

func (*MockPitaya) GroupAddMember

func (m *MockPitaya) GroupAddMember(arg0 context.Context, arg1, arg2 string) error

GroupAddMember mocks base method

func (*MockPitaya) GroupBroadcast

func (m *MockPitaya) GroupBroadcast(arg0 context.Context, arg1, arg2, arg3 string, arg4 interface{}) error

GroupBroadcast mocks base method

func (*MockPitaya) GroupContainsMember

func (m *MockPitaya) GroupContainsMember(arg0 context.Context, arg1, arg2 string) (bool, error)

GroupContainsMember mocks base method

func (*MockPitaya) GroupCountMembers

func (m *MockPitaya) GroupCountMembers(arg0 context.Context, arg1 string) (int, error)

GroupCountMembers mocks base method

func (*MockPitaya) GroupCreate

func (m *MockPitaya) GroupCreate(arg0 context.Context, arg1 string) error

GroupCreate mocks base method

func (*MockPitaya) GroupCreateWithTTL

func (m *MockPitaya) GroupCreateWithTTL(arg0 context.Context, arg1 string, arg2 time.Duration) error

GroupCreateWithTTL mocks base method

func (*MockPitaya) GroupDelete

func (m *MockPitaya) GroupDelete(arg0 context.Context, arg1 string) error

GroupDelete mocks base method

func (*MockPitaya) GroupMembers

func (m *MockPitaya) GroupMembers(arg0 context.Context, arg1 string) ([]string, error)

GroupMembers mocks base method

func (*MockPitaya) GroupRemoveAll

func (m *MockPitaya) GroupRemoveAll(arg0 context.Context, arg1 string) error

GroupRemoveAll mocks base method

func (*MockPitaya) GroupRemoveMember

func (m *MockPitaya) GroupRemoveMember(arg0 context.Context, arg1, arg2 string) error

GroupRemoveMember mocks base method

func (*MockPitaya) GroupRenewTTL

func (m *MockPitaya) GroupRenewTTL(arg0 context.Context, arg1 string) error

GroupRenewTTL mocks base method

func (*MockPitaya) IsRunning

func (m *MockPitaya) IsRunning() bool

IsRunning mocks base method

func (*MockPitaya) RPC

func (m *MockPitaya) RPC(arg0 context.Context, arg1 string, arg2, arg3 protoiface.MessageV1) error

RPC mocks base method

func (*MockPitaya) RPCTo

func (m *MockPitaya) RPCTo(arg0 context.Context, arg1, arg2 string, arg3, arg4 protoiface.MessageV1) error

RPCTo mocks base method

func (*MockPitaya) Register

func (m *MockPitaya) Register(arg0 component.Component, arg1 ...component.Option)

Register mocks base method

func (*MockPitaya) RegisterModule

func (m *MockPitaya) RegisterModule(arg0 interfaces.Module, arg1 string) error

RegisterModule mocks base method

func (*MockPitaya) RegisterModuleAfter

func (m *MockPitaya) RegisterModuleAfter(arg0 interfaces.Module, arg1 string) error

RegisterModuleAfter mocks base method

func (*MockPitaya) RegisterModuleBefore

func (m *MockPitaya) RegisterModuleBefore(arg0 interfaces.Module, arg1 string) error

RegisterModuleBefore mocks base method

func (*MockPitaya) RegisterRPCJob

func (m *MockPitaya) RegisterRPCJob(arg0 worker.RPCJob) error

RegisterRPCJob mocks base method

func (*MockPitaya) RegisterRemote

func (m *MockPitaya) RegisterRemote(arg0 component.Component, arg1 ...component.Option)

RegisterRemote mocks base method

func (*MockPitaya) ReliableRPC

func (m *MockPitaya) ReliableRPC(arg0 string, arg1 map[string]interface{}, arg2, arg3 protoiface.MessageV1) (string, error)

ReliableRPC mocks base method

func (*MockPitaya) ReliableRPCWithOptions

func (m *MockPitaya) ReliableRPCWithOptions(arg0 string, arg1 map[string]interface{}, arg2, arg3 protoiface.MessageV1, arg4 *config.EnqueueOpts) (string, error)

ReliableRPCWithOptions mocks base method

func (*MockPitaya) SendKickToUsers

func (m *MockPitaya) SendKickToUsers(arg0 []string, arg1 string) ([]string, error)

SendKickToUsers mocks base method

func (*MockPitaya) SendPushToUsers

func (m *MockPitaya) SendPushToUsers(arg0 string, arg1 interface{}, arg2 []string, arg3 string) ([]string, error)

SendPushToUsers mocks base method

func (*MockPitaya) SetDebug

func (m *MockPitaya) SetDebug(arg0 bool)

SetDebug mocks base method

func (*MockPitaya) SetDictionary

func (m *MockPitaya) SetDictionary(arg0 map[string]uint16) error

SetDictionary mocks base method

func (*MockPitaya) SetHeartbeatTime

func (m *MockPitaya) SetHeartbeatTime(arg0 time.Duration)

SetHeartbeatTime mocks base method

func (*MockPitaya) Shutdown

func (m *MockPitaya) Shutdown()

Shutdown mocks base method

func (*MockPitaya) Start

func (m *MockPitaya) Start()

Start mocks base method

func (*MockPitaya) StartWorker

func (m *MockPitaya) StartWorker()

StartWorker mocks base method

type MockPitayaMockRecorder

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

MockPitayaMockRecorder is the mock recorder for MockPitaya

func (*MockPitayaMockRecorder) AddRoute

func (mr *MockPitayaMockRecorder) AddRoute(arg0, arg1 interface{}) *gomock.Call

AddRoute indicates an expected call of AddRoute

func (*MockPitayaMockRecorder) Documentation

func (mr *MockPitayaMockRecorder) Documentation(arg0 interface{}) *gomock.Call

Documentation indicates an expected call of Documentation

func (*MockPitayaMockRecorder) GetDieChan

func (mr *MockPitayaMockRecorder) GetDieChan() *gomock.Call

GetDieChan indicates an expected call of GetDieChan

func (*MockPitayaMockRecorder) GetMetricsReporters

func (mr *MockPitayaMockRecorder) GetMetricsReporters() *gomock.Call

GetMetricsReporters indicates an expected call of GetMetricsReporters

func (*MockPitayaMockRecorder) GetModule

func (mr *MockPitayaMockRecorder) GetModule(arg0 interface{}) *gomock.Call

GetModule indicates an expected call of GetModule

func (*MockPitayaMockRecorder) GetServer

func (mr *MockPitayaMockRecorder) GetServer() *gomock.Call

GetServer indicates an expected call of GetServer

func (*MockPitayaMockRecorder) GetServerByID

func (mr *MockPitayaMockRecorder) GetServerByID(arg0 interface{}) *gomock.Call

GetServerByID indicates an expected call of GetServerByID

func (*MockPitayaMockRecorder) GetServerID

func (mr *MockPitayaMockRecorder) GetServerID() *gomock.Call

GetServerID indicates an expected call of GetServerID

func (*MockPitayaMockRecorder) GetServers

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

GetServers indicates an expected call of GetServers

func (*MockPitayaMockRecorder) GetServersByType

func (mr *MockPitayaMockRecorder) GetServersByType(arg0 interface{}) *gomock.Call

GetServersByType indicates an expected call of GetServersByType

func (*MockPitayaMockRecorder) GetSessionFromCtx

func (mr *MockPitayaMockRecorder) GetSessionFromCtx(arg0 interface{}) *gomock.Call

GetSessionFromCtx indicates an expected call of GetSessionFromCtx

func (*MockPitayaMockRecorder) GroupAddMember

func (mr *MockPitayaMockRecorder) GroupAddMember(arg0, arg1, arg2 interface{}) *gomock.Call

GroupAddMember indicates an expected call of GroupAddMember

func (*MockPitayaMockRecorder) GroupBroadcast

func (mr *MockPitayaMockRecorder) GroupBroadcast(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

GroupBroadcast indicates an expected call of GroupBroadcast

func (*MockPitayaMockRecorder) GroupContainsMember

func (mr *MockPitayaMockRecorder) GroupContainsMember(arg0, arg1, arg2 interface{}) *gomock.Call

GroupContainsMember indicates an expected call of GroupContainsMember

func (*MockPitayaMockRecorder) GroupCountMembers

func (mr *MockPitayaMockRecorder) GroupCountMembers(arg0, arg1 interface{}) *gomock.Call

GroupCountMembers indicates an expected call of GroupCountMembers

func (*MockPitayaMockRecorder) GroupCreate

func (mr *MockPitayaMockRecorder) GroupCreate(arg0, arg1 interface{}) *gomock.Call

GroupCreate indicates an expected call of GroupCreate

func (*MockPitayaMockRecorder) GroupCreateWithTTL

func (mr *MockPitayaMockRecorder) GroupCreateWithTTL(arg0, arg1, arg2 interface{}) *gomock.Call

GroupCreateWithTTL indicates an expected call of GroupCreateWithTTL

func (*MockPitayaMockRecorder) GroupDelete

func (mr *MockPitayaMockRecorder) GroupDelete(arg0, arg1 interface{}) *gomock.Call

GroupDelete indicates an expected call of GroupDelete

func (*MockPitayaMockRecorder) GroupMembers

func (mr *MockPitayaMockRecorder) GroupMembers(arg0, arg1 interface{}) *gomock.Call

GroupMembers indicates an expected call of GroupMembers

func (*MockPitayaMockRecorder) GroupRemoveAll

func (mr *MockPitayaMockRecorder) GroupRemoveAll(arg0, arg1 interface{}) *gomock.Call

GroupRemoveAll indicates an expected call of GroupRemoveAll

func (*MockPitayaMockRecorder) GroupRemoveMember

func (mr *MockPitayaMockRecorder) GroupRemoveMember(arg0, arg1, arg2 interface{}) *gomock.Call

GroupRemoveMember indicates an expected call of GroupRemoveMember

func (*MockPitayaMockRecorder) GroupRenewTTL

func (mr *MockPitayaMockRecorder) GroupRenewTTL(arg0, arg1 interface{}) *gomock.Call

GroupRenewTTL indicates an expected call of GroupRenewTTL

func (*MockPitayaMockRecorder) IsRunning

func (mr *MockPitayaMockRecorder) IsRunning() *gomock.Call

IsRunning indicates an expected call of IsRunning

func (*MockPitayaMockRecorder) RPC

func (mr *MockPitayaMockRecorder) RPC(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

RPC indicates an expected call of RPC

func (*MockPitayaMockRecorder) RPCTo

func (mr *MockPitayaMockRecorder) RPCTo(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

RPCTo indicates an expected call of RPCTo

func (*MockPitayaMockRecorder) Register

func (mr *MockPitayaMockRecorder) Register(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Register indicates an expected call of Register

func (*MockPitayaMockRecorder) RegisterModule

func (mr *MockPitayaMockRecorder) RegisterModule(arg0, arg1 interface{}) *gomock.Call

RegisterModule indicates an expected call of RegisterModule

func (*MockPitayaMockRecorder) RegisterModuleAfter

func (mr *MockPitayaMockRecorder) RegisterModuleAfter(arg0, arg1 interface{}) *gomock.Call

RegisterModuleAfter indicates an expected call of RegisterModuleAfter

func (*MockPitayaMockRecorder) RegisterModuleBefore

func (mr *MockPitayaMockRecorder) RegisterModuleBefore(arg0, arg1 interface{}) *gomock.Call

RegisterModuleBefore indicates an expected call of RegisterModuleBefore

func (*MockPitayaMockRecorder) RegisterRPCJob

func (mr *MockPitayaMockRecorder) RegisterRPCJob(arg0 interface{}) *gomock.Call

RegisterRPCJob indicates an expected call of RegisterRPCJob

func (*MockPitayaMockRecorder) RegisterRemote

func (mr *MockPitayaMockRecorder) RegisterRemote(arg0 interface{}, arg1 ...interface{}) *gomock.Call

RegisterRemote indicates an expected call of RegisterRemote

func (*MockPitayaMockRecorder) ReliableRPC

func (mr *MockPitayaMockRecorder) ReliableRPC(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

ReliableRPC indicates an expected call of ReliableRPC

func (*MockPitayaMockRecorder) ReliableRPCWithOptions

func (mr *MockPitayaMockRecorder) ReliableRPCWithOptions(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

ReliableRPCWithOptions indicates an expected call of ReliableRPCWithOptions

func (*MockPitayaMockRecorder) SendKickToUsers

func (mr *MockPitayaMockRecorder) SendKickToUsers(arg0, arg1 interface{}) *gomock.Call

SendKickToUsers indicates an expected call of SendKickToUsers

func (*MockPitayaMockRecorder) SendPushToUsers

func (mr *MockPitayaMockRecorder) SendPushToUsers(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

SendPushToUsers indicates an expected call of SendPushToUsers

func (*MockPitayaMockRecorder) SetDebug

func (mr *MockPitayaMockRecorder) SetDebug(arg0 interface{}) *gomock.Call

SetDebug indicates an expected call of SetDebug

func (*MockPitayaMockRecorder) SetDictionary

func (mr *MockPitayaMockRecorder) SetDictionary(arg0 interface{}) *gomock.Call

SetDictionary indicates an expected call of SetDictionary

func (*MockPitayaMockRecorder) SetHeartbeatTime

func (mr *MockPitayaMockRecorder) SetHeartbeatTime(arg0 interface{}) *gomock.Call

SetHeartbeatTime indicates an expected call of SetHeartbeatTime

func (*MockPitayaMockRecorder) Shutdown

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

Shutdown indicates an expected call of Shutdown

func (*MockPitayaMockRecorder) Start

func (mr *MockPitayaMockRecorder) Start() *gomock.Call

Start indicates an expected call of Start

func (*MockPitayaMockRecorder) StartWorker

func (mr *MockPitayaMockRecorder) StartWorker() *gomock.Call

StartWorker indicates an expected call of StartWorker

type MockPlayerConn

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

MockPlayerConn is a mock of PlayerConn interface

func NewMockPlayerConn

func NewMockPlayerConn(ctrl *gomock.Controller) *MockPlayerConn

NewMockPlayerConn creates a new mock instance

func (*MockPlayerConn) Close

func (m *MockPlayerConn) Close() error

Close mocks base method

func (*MockPlayerConn) EXPECT

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

func (*MockPlayerConn) GetNextMessage

func (m *MockPlayerConn) GetNextMessage() ([]byte, error)

GetNextMessage mocks base method

func (*MockPlayerConn) LocalAddr

func (m *MockPlayerConn) LocalAddr() net.Addr

LocalAddr mocks base method

func (*MockPlayerConn) Read

func (m *MockPlayerConn) Read(arg0 []byte) (int, error)

Read mocks base method

func (*MockPlayerConn) RemoteAddr

func (m *MockPlayerConn) RemoteAddr() net.Addr

RemoteAddr mocks base method

func (*MockPlayerConn) SetDeadline

func (m *MockPlayerConn) SetDeadline(arg0 time.Time) error

SetDeadline mocks base method

func (*MockPlayerConn) SetReadDeadline

func (m *MockPlayerConn) SetReadDeadline(arg0 time.Time) error

SetReadDeadline mocks base method

func (*MockPlayerConn) SetWriteDeadline

func (m *MockPlayerConn) SetWriteDeadline(arg0 time.Time) error

SetWriteDeadline mocks base method

func (*MockPlayerConn) Write

func (m *MockPlayerConn) Write(arg0 []byte) (int, error)

Write mocks base method

type MockPlayerConnMockRecorder

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

MockPlayerConnMockRecorder is the mock recorder for MockPlayerConn

func (*MockPlayerConnMockRecorder) Close

func (mr *MockPlayerConnMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close

func (*MockPlayerConnMockRecorder) GetNextMessage

func (mr *MockPlayerConnMockRecorder) GetNextMessage() *gomock.Call

GetNextMessage indicates an expected call of GetNextMessage

func (*MockPlayerConnMockRecorder) LocalAddr

func (mr *MockPlayerConnMockRecorder) LocalAddr() *gomock.Call

LocalAddr indicates an expected call of LocalAddr

func (*MockPlayerConnMockRecorder) Read

func (mr *MockPlayerConnMockRecorder) Read(arg0 interface{}) *gomock.Call

Read indicates an expected call of Read

func (*MockPlayerConnMockRecorder) RemoteAddr

func (mr *MockPlayerConnMockRecorder) RemoteAddr() *gomock.Call

RemoteAddr indicates an expected call of RemoteAddr

func (*MockPlayerConnMockRecorder) SetDeadline

func (mr *MockPlayerConnMockRecorder) SetDeadline(arg0 interface{}) *gomock.Call

SetDeadline indicates an expected call of SetDeadline

func (*MockPlayerConnMockRecorder) SetReadDeadline

func (mr *MockPlayerConnMockRecorder) SetReadDeadline(arg0 interface{}) *gomock.Call

SetReadDeadline indicates an expected call of SetReadDeadline

func (*MockPlayerConnMockRecorder) SetWriteDeadline

func (mr *MockPlayerConnMockRecorder) SetWriteDeadline(arg0 interface{}) *gomock.Call

SetWriteDeadline indicates an expected call of SetWriteDeadline

func (*MockPlayerConnMockRecorder) Write

func (mr *MockPlayerConnMockRecorder) Write(arg0 interface{}) *gomock.Call

Write indicates an expected call of Write

Jump to

Keyboard shortcuts

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