mocks

package
v2.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

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 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

func (m *MockAgent) AnswerWithError(arg0 context.Context, arg1 uint, arg2 error)

AnswerWithError mocks base method

func (*MockAgent) Close

func (m *MockAgent) Close() error

Close 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

func (m *MockAgent) GetSession() session.Session

GetSession mocks base method

func (*MockAgent) GetStatus

func (m *MockAgent) GetStatus() int32

GetStatus mocks base method

func (*MockAgent) Handle

func (m *MockAgent) Handle()

Handle mocks base method

func (*MockAgent) IPVersion

func (m *MockAgent) IPVersion() string

IPVersion mocks base method

func (*MockAgent) Kick

func (m *MockAgent) Kick(arg0 context.Context) error

Kick mocks base method

func (*MockAgent) Push

func (m *MockAgent) Push(arg0 string, arg1 interface{}) error

Push mocks base method

func (*MockAgent) RemoteAddr

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

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) SendHandshakeResponse

func (m *MockAgent) SendHandshakeResponse() error

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

func (*MockAgent) SetLastAt

func (m *MockAgent) SetLastAt()

SetLastAt mocks base method

func (*MockAgent) SetStatus

func (m *MockAgent) SetStatus(arg0 int32)

SetStatus mocks base method

func (*MockAgent) String

func (m *MockAgent) String() string

String 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

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) 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

Jump to

Keyboard shortcuts

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