mock_transport

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mock_transport is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockMultiConn

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

MockMultiConn is a mock of MultiConn interface.

func NewMockMultiConn

func NewMockMultiConn(ctrl *gomock.Controller) *MockMultiConn

NewMockMultiConn creates a new mock instance.

func (*MockMultiConn) Accept

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

Accept mocks base method.

func (*MockMultiConn) Addr

func (m *MockMultiConn) Addr() string

Addr mocks base method.

func (*MockMultiConn) Close

func (m *MockMultiConn) Close() error

Close mocks base method.

func (*MockMultiConn) CloseChan added in v0.3.16

func (m *MockMultiConn) CloseChan() <-chan struct{}

CloseChan mocks base method.

func (*MockMultiConn) Context

func (m *MockMultiConn) Context() context.Context

Context mocks base method.

func (*MockMultiConn) EXPECT

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

func (*MockMultiConn) IsClosed

func (m *MockMultiConn) IsClosed() bool

IsClosed mocks base method.

func (*MockMultiConn) Open

func (m *MockMultiConn) Open(arg0 context.Context) (net.Conn, error)

Open mocks base method.

type MockMultiConnMockRecorder

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

MockMultiConnMockRecorder is the mock recorder for MockMultiConn.

func (*MockMultiConnMockRecorder) Accept

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

Accept indicates an expected call of Accept.

func (*MockMultiConnMockRecorder) Addr

Addr indicates an expected call of Addr.

func (*MockMultiConnMockRecorder) Close

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

Close indicates an expected call of Close.

func (*MockMultiConnMockRecorder) CloseChan added in v0.3.16

func (mr *MockMultiConnMockRecorder) CloseChan() *gomock.Call

CloseChan indicates an expected call of CloseChan.

func (*MockMultiConnMockRecorder) Context

func (mr *MockMultiConnMockRecorder) Context() *gomock.Call

Context indicates an expected call of Context.

func (*MockMultiConnMockRecorder) IsClosed

func (mr *MockMultiConnMockRecorder) IsClosed() *gomock.Call

IsClosed indicates an expected call of IsClosed.

func (*MockMultiConnMockRecorder) Open

func (mr *MockMultiConnMockRecorder) Open(arg0 any) *gomock.Call

Open indicates an expected call of Open.

type MockTransport

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

MockTransport is a mock of Transport interface.

func NewMockTransport

func NewMockTransport(ctrl *gomock.Controller) *MockTransport

NewMockTransport creates a new mock instance.

func (*MockTransport) Dial

func (m *MockTransport) Dial(arg0 context.Context, arg1 string) (transport.MultiConn, error)

Dial mocks base method.

func (*MockTransport) EXPECT

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

func (*MockTransport) SetAccepter

func (m *MockTransport) SetAccepter(arg0 transport.Accepter)

SetAccepter mocks base method.

type MockTransportMockRecorder

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

MockTransportMockRecorder is the mock recorder for MockTransport.

func (*MockTransportMockRecorder) Dial

func (mr *MockTransportMockRecorder) Dial(arg0, arg1 any) *gomock.Call

Dial indicates an expected call of Dial.

func (*MockTransportMockRecorder) SetAccepter

func (mr *MockTransportMockRecorder) SetAccepter(arg0 any) *gomock.Call

SetAccepter indicates an expected call of SetAccepter.

type TransportComponent added in v0.3.0

type TransportComponent struct {
	CName string
	*MockTransport
}

func NewTransportComponent added in v0.3.0

func NewTransportComponent(ctrl *gomock.Controller, name string) TransportComponent

func (TransportComponent) Init added in v0.3.0

func (t TransportComponent) Init(a *app.App) (err error)

func (TransportComponent) Name added in v0.3.0

func (t TransportComponent) Name() (name string)

Jump to

Keyboard shortcuts

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