Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockAgent
- func (m *MockAgent) AnswerWithError(arg0 context.Context, arg1 uint, arg2 error)
- func (m *MockAgent) Close() error
- func (m *MockAgent) EXPECT() *MockAgentMockRecorder
- func (m *MockAgent) GetSession() session.Session
- func (m *MockAgent) GetStatus() int32
- func (m *MockAgent) Handle()
- func (m *MockAgent) IPVersion() string
- func (m *MockAgent) Kick(arg0 context.Context) error
- func (m *MockAgent) Push(arg0 string, arg1 interface{}) error
- func (m *MockAgent) RemoteAddr() net.Addr
- func (m *MockAgent) ResponseMID(arg0 context.Context, arg1 uint, arg2 interface{}, arg3 ...bool) error
- func (m *MockAgent) SendHandshakeErrorResponse() error
- func (m *MockAgent) SendHandshakeResponse() error
- func (m *MockAgent) SendRequest(arg0 context.Context, arg1, arg2 string, arg3 interface{}) (*protos.Response, error)
- func (m *MockAgent) SetLastAt()
- func (m *MockAgent) SetStatus(arg0 int32)
- func (m *MockAgent) String() string
- type MockAgentFactory
- type MockAgentFactoryMockRecorder
- type MockAgentMockRecorder
- func (mr *MockAgentMockRecorder) AnswerWithError(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockAgentMockRecorder) Close() *gomock.Call
- func (mr *MockAgentMockRecorder) GetSession() *gomock.Call
- func (mr *MockAgentMockRecorder) GetStatus() *gomock.Call
- func (mr *MockAgentMockRecorder) Handle() *gomock.Call
- func (mr *MockAgentMockRecorder) IPVersion() *gomock.Call
- func (mr *MockAgentMockRecorder) Kick(arg0 interface{}) *gomock.Call
- func (mr *MockAgentMockRecorder) Push(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockAgentMockRecorder) RemoteAddr() *gomock.Call
- func (mr *MockAgentMockRecorder) ResponseMID(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
- func (mr *MockAgentMockRecorder) SendHandshakeErrorResponse() *gomock.Call
- func (mr *MockAgentMockRecorder) SendHandshakeResponse() *gomock.Call
- func (mr *MockAgentMockRecorder) SendRequest(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockAgentMockRecorder) SetLastAt() *gomock.Call
- func (mr *MockAgentMockRecorder) SetStatus(arg0 interface{}) *gomock.Call
- func (mr *MockAgentMockRecorder) String() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAgent ¶
type MockAgent struct {
// contains filtered or unexported fields
}
MockAgent is a mock of Agent interface.
func NewMockAgent ¶
func NewMockAgent(ctrl *gomock.Controller) *MockAgent
NewMockAgent creates a new mock instance.
func (*MockAgent) AnswerWithError ¶
AnswerWithError mocks base method.
func (*MockAgent) EXPECT ¶
func (m *MockAgent) EXPECT() *MockAgentMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAgent) GetSession ¶
GetSession mocks base method.
func (*MockAgent) RemoteAddr ¶
RemoteAddr mocks base method.
func (*MockAgent) ResponseMID ¶
func (m *MockAgent) ResponseMID(arg0 context.Context, arg1 uint, arg2 interface{}, arg3 ...bool) error
ResponseMID mocks base method.
func (*MockAgent) SendHandshakeErrorResponse ¶
SendHandshakeErrorResponse mocks base method.
func (*MockAgent) SendHandshakeResponse ¶
SendHandshakeResponse mocks base method.
func (*MockAgent) SendRequest ¶
func (m *MockAgent) SendRequest(arg0 context.Context, arg1, arg2 string, arg3 interface{}) (*protos.Response, error)
SendRequest mocks base method.
type MockAgentFactory ¶
type MockAgentFactory struct {
// contains filtered or unexported fields
}
MockAgentFactory is a mock of AgentFactory interface.
func NewMockAgentFactory ¶
func NewMockAgentFactory(ctrl *gomock.Controller) *MockAgentFactory
NewMockAgentFactory creates a new mock instance.
func (*MockAgentFactory) CreateAgent ¶
func (m *MockAgentFactory) CreateAgent(arg0 net.Conn) agent.Agent
CreateAgent mocks base method.
func (*MockAgentFactory) EXPECT ¶
func (m *MockAgentFactory) EXPECT() *MockAgentFactoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockAgentFactoryMockRecorder ¶
type MockAgentFactoryMockRecorder struct {
// contains filtered or unexported fields
}
MockAgentFactoryMockRecorder is the mock recorder for MockAgentFactory.
func (*MockAgentFactoryMockRecorder) CreateAgent ¶
func (mr *MockAgentFactoryMockRecorder) CreateAgent(arg0 interface{}) *gomock.Call
CreateAgent indicates an expected call of CreateAgent.
type MockAgentMockRecorder ¶
type MockAgentMockRecorder struct {
// contains filtered or unexported fields
}
MockAgentMockRecorder is the mock recorder for MockAgent.
func (*MockAgentMockRecorder) AnswerWithError ¶
func (mr *MockAgentMockRecorder) AnswerWithError(arg0, arg1, arg2 interface{}) *gomock.Call
AnswerWithError indicates an expected call of AnswerWithError.
func (*MockAgentMockRecorder) Close ¶
func (mr *MockAgentMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockAgentMockRecorder) GetSession ¶
func (mr *MockAgentMockRecorder) GetSession() *gomock.Call
GetSession indicates an expected call of GetSession.
func (*MockAgentMockRecorder) GetStatus ¶
func (mr *MockAgentMockRecorder) GetStatus() *gomock.Call
GetStatus indicates an expected call of GetStatus.
func (*MockAgentMockRecorder) Handle ¶
func (mr *MockAgentMockRecorder) Handle() *gomock.Call
Handle indicates an expected call of Handle.
func (*MockAgentMockRecorder) IPVersion ¶
func (mr *MockAgentMockRecorder) IPVersion() *gomock.Call
IPVersion indicates an expected call of IPVersion.
func (*MockAgentMockRecorder) Kick ¶
func (mr *MockAgentMockRecorder) Kick(arg0 interface{}) *gomock.Call
Kick indicates an expected call of Kick.
func (*MockAgentMockRecorder) Push ¶
func (mr *MockAgentMockRecorder) Push(arg0, arg1 interface{}) *gomock.Call
Push indicates an expected call of Push.
func (*MockAgentMockRecorder) RemoteAddr ¶
func (mr *MockAgentMockRecorder) RemoteAddr() *gomock.Call
RemoteAddr indicates an expected call of RemoteAddr.
func (*MockAgentMockRecorder) ResponseMID ¶
func (mr *MockAgentMockRecorder) ResponseMID(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
ResponseMID indicates an expected call of ResponseMID.
func (*MockAgentMockRecorder) SendHandshakeErrorResponse ¶
func (mr *MockAgentMockRecorder) SendHandshakeErrorResponse() *gomock.Call
SendHandshakeErrorResponse indicates an expected call of SendHandshakeErrorResponse.
func (*MockAgentMockRecorder) SendHandshakeResponse ¶
func (mr *MockAgentMockRecorder) SendHandshakeResponse() *gomock.Call
SendHandshakeResponse indicates an expected call of SendHandshakeResponse.
func (*MockAgentMockRecorder) SendRequest ¶
func (mr *MockAgentMockRecorder) SendRequest(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
SendRequest indicates an expected call of SendRequest.
func (*MockAgentMockRecorder) SetLastAt ¶
func (mr *MockAgentMockRecorder) SetLastAt() *gomock.Call
SetLastAt indicates an expected call of SetLastAt.
func (*MockAgentMockRecorder) SetStatus ¶
func (mr *MockAgentMockRecorder) SetStatus(arg0 interface{}) *gomock.Call
SetStatus indicates an expected call of SetStatus.
func (*MockAgentMockRecorder) String ¶
func (mr *MockAgentMockRecorder) String() *gomock.Call
String indicates an expected call of String.