mocks

package
v0.0.0-...-76f49ba Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 4 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 MockConn

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

MockConn is a mock of Conn interface.

func NewMockConn

func NewMockConn(ctrl *gomock.Controller) *MockConn

NewMockConn creates a new mock instance.

func (*MockConn) Close

func (m *MockConn) Close() error

Close mocks base method.

func (*MockConn) EXPECT

func (m *MockConn) EXPECT() *MockConnMockRecorder

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

func (*MockConn) LocalAddr

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

LocalAddr mocks base method.

func (*MockConn) Read

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

Read mocks base method.

func (*MockConn) RemoteAddr

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

RemoteAddr mocks base method.

func (*MockConn) SetDeadline

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

SetDeadline mocks base method.

func (*MockConn) SetReadDeadline

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

SetReadDeadline mocks base method.

func (*MockConn) SetWriteDeadline

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

SetWriteDeadline mocks base method.

func (*MockConn) Write

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

Write mocks base method.

type MockConnMockRecorder

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

MockConnMockRecorder is the mock recorder for MockConn.

func (*MockConnMockRecorder) Close

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

Close indicates an expected call of Close.

func (*MockConnMockRecorder) LocalAddr

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

LocalAddr indicates an expected call of LocalAddr.

func (*MockConnMockRecorder) Read

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

Read indicates an expected call of Read.

func (*MockConnMockRecorder) RemoteAddr

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

RemoteAddr indicates an expected call of RemoteAddr.

func (*MockConnMockRecorder) SetDeadline

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

SetDeadline indicates an expected call of SetDeadline.

func (*MockConnMockRecorder) SetReadDeadline

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

SetReadDeadline indicates an expected call of SetReadDeadline.

func (*MockConnMockRecorder) SetWriteDeadline

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

SetWriteDeadline indicates an expected call of SetWriteDeadline.

func (*MockConnMockRecorder) Write

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

Write indicates an expected call of Write.

type MockNetDialerInterface

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

MockNetDialerInterface is a mock of NetDialerInterface interface.

func NewMockNetDialerInterface

func NewMockNetDialerInterface(ctrl *gomock.Controller) *MockNetDialerInterface

NewMockNetDialerInterface creates a new mock instance.

func (*MockNetDialerInterface) Dial

func (m *MockNetDialerInterface) Dial(network, address string) (net.Conn, error)

Dial mocks base method.

func (*MockNetDialerInterface) DialTimeout

func (m *MockNetDialerInterface) DialTimeout(network, address string, timeout time.Duration) (net.Conn, error)

DialTimeout mocks base method.

func (*MockNetDialerInterface) EXPECT

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

func (*MockNetDialerInterface) GetRetryLimit

func (m *MockNetDialerInterface) GetRetryLimit() int

GetRetryLimit mocks base method.

func (*MockNetDialerInterface) GetTimeout

func (m *MockNetDialerInterface) GetTimeout() time.Duration

GetTimeout mocks base method.

type MockNetDialerInterfaceMockRecorder

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

MockNetDialerInterfaceMockRecorder is the mock recorder for MockNetDialerInterface.

func (*MockNetDialerInterfaceMockRecorder) Dial

func (mr *MockNetDialerInterfaceMockRecorder) Dial(network, address interface{}) *gomock.Call

Dial indicates an expected call of Dial.

func (*MockNetDialerInterfaceMockRecorder) DialTimeout

func (mr *MockNetDialerInterfaceMockRecorder) DialTimeout(network, address, timeout interface{}) *gomock.Call

DialTimeout indicates an expected call of DialTimeout.

func (*MockNetDialerInterfaceMockRecorder) GetRetryLimit

func (mr *MockNetDialerInterfaceMockRecorder) GetRetryLimit() *gomock.Call

GetRetryLimit indicates an expected call of GetRetryLimit.

func (*MockNetDialerInterfaceMockRecorder) GetTimeout

GetTimeout indicates an expected call of GetTimeout.

type MockUpstreamServerInterface

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

MockUpstreamServerInterface is a mock of UpstreamServerInterface interface.

func NewMockUpstreamServerInterface

func NewMockUpstreamServerInterface(ctrl *gomock.Controller) *MockUpstreamServerInterface

NewMockUpstreamServerInterface creates a new mock instance.

func (*MockUpstreamServerInterface) DecrementConnectionCount

func (m *MockUpstreamServerInterface) DecrementConnectionCount()

DecrementConnectionCount mocks base method.

func (*MockUpstreamServerInterface) EXPECT

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

func (*MockUpstreamServerInterface) GetAddress

func (m *MockUpstreamServerInterface) GetAddress() string

GetAddress mocks base method.

func (*MockUpstreamServerInterface) GetConnectionCount

func (m *MockUpstreamServerInterface) GetConnectionCount() int

GetConnectionCount mocks base method.

func (*MockUpstreamServerInterface) IncrementConnectionCount

func (m *MockUpstreamServerInterface) IncrementConnectionCount()

IncrementConnectionCount mocks base method.

func (*MockUpstreamServerInterface) IsHealthy

func (m *MockUpstreamServerInterface) IsHealthy() bool

IsHealthy mocks base method.

func (*MockUpstreamServerInterface) SetHealthy

func (m *MockUpstreamServerInterface) SetHealthy(healthy bool)

SetHealthy mocks base method.

type MockUpstreamServerInterfaceMockRecorder

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

MockUpstreamServerInterfaceMockRecorder is the mock recorder for MockUpstreamServerInterface.

func (*MockUpstreamServerInterfaceMockRecorder) DecrementConnectionCount

func (mr *MockUpstreamServerInterfaceMockRecorder) DecrementConnectionCount() *gomock.Call

DecrementConnectionCount indicates an expected call of DecrementConnectionCount.

func (*MockUpstreamServerInterfaceMockRecorder) GetAddress

GetAddress indicates an expected call of GetAddress.

func (*MockUpstreamServerInterfaceMockRecorder) GetConnectionCount

func (mr *MockUpstreamServerInterfaceMockRecorder) GetConnectionCount() *gomock.Call

GetConnectionCount indicates an expected call of GetConnectionCount.

func (*MockUpstreamServerInterfaceMockRecorder) IncrementConnectionCount

func (mr *MockUpstreamServerInterfaceMockRecorder) IncrementConnectionCount() *gomock.Call

IncrementConnectionCount indicates an expected call of IncrementConnectionCount.

func (*MockUpstreamServerInterfaceMockRecorder) IsHealthy

IsHealthy indicates an expected call of IsHealthy.

func (*MockUpstreamServerInterfaceMockRecorder) SetHealthy

func (mr *MockUpstreamServerInterfaceMockRecorder) SetHealthy(healthy interface{}) *gomock.Call

SetHealthy indicates an expected call of SetHealthy.

Jump to

Keyboard shortcuts

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