Documentation ¶
Overview ¶
Package mock_transport is a generated GoMock package.
Index ¶
- type MockMultiConn
- func (m *MockMultiConn) Accept() (net.Conn, error)
- func (m *MockMultiConn) Addr() string
- func (m *MockMultiConn) Close() error
- func (m *MockMultiConn) CloseChan() <-chan struct{}
- func (m *MockMultiConn) Context() context.Context
- func (m *MockMultiConn) EXPECT() *MockMultiConnMockRecorder
- func (m *MockMultiConn) IsClosed() bool
- func (m *MockMultiConn) Open(ctx context.Context) (net.Conn, error)
- type MockMultiConnMockRecorder
- func (mr *MockMultiConnMockRecorder) Accept() *gomock.Call
- func (mr *MockMultiConnMockRecorder) Addr() *gomock.Call
- func (mr *MockMultiConnMockRecorder) Close() *gomock.Call
- func (mr *MockMultiConnMockRecorder) CloseChan() *gomock.Call
- func (mr *MockMultiConnMockRecorder) Context() *gomock.Call
- func (mr *MockMultiConnMockRecorder) IsClosed() *gomock.Call
- func (mr *MockMultiConnMockRecorder) Open(ctx any) *gomock.Call
- type MockTransport
- type MockTransportMockRecorder
- type TransportComponent
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) 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 ¶
func (m *MockMultiConn) EXPECT() *MockMultiConnMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMultiConn) IsClosed ¶
func (m *MockMultiConn) IsClosed() bool
IsClosed 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 ¶
func (mr *MockMultiConnMockRecorder) Addr() *gomock.Call
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.
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) EXPECT ¶
func (m *MockTransport) EXPECT() *MockTransportMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTransport) SetAccepter ¶
func (m *MockTransport) SetAccepter(accepter 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(ctx, addr any) *gomock.Call
Dial indicates an expected call of Dial.
func (*MockTransportMockRecorder) SetAccepter ¶
func (mr *MockTransportMockRecorder) SetAccepter(accepter 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)