Versions in this module Expand all Collapse all v2 v2.9.1 Dec 25, 2023 Changes in this version + type MockAgent struct + func NewMockAgent(ctrl *gomock.Controller) *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 struct + func NewMockAgentFactory(ctrl *gomock.Controller) *MockAgentFactory + func (m *MockAgentFactory) CreateAgent(arg0 net.Conn) agent.Agent + func (m *MockAgentFactory) EXPECT() *MockAgentFactoryMockRecorder + type MockAgentFactoryMockRecorder struct + func (mr *MockAgentFactoryMockRecorder) CreateAgent(arg0 interface{}) *gomock.Call + type MockAgentMockRecorder struct + 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