Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: github.com/anyproto/any-sync/net/transport (interfaces: Transport,MultiConn)
Generated by this command:
mockgen -destination mock_transport/mock_transport.go github.com/anyproto/any-sync/net/transport Transport,MultiConn
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) Context() context.Context
- func (m *MockMultiConn) EXPECT() *MockMultiConnMockRecorder
- func (m *MockMultiConn) IsClosed() bool
- func (m *MockMultiConn) Open(arg0 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) Context() *gomock.Call
- func (mr *MockMultiConnMockRecorder) IsClosed() *gomock.Call
- func (mr *MockMultiConnMockRecorder) Open(arg0 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) 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) 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(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)