net

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package net is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAddr

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

MockAddr is a mock of Addr interface.

func NewMockAddr

func NewMockAddr(ctrl *gomock.Controller) *MockAddr

NewMockAddr creates a new mock instance.

func (*MockAddr) EXPECT

func (m *MockAddr) EXPECT() *MockAddrMockRecorder

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

func (*MockAddr) Network

func (m *MockAddr) Network() string

Network mocks base method.

func (*MockAddr) String

func (m *MockAddr) String() string

String mocks base method.

type MockAddrMockRecorder

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

MockAddrMockRecorder is the mock recorder for MockAddr.

func (*MockAddrMockRecorder) Network

func (mr *MockAddrMockRecorder) Network() *gomock.Call

Network indicates an expected call of Network.

func (*MockAddrMockRecorder) String

func (mr *MockAddrMockRecorder) String() *gomock.Call

String indicates an expected call of String.

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(b []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(t time.Time) error

SetDeadline mocks base method.

func (*MockConn) SetReadDeadline

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

SetReadDeadline mocks base method.

func (*MockConn) SetWriteDeadline

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

SetWriteDeadline mocks base method.

func (*MockConn) Write

func (m *MockConn) Write(b []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(b 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(t interface{}) *gomock.Call

SetDeadline indicates an expected call of SetDeadline.

func (*MockConnMockRecorder) SetReadDeadline

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

SetReadDeadline indicates an expected call of SetReadDeadline.

func (*MockConnMockRecorder) SetWriteDeadline

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

SetWriteDeadline indicates an expected call of SetWriteDeadline.

func (*MockConnMockRecorder) Write

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

Write indicates an expected call of Write.

type MockError

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

MockError is a mock of Error interface.

func NewMockError

func NewMockError(ctrl *gomock.Controller) *MockError

NewMockError creates a new mock instance.

func (*MockError) EXPECT

func (m *MockError) EXPECT() *MockErrorMockRecorder

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

func (*MockError) Error

func (m *MockError) Error() string

Error mocks base method.

func (*MockError) Temporary

func (m *MockError) Temporary() bool

Temporary mocks base method.

func (*MockError) Timeout

func (m *MockError) Timeout() bool

Timeout mocks base method.

type MockErrorMockRecorder

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

MockErrorMockRecorder is the mock recorder for MockError.

func (*MockErrorMockRecorder) Error

func (mr *MockErrorMockRecorder) Error() *gomock.Call

Error indicates an expected call of Error.

func (*MockErrorMockRecorder) Temporary

func (mr *MockErrorMockRecorder) Temporary() *gomock.Call

Temporary indicates an expected call of Temporary.

func (*MockErrorMockRecorder) Timeout

func (mr *MockErrorMockRecorder) Timeout() *gomock.Call

Timeout indicates an expected call of Timeout.

type MockListener

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

MockListener is a mock of Listener interface.

func NewMockListener

func NewMockListener(ctrl *gomock.Controller) *MockListener

NewMockListener creates a new mock instance.

func (*MockListener) Accept

func (m *MockListener) Accept() (net.Conn, error)

Accept mocks base method.

func (*MockListener) Addr

func (m *MockListener) Addr() net.Addr

Addr mocks base method.

func (*MockListener) Close

func (m *MockListener) Close() error

Close mocks base method.

func (*MockListener) EXPECT

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

type MockListenerMockRecorder

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

MockListenerMockRecorder is the mock recorder for MockListener.

func (*MockListenerMockRecorder) Accept

func (mr *MockListenerMockRecorder) Accept() *gomock.Call

Accept indicates an expected call of Accept.

func (*MockListenerMockRecorder) Addr

func (mr *MockListenerMockRecorder) Addr() *gomock.Call

Addr indicates an expected call of Addr.

func (*MockListenerMockRecorder) Close

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

Close indicates an expected call of Close.

type MockPacketConn

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

MockPacketConn is a mock of PacketConn interface.

func NewMockPacketConn

func NewMockPacketConn(ctrl *gomock.Controller) *MockPacketConn

NewMockPacketConn creates a new mock instance.

func (*MockPacketConn) Close

func (m *MockPacketConn) Close() error

Close mocks base method.

func (*MockPacketConn) EXPECT

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

func (*MockPacketConn) LocalAddr

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

LocalAddr mocks base method.

func (*MockPacketConn) ReadFrom

func (m *MockPacketConn) ReadFrom(p []byte) (int, net.Addr, error)

ReadFrom mocks base method.

func (*MockPacketConn) SetDeadline

func (m *MockPacketConn) SetDeadline(t time.Time) error

SetDeadline mocks base method.

func (*MockPacketConn) SetReadDeadline

func (m *MockPacketConn) SetReadDeadline(t time.Time) error

SetReadDeadline mocks base method.

func (*MockPacketConn) SetWriteDeadline

func (m *MockPacketConn) SetWriteDeadline(t time.Time) error

SetWriteDeadline mocks base method.

func (*MockPacketConn) WriteTo

func (m *MockPacketConn) WriteTo(p []byte, addr net.Addr) (int, error)

WriteTo mocks base method.

type MockPacketConnMockRecorder

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

MockPacketConnMockRecorder is the mock recorder for MockPacketConn.

func (*MockPacketConnMockRecorder) Close

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

Close indicates an expected call of Close.

func (*MockPacketConnMockRecorder) LocalAddr

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

LocalAddr indicates an expected call of LocalAddr.

func (*MockPacketConnMockRecorder) ReadFrom

func (mr *MockPacketConnMockRecorder) ReadFrom(p interface{}) *gomock.Call

ReadFrom indicates an expected call of ReadFrom.

func (*MockPacketConnMockRecorder) SetDeadline

func (mr *MockPacketConnMockRecorder) SetDeadline(t interface{}) *gomock.Call

SetDeadline indicates an expected call of SetDeadline.

func (*MockPacketConnMockRecorder) SetReadDeadline

func (mr *MockPacketConnMockRecorder) SetReadDeadline(t interface{}) *gomock.Call

SetReadDeadline indicates an expected call of SetReadDeadline.

func (*MockPacketConnMockRecorder) SetWriteDeadline

func (mr *MockPacketConnMockRecorder) SetWriteDeadline(t interface{}) *gomock.Call

SetWriteDeadline indicates an expected call of SetWriteDeadline.

func (*MockPacketConnMockRecorder) WriteTo

func (mr *MockPacketConnMockRecorder) WriteTo(p, addr interface{}) *gomock.Call

WriteTo indicates an expected call of WriteTo.

type MockbuffersWriter

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

MockbuffersWriter is a mock of buffersWriter interface.

func NewMockbuffersWriter

func NewMockbuffersWriter(ctrl *gomock.Controller) *MockbuffersWriter

NewMockbuffersWriter creates a new mock instance.

func (*MockbuffersWriter) EXPECT

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

type MockbuffersWriterMockRecorder

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

MockbuffersWriterMockRecorder is the mock recorder for MockbuffersWriter.

type Mocktemporary

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

Mocktemporary is a mock of temporary interface.

func NewMocktemporary

func NewMocktemporary(ctrl *gomock.Controller) *Mocktemporary

NewMocktemporary creates a new mock instance.

func (*Mocktemporary) EXPECT

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

func (*Mocktemporary) Temporary

func (m *Mocktemporary) Temporary() bool

Temporary mocks base method.

type MocktemporaryMockRecorder

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

MocktemporaryMockRecorder is the mock recorder for Mocktemporary.

func (*MocktemporaryMockRecorder) Temporary

func (mr *MocktemporaryMockRecorder) Temporary() *gomock.Call

Temporary indicates an expected call of Temporary.

type Mocktimeout

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

Mocktimeout is a mock of timeout interface.

func NewMocktimeout

func NewMocktimeout(ctrl *gomock.Controller) *Mocktimeout

NewMocktimeout creates a new mock instance.

func (*Mocktimeout) EXPECT

func (m *Mocktimeout) EXPECT() *MocktimeoutMockRecorder

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

func (*Mocktimeout) Timeout

func (m *Mocktimeout) Timeout() bool

Timeout mocks base method.

type MocktimeoutMockRecorder

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

MocktimeoutMockRecorder is the mock recorder for Mocktimeout.

func (*MocktimeoutMockRecorder) Timeout

func (mr *MocktimeoutMockRecorder) Timeout() *gomock.Call

Timeout indicates an expected call of Timeout.

Jump to

Keyboard shortcuts

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