Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockSession
- func (m *MockSession) Bind(arg0 context.Context, arg1 string) error
- func (m *MockSession) Clear()
- func (m *MockSession) Close()
- func (m *MockSession) EXPECT() *MockSessionMockRecorder
- func (m *MockSession) Float32(arg0 string) float32
- func (m *MockSession) Float64(arg0 string) float64
- func (m *MockSession) Get(arg0 string) interface{}
- func (m *MockSession) GetData() map[string]interface{}
- func (m *MockSession) GetDataEncoded() []byte
- func (m *MockSession) GetHandshakeData() *session.HandshakeData
- func (m *MockSession) GetHandshakeValidators() map[string]func(*session.HandshakeData) error
- func (m *MockSession) GetIsFrontend() bool
- func (m *MockSession) GetOnCloseCallbacks() []func()
- func (m *MockSession) GetRequestsInFlight() session.ReqInFlight
- func (m *MockSession) GetSubscriptions() []*nats.Subscription
- func (m *MockSession) HasKey(arg0 string) bool
- func (m *MockSession) HasRequestsInFlight() bool
- func (m *MockSession) ID() int64
- func (m *MockSession) Int(arg0 string) int
- func (m *MockSession) Int16(arg0 string) int16
- func (m *MockSession) Int32(arg0 string) int32
- func (m *MockSession) Int64(arg0 string) int64
- func (m *MockSession) Int8(arg0 string) int8
- func (m *MockSession) Kick(arg0 context.Context) error
- func (m *MockSession) OnClose(arg0 func()) error
- func (m *MockSession) Push(arg0 string, arg1 interface{}) error
- func (m *MockSession) PushToFront(arg0 context.Context) error
- func (m *MockSession) RemoteAddr() net.Addr
- func (m *MockSession) Remove(arg0 string) error
- func (m *MockSession) ResponseMID(arg0 context.Context, arg1 uint, arg2 interface{}, arg3 ...bool) error
- func (m *MockSession) Set(arg0 string, arg1 interface{}) error
- func (m *MockSession) SetData(arg0 map[string]interface{}) error
- func (m *MockSession) SetDataEncoded(arg0 []byte) error
- func (m *MockSession) SetFrontendData(arg0 string, arg1 int64)
- func (m *MockSession) SetHandshakeData(arg0 *session.HandshakeData)
- func (m *MockSession) SetIsFrontend(arg0 bool)
- func (m *MockSession) SetOnCloseCallbacks(arg0 []func())
- func (m *MockSession) SetRequestInFlight(arg0, arg1 string, arg2 bool)
- func (m *MockSession) SetSubscriptions(arg0 []*nats.Subscription)
- func (m *MockSession) String(arg0 string) string
- func (m *MockSession) UID() string
- func (m *MockSession) Uint(arg0 string) uint
- func (m *MockSession) Uint16(arg0 string) uint16
- func (m *MockSession) Uint32(arg0 string) uint32
- func (m *MockSession) Uint64(arg0 string) uint64
- func (m *MockSession) Uint8(arg0 string) byte
- func (m *MockSession) ValidateHandshake(arg0 *session.HandshakeData) error
- func (m *MockSession) Value(arg0 string) interface{}
- type MockSessionMockRecorder
- func (mr *MockSessionMockRecorder) Bind(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) Clear() *gomock.Call
- func (mr *MockSessionMockRecorder) Close() *gomock.Call
- func (mr *MockSessionMockRecorder) Float32(arg0 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) Float64(arg0 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) Get(arg0 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) GetData() *gomock.Call
- func (mr *MockSessionMockRecorder) GetDataEncoded() *gomock.Call
- func (mr *MockSessionMockRecorder) GetHandshakeData() *gomock.Call
- func (mr *MockSessionMockRecorder) GetHandshakeValidators() *gomock.Call
- func (mr *MockSessionMockRecorder) GetIsFrontend() *gomock.Call
- func (mr *MockSessionMockRecorder) GetOnCloseCallbacks() *gomock.Call
- func (mr *MockSessionMockRecorder) GetRequestsInFlight() *gomock.Call
- func (mr *MockSessionMockRecorder) GetSubscriptions() *gomock.Call
- func (mr *MockSessionMockRecorder) HasKey(arg0 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) HasRequestsInFlight() *gomock.Call
- func (mr *MockSessionMockRecorder) ID() *gomock.Call
- func (mr *MockSessionMockRecorder) Int(arg0 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) Int16(arg0 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) Int32(arg0 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) Int64(arg0 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) Int8(arg0 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) Kick(arg0 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) OnClose(arg0 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) Push(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) PushToFront(arg0 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) RemoteAddr() *gomock.Call
- func (mr *MockSessionMockRecorder) Remove(arg0 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) ResponseMID(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) Set(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) SetData(arg0 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) SetDataEncoded(arg0 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) SetFrontendData(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) SetHandshakeData(arg0 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) SetIsFrontend(arg0 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) SetOnCloseCallbacks(arg0 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) SetRequestInFlight(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) SetSubscriptions(arg0 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) String(arg0 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) UID() *gomock.Call
- func (mr *MockSessionMockRecorder) Uint(arg0 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) Uint16(arg0 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) Uint32(arg0 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) Uint64(arg0 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) Uint8(arg0 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) ValidateHandshake(arg0 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) Value(arg0 interface{}) *gomock.Call
- type MockSessionPool
- func (m *MockSessionPool) AddHandshakeValidator(arg0 string, arg1 func(*session.HandshakeData) error)
- func (m *MockSessionPool) CloseAll()
- func (m *MockSessionPool) EXPECT() *MockSessionPoolMockRecorder
- func (m *MockSessionPool) GetSessionByID(arg0 int64) session.Session
- func (m *MockSessionPool) GetSessionByUID(arg0 string) session.Session
- func (m *MockSessionPool) GetSessionCloseCallbacks() []func(session.Session)
- func (m *MockSessionPool) GetSessionCount() int64
- func (m *MockSessionPool) NewSession(arg0 networkentity.NetworkEntity, arg1 bool, arg2 ...string) session.Session
- func (m *MockSessionPool) OnAfterSessionBind(arg0 func(context.Context, session.Session) error)
- func (m *MockSessionPool) OnSessionBind(arg0 func(context.Context, session.Session) error)
- func (m *MockSessionPool) OnSessionClose(arg0 func(session.Session))
- type MockSessionPoolMockRecorder
- func (mr *MockSessionPoolMockRecorder) AddHandshakeValidator(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSessionPoolMockRecorder) CloseAll() *gomock.Call
- func (mr *MockSessionPoolMockRecorder) GetSessionByID(arg0 interface{}) *gomock.Call
- func (mr *MockSessionPoolMockRecorder) GetSessionByUID(arg0 interface{}) *gomock.Call
- func (mr *MockSessionPoolMockRecorder) GetSessionCloseCallbacks() *gomock.Call
- func (mr *MockSessionPoolMockRecorder) GetSessionCount() *gomock.Call
- func (mr *MockSessionPoolMockRecorder) NewSession(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockSessionPoolMockRecorder) OnAfterSessionBind(arg0 interface{}) *gomock.Call
- func (mr *MockSessionPoolMockRecorder) OnSessionBind(arg0 interface{}) *gomock.Call
- func (mr *MockSessionPoolMockRecorder) OnSessionClose(arg0 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockSession ¶
type MockSession struct {
// contains filtered or unexported fields
}
MockSession is a mock of Session interface.
func NewMockSession ¶
func NewMockSession(ctrl *gomock.Controller) *MockSession
NewMockSession creates a new mock instance.
func (*MockSession) Bind ¶
func (m *MockSession) Bind(arg0 context.Context, arg1 string) error
Bind mocks base method.
func (*MockSession) EXPECT ¶
func (m *MockSession) EXPECT() *MockSessionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSession) Float32 ¶
func (m *MockSession) Float32(arg0 string) float32
Float32 mocks base method.
func (*MockSession) Float64 ¶
func (m *MockSession) Float64(arg0 string) float64
Float64 mocks base method.
func (*MockSession) GetData ¶
func (m *MockSession) GetData() map[string]interface{}
GetData mocks base method.
func (*MockSession) GetDataEncoded ¶
func (m *MockSession) GetDataEncoded() []byte
GetDataEncoded mocks base method.
func (*MockSession) GetHandshakeData ¶
func (m *MockSession) GetHandshakeData() *session.HandshakeData
GetHandshakeData mocks base method.
func (*MockSession) GetHandshakeValidators ¶
func (m *MockSession) GetHandshakeValidators() map[string]func(*session.HandshakeData) error
GetHandshakeValidators mocks base method.
func (*MockSession) GetIsFrontend ¶
func (m *MockSession) GetIsFrontend() bool
GetIsFrontend mocks base method.
func (*MockSession) GetOnCloseCallbacks ¶
func (m *MockSession) GetOnCloseCallbacks() []func()
GetOnCloseCallbacks mocks base method.
func (*MockSession) GetRequestsInFlight ¶
func (m *MockSession) GetRequestsInFlight() session.ReqInFlight
GetRequestsInFlight mocks base method.
func (*MockSession) GetSubscriptions ¶
func (m *MockSession) GetSubscriptions() []*nats.Subscription
GetSubscriptions mocks base method.
func (*MockSession) HasKey ¶
func (m *MockSession) HasKey(arg0 string) bool
HasKey mocks base method.
func (*MockSession) HasRequestsInFlight ¶
func (m *MockSession) HasRequestsInFlight() bool
HasRequestsInFlight mocks base method.
func (*MockSession) Kick ¶
func (m *MockSession) Kick(arg0 context.Context) error
Kick mocks base method.
func (*MockSession) OnClose ¶
func (m *MockSession) OnClose(arg0 func()) error
OnClose mocks base method.
func (*MockSession) Push ¶
func (m *MockSession) Push(arg0 string, arg1 interface{}) error
Push mocks base method.
func (*MockSession) PushToFront ¶
func (m *MockSession) PushToFront(arg0 context.Context) error
PushToFront mocks base method.
func (*MockSession) RemoteAddr ¶
func (m *MockSession) RemoteAddr() net.Addr
RemoteAddr mocks base method.
func (*MockSession) Remove ¶
func (m *MockSession) Remove(arg0 string) error
Remove mocks base method.
func (*MockSession) ResponseMID ¶
func (m *MockSession) ResponseMID(arg0 context.Context, arg1 uint, arg2 interface{}, arg3 ...bool) error
ResponseMID mocks base method.
func (*MockSession) Set ¶
func (m *MockSession) Set(arg0 string, arg1 interface{}) error
Set mocks base method.
func (*MockSession) SetData ¶
func (m *MockSession) SetData(arg0 map[string]interface{}) error
SetData mocks base method.
func (*MockSession) SetDataEncoded ¶
func (m *MockSession) SetDataEncoded(arg0 []byte) error
SetDataEncoded mocks base method.
func (*MockSession) SetFrontendData ¶
func (m *MockSession) SetFrontendData(arg0 string, arg1 int64)
SetFrontendData mocks base method.
func (*MockSession) SetHandshakeData ¶
func (m *MockSession) SetHandshakeData(arg0 *session.HandshakeData)
SetHandshakeData mocks base method.
func (*MockSession) SetIsFrontend ¶
func (m *MockSession) SetIsFrontend(arg0 bool)
SetIsFrontend mocks base method.
func (*MockSession) SetOnCloseCallbacks ¶
func (m *MockSession) SetOnCloseCallbacks(arg0 []func())
SetOnCloseCallbacks mocks base method.
func (*MockSession) SetRequestInFlight ¶
func (m *MockSession) SetRequestInFlight(arg0, arg1 string, arg2 bool)
SetRequestInFlight mocks base method.
func (*MockSession) SetSubscriptions ¶
func (m *MockSession) SetSubscriptions(arg0 []*nats.Subscription)
SetSubscriptions mocks base method.
func (*MockSession) String ¶
func (m *MockSession) String(arg0 string) string
String mocks base method.
func (*MockSession) Uint16 ¶
func (m *MockSession) Uint16(arg0 string) uint16
Uint16 mocks base method.
func (*MockSession) Uint32 ¶
func (m *MockSession) Uint32(arg0 string) uint32
Uint32 mocks base method.
func (*MockSession) Uint64 ¶
func (m *MockSession) Uint64(arg0 string) uint64
Uint64 mocks base method.
func (*MockSession) ValidateHandshake ¶
func (m *MockSession) ValidateHandshake(arg0 *session.HandshakeData) error
ValidateHandshake mocks base method.
func (*MockSession) Value ¶
func (m *MockSession) Value(arg0 string) interface{}
Value mocks base method.
type MockSessionMockRecorder ¶
type MockSessionMockRecorder struct {
// contains filtered or unexported fields
}
MockSessionMockRecorder is the mock recorder for MockSession.
func (*MockSessionMockRecorder) Bind ¶
func (mr *MockSessionMockRecorder) Bind(arg0, arg1 interface{}) *gomock.Call
Bind indicates an expected call of Bind.
func (*MockSessionMockRecorder) Clear ¶
func (mr *MockSessionMockRecorder) Clear() *gomock.Call
Clear indicates an expected call of Clear.
func (*MockSessionMockRecorder) Close ¶
func (mr *MockSessionMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockSessionMockRecorder) Float32 ¶
func (mr *MockSessionMockRecorder) Float32(arg0 interface{}) *gomock.Call
Float32 indicates an expected call of Float32.
func (*MockSessionMockRecorder) Float64 ¶
func (mr *MockSessionMockRecorder) Float64(arg0 interface{}) *gomock.Call
Float64 indicates an expected call of Float64.
func (*MockSessionMockRecorder) Get ¶
func (mr *MockSessionMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockSessionMockRecorder) GetData ¶
func (mr *MockSessionMockRecorder) GetData() *gomock.Call
GetData indicates an expected call of GetData.
func (*MockSessionMockRecorder) GetDataEncoded ¶
func (mr *MockSessionMockRecorder) GetDataEncoded() *gomock.Call
GetDataEncoded indicates an expected call of GetDataEncoded.
func (*MockSessionMockRecorder) GetHandshakeData ¶
func (mr *MockSessionMockRecorder) GetHandshakeData() *gomock.Call
GetHandshakeData indicates an expected call of GetHandshakeData.
func (*MockSessionMockRecorder) GetHandshakeValidators ¶
func (mr *MockSessionMockRecorder) GetHandshakeValidators() *gomock.Call
GetHandshakeValidators indicates an expected call of GetHandshakeValidators.
func (*MockSessionMockRecorder) GetIsFrontend ¶
func (mr *MockSessionMockRecorder) GetIsFrontend() *gomock.Call
GetIsFrontend indicates an expected call of GetIsFrontend.
func (*MockSessionMockRecorder) GetOnCloseCallbacks ¶
func (mr *MockSessionMockRecorder) GetOnCloseCallbacks() *gomock.Call
GetOnCloseCallbacks indicates an expected call of GetOnCloseCallbacks.
func (*MockSessionMockRecorder) GetRequestsInFlight ¶
func (mr *MockSessionMockRecorder) GetRequestsInFlight() *gomock.Call
GetRequestsInFlight indicates an expected call of GetRequestsInFlight.
func (*MockSessionMockRecorder) GetSubscriptions ¶
func (mr *MockSessionMockRecorder) GetSubscriptions() *gomock.Call
GetSubscriptions indicates an expected call of GetSubscriptions.
func (*MockSessionMockRecorder) HasKey ¶
func (mr *MockSessionMockRecorder) HasKey(arg0 interface{}) *gomock.Call
HasKey indicates an expected call of HasKey.
func (*MockSessionMockRecorder) HasRequestsInFlight ¶
func (mr *MockSessionMockRecorder) HasRequestsInFlight() *gomock.Call
HasRequestsInFlight indicates an expected call of HasRequestsInFlight.
func (*MockSessionMockRecorder) ID ¶
func (mr *MockSessionMockRecorder) ID() *gomock.Call
ID indicates an expected call of ID.
func (*MockSessionMockRecorder) Int ¶
func (mr *MockSessionMockRecorder) Int(arg0 interface{}) *gomock.Call
Int indicates an expected call of Int.
func (*MockSessionMockRecorder) Int16 ¶
func (mr *MockSessionMockRecorder) Int16(arg0 interface{}) *gomock.Call
Int16 indicates an expected call of Int16.
func (*MockSessionMockRecorder) Int32 ¶
func (mr *MockSessionMockRecorder) Int32(arg0 interface{}) *gomock.Call
Int32 indicates an expected call of Int32.
func (*MockSessionMockRecorder) Int64 ¶
func (mr *MockSessionMockRecorder) Int64(arg0 interface{}) *gomock.Call
Int64 indicates an expected call of Int64.
func (*MockSessionMockRecorder) Int8 ¶
func (mr *MockSessionMockRecorder) Int8(arg0 interface{}) *gomock.Call
Int8 indicates an expected call of Int8.
func (*MockSessionMockRecorder) Kick ¶
func (mr *MockSessionMockRecorder) Kick(arg0 interface{}) *gomock.Call
Kick indicates an expected call of Kick.
func (*MockSessionMockRecorder) OnClose ¶
func (mr *MockSessionMockRecorder) OnClose(arg0 interface{}) *gomock.Call
OnClose indicates an expected call of OnClose.
func (*MockSessionMockRecorder) Push ¶
func (mr *MockSessionMockRecorder) Push(arg0, arg1 interface{}) *gomock.Call
Push indicates an expected call of Push.
func (*MockSessionMockRecorder) PushToFront ¶
func (mr *MockSessionMockRecorder) PushToFront(arg0 interface{}) *gomock.Call
PushToFront indicates an expected call of PushToFront.
func (*MockSessionMockRecorder) RemoteAddr ¶
func (mr *MockSessionMockRecorder) RemoteAddr() *gomock.Call
RemoteAddr indicates an expected call of RemoteAddr.
func (*MockSessionMockRecorder) Remove ¶
func (mr *MockSessionMockRecorder) Remove(arg0 interface{}) *gomock.Call
Remove indicates an expected call of Remove.
func (*MockSessionMockRecorder) ResponseMID ¶
func (mr *MockSessionMockRecorder) ResponseMID(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
ResponseMID indicates an expected call of ResponseMID.
func (*MockSessionMockRecorder) Set ¶
func (mr *MockSessionMockRecorder) Set(arg0, arg1 interface{}) *gomock.Call
Set indicates an expected call of Set.
func (*MockSessionMockRecorder) SetData ¶
func (mr *MockSessionMockRecorder) SetData(arg0 interface{}) *gomock.Call
SetData indicates an expected call of SetData.
func (*MockSessionMockRecorder) SetDataEncoded ¶
func (mr *MockSessionMockRecorder) SetDataEncoded(arg0 interface{}) *gomock.Call
SetDataEncoded indicates an expected call of SetDataEncoded.
func (*MockSessionMockRecorder) SetFrontendData ¶
func (mr *MockSessionMockRecorder) SetFrontendData(arg0, arg1 interface{}) *gomock.Call
SetFrontendData indicates an expected call of SetFrontendData.
func (*MockSessionMockRecorder) SetHandshakeData ¶
func (mr *MockSessionMockRecorder) SetHandshakeData(arg0 interface{}) *gomock.Call
SetHandshakeData indicates an expected call of SetHandshakeData.
func (*MockSessionMockRecorder) SetIsFrontend ¶
func (mr *MockSessionMockRecorder) SetIsFrontend(arg0 interface{}) *gomock.Call
SetIsFrontend indicates an expected call of SetIsFrontend.
func (*MockSessionMockRecorder) SetOnCloseCallbacks ¶
func (mr *MockSessionMockRecorder) SetOnCloseCallbacks(arg0 interface{}) *gomock.Call
SetOnCloseCallbacks indicates an expected call of SetOnCloseCallbacks.
func (*MockSessionMockRecorder) SetRequestInFlight ¶
func (mr *MockSessionMockRecorder) SetRequestInFlight(arg0, arg1, arg2 interface{}) *gomock.Call
SetRequestInFlight indicates an expected call of SetRequestInFlight.
func (*MockSessionMockRecorder) SetSubscriptions ¶
func (mr *MockSessionMockRecorder) SetSubscriptions(arg0 interface{}) *gomock.Call
SetSubscriptions indicates an expected call of SetSubscriptions.
func (*MockSessionMockRecorder) String ¶
func (mr *MockSessionMockRecorder) String(arg0 interface{}) *gomock.Call
String indicates an expected call of String.
func (*MockSessionMockRecorder) UID ¶
func (mr *MockSessionMockRecorder) UID() *gomock.Call
UID indicates an expected call of UID.
func (*MockSessionMockRecorder) Uint ¶
func (mr *MockSessionMockRecorder) Uint(arg0 interface{}) *gomock.Call
Uint indicates an expected call of Uint.
func (*MockSessionMockRecorder) Uint16 ¶
func (mr *MockSessionMockRecorder) Uint16(arg0 interface{}) *gomock.Call
Uint16 indicates an expected call of Uint16.
func (*MockSessionMockRecorder) Uint32 ¶
func (mr *MockSessionMockRecorder) Uint32(arg0 interface{}) *gomock.Call
Uint32 indicates an expected call of Uint32.
func (*MockSessionMockRecorder) Uint64 ¶
func (mr *MockSessionMockRecorder) Uint64(arg0 interface{}) *gomock.Call
Uint64 indicates an expected call of Uint64.
func (*MockSessionMockRecorder) Uint8 ¶
func (mr *MockSessionMockRecorder) Uint8(arg0 interface{}) *gomock.Call
Uint8 indicates an expected call of Uint8.
func (*MockSessionMockRecorder) ValidateHandshake ¶
func (mr *MockSessionMockRecorder) ValidateHandshake(arg0 interface{}) *gomock.Call
ValidateHandshake indicates an expected call of ValidateHandshake.
func (*MockSessionMockRecorder) Value ¶
func (mr *MockSessionMockRecorder) Value(arg0 interface{}) *gomock.Call
Value indicates an expected call of Value.
type MockSessionPool ¶
type MockSessionPool struct {
// contains filtered or unexported fields
}
MockSessionPool is a mock of SessionPool interface.
func NewMockSessionPool ¶
func NewMockSessionPool(ctrl *gomock.Controller) *MockSessionPool
NewMockSessionPool creates a new mock instance.
func (*MockSessionPool) AddHandshakeValidator ¶
func (m *MockSessionPool) AddHandshakeValidator(arg0 string, arg1 func(*session.HandshakeData) error)
AddHandshakeValidator mocks base method.
func (*MockSessionPool) EXPECT ¶
func (m *MockSessionPool) EXPECT() *MockSessionPoolMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSessionPool) GetSessionByID ¶
func (m *MockSessionPool) GetSessionByID(arg0 int64) session.Session
GetSessionByID mocks base method.
func (*MockSessionPool) GetSessionByUID ¶
func (m *MockSessionPool) GetSessionByUID(arg0 string) session.Session
GetSessionByUID mocks base method.
func (*MockSessionPool) GetSessionCloseCallbacks ¶
func (m *MockSessionPool) GetSessionCloseCallbacks() []func(session.Session)
GetSessionCloseCallbacks mocks base method.
func (*MockSessionPool) GetSessionCount ¶
func (m *MockSessionPool) GetSessionCount() int64
GetSessionCount mocks base method.
func (*MockSessionPool) NewSession ¶
func (m *MockSessionPool) NewSession(arg0 networkentity.NetworkEntity, arg1 bool, arg2 ...string) session.Session
NewSession mocks base method.
func (*MockSessionPool) OnAfterSessionBind ¶
OnAfterSessionBind mocks base method.
func (*MockSessionPool) OnSessionBind ¶
OnSessionBind mocks base method.
func (*MockSessionPool) OnSessionClose ¶
func (m *MockSessionPool) OnSessionClose(arg0 func(session.Session))
OnSessionClose mocks base method.
type MockSessionPoolMockRecorder ¶
type MockSessionPoolMockRecorder struct {
// contains filtered or unexported fields
}
MockSessionPoolMockRecorder is the mock recorder for MockSessionPool.
func (*MockSessionPoolMockRecorder) AddHandshakeValidator ¶
func (mr *MockSessionPoolMockRecorder) AddHandshakeValidator(arg0, arg1 interface{}) *gomock.Call
AddHandshakeValidator indicates an expected call of AddHandshakeValidator.
func (*MockSessionPoolMockRecorder) CloseAll ¶
func (mr *MockSessionPoolMockRecorder) CloseAll() *gomock.Call
CloseAll indicates an expected call of CloseAll.
func (*MockSessionPoolMockRecorder) GetSessionByID ¶
func (mr *MockSessionPoolMockRecorder) GetSessionByID(arg0 interface{}) *gomock.Call
GetSessionByID indicates an expected call of GetSessionByID.
func (*MockSessionPoolMockRecorder) GetSessionByUID ¶
func (mr *MockSessionPoolMockRecorder) GetSessionByUID(arg0 interface{}) *gomock.Call
GetSessionByUID indicates an expected call of GetSessionByUID.
func (*MockSessionPoolMockRecorder) GetSessionCloseCallbacks ¶
func (mr *MockSessionPoolMockRecorder) GetSessionCloseCallbacks() *gomock.Call
GetSessionCloseCallbacks indicates an expected call of GetSessionCloseCallbacks.
func (*MockSessionPoolMockRecorder) GetSessionCount ¶
func (mr *MockSessionPoolMockRecorder) GetSessionCount() *gomock.Call
GetSessionCount indicates an expected call of GetSessionCount.
func (*MockSessionPoolMockRecorder) NewSession ¶
func (mr *MockSessionPoolMockRecorder) NewSession(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
NewSession indicates an expected call of NewSession.
func (*MockSessionPoolMockRecorder) OnAfterSessionBind ¶
func (mr *MockSessionPoolMockRecorder) OnAfterSessionBind(arg0 interface{}) *gomock.Call
OnAfterSessionBind indicates an expected call of OnAfterSessionBind.
func (*MockSessionPoolMockRecorder) OnSessionBind ¶
func (mr *MockSessionPoolMockRecorder) OnSessionBind(arg0 interface{}) *gomock.Call
OnSessionBind indicates an expected call of OnSessionBind.
func (*MockSessionPoolMockRecorder) OnSessionClose ¶
func (mr *MockSessionPoolMockRecorder) OnSessionClose(arg0 interface{}) *gomock.Call
OnSessionClose indicates an expected call of OnSessionClose.