Documentation ¶
Overview ¶
Package mockservice is a generated GoMock package.
Index ¶
- type MockHost
- func (m *MockHost) Addrs() []go_multiaddr.Multiaddr
- func (m *MockHost) Close() error
- func (m *MockHost) ConnManager() go_libp2p_interface_connmgr.ConnManager
- func (m *MockHost) Connect(arg0 context.Context, arg1 go_libp2p_peerstore.PeerInfo) error
- func (m *MockHost) EXPECT() *MockHostMockRecorder
- func (m *MockHost) ID() go_libp2p_peer.ID
- func (m *MockHost) Mux() *go_multistream.MultistreamMuxer
- func (m *MockHost) Network() go_libp2p_net.Network
- func (m *MockHost) NewStream(arg0 context.Context, arg1 go_libp2p_peer.ID, arg2 ...go_libp2p_protocol.ID) (go_libp2p_net.Stream, error)
- func (m *MockHost) Peerstore() go_libp2p_peerstore.Peerstore
- func (m *MockHost) RemoveStreamHandler(arg0 go_libp2p_protocol.ID)
- func (m *MockHost) SetNATManager(arg0 basic.NATManager)
- func (m *MockHost) SetStreamHandler(arg0 go_libp2p_protocol.ID, arg1 go_libp2p_net.StreamHandler)
- func (m *MockHost) SetStreamHandlerMatch(arg0 go_libp2p_protocol.ID, arg1 func(string) bool, ...)
- type MockHostMockRecorder
- func (mr *MockHostMockRecorder) Addrs() *gomock.Call
- func (mr *MockHostMockRecorder) Close() *gomock.Call
- func (mr *MockHostMockRecorder) ConnManager() *gomock.Call
- func (mr *MockHostMockRecorder) Connect(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockHostMockRecorder) ID() *gomock.Call
- func (mr *MockHostMockRecorder) Mux() *gomock.Call
- func (mr *MockHostMockRecorder) Network() *gomock.Call
- func (mr *MockHostMockRecorder) NewStream(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockHostMockRecorder) Peerstore() *gomock.Call
- func (mr *MockHostMockRecorder) RemoveStreamHandler(arg0 interface{}) *gomock.Call
- func (mr *MockHostMockRecorder) SetNATManager(arg0 interface{}) *gomock.Call
- func (mr *MockHostMockRecorder) SetStreamHandler(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockHostMockRecorder) SetStreamHandlerMatch(arg0, arg1, arg2 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockHost ¶
type MockHost struct {
// contains filtered or unexported fields
}
MockHost is a mock of Host interface
func NewMockHost ¶
func NewMockHost(ctrl *gomock.Controller) *MockHost
NewMockHost creates a new mock instance
func (*MockHost) Addrs ¶
func (m *MockHost) Addrs() []go_multiaddr.Multiaddr
Addrs mocks base method
func (*MockHost) ConnManager ¶
func (m *MockHost) ConnManager() go_libp2p_interface_connmgr.ConnManager
ConnManager mocks base method
func (*MockHost) EXPECT ¶
func (m *MockHost) EXPECT() *MockHostMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockHost) Mux ¶
func (m *MockHost) Mux() *go_multistream.MultistreamMuxer
Mux mocks base method
func (*MockHost) Network ¶
func (m *MockHost) Network() go_libp2p_net.Network
Network mocks base method
func (*MockHost) NewStream ¶
func (m *MockHost) NewStream(arg0 context.Context, arg1 go_libp2p_peer.ID, arg2 ...go_libp2p_protocol.ID) (go_libp2p_net.Stream, error)
NewStream mocks base method
func (*MockHost) Peerstore ¶
func (m *MockHost) Peerstore() go_libp2p_peerstore.Peerstore
Peerstore mocks base method
func (*MockHost) RemoveStreamHandler ¶
func (m *MockHost) RemoveStreamHandler(arg0 go_libp2p_protocol.ID)
RemoveStreamHandler mocks base method
func (*MockHost) SetNATManager ¶
func (m *MockHost) SetNATManager(arg0 basic.NATManager)
SetNATManager mocks base method
func (*MockHost) SetStreamHandler ¶
func (m *MockHost) SetStreamHandler(arg0 go_libp2p_protocol.ID, arg1 go_libp2p_net.StreamHandler)
SetStreamHandler mocks base method
func (*MockHost) SetStreamHandlerMatch ¶
func (m *MockHost) SetStreamHandlerMatch(arg0 go_libp2p_protocol.ID, arg1 func(string) bool, arg2 go_libp2p_net.StreamHandler)
SetStreamHandlerMatch mocks base method
type MockHostMockRecorder ¶
type MockHostMockRecorder struct {
// contains filtered or unexported fields
}
MockHostMockRecorder is the mock recorder for MockHost
func (*MockHostMockRecorder) Addrs ¶
func (mr *MockHostMockRecorder) Addrs() *gomock.Call
Addrs indicates an expected call of Addrs
func (*MockHostMockRecorder) Close ¶
func (mr *MockHostMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockHostMockRecorder) ConnManager ¶
func (mr *MockHostMockRecorder) ConnManager() *gomock.Call
ConnManager indicates an expected call of ConnManager
func (*MockHostMockRecorder) Connect ¶
func (mr *MockHostMockRecorder) Connect(arg0, arg1 interface{}) *gomock.Call
Connect indicates an expected call of Connect
func (*MockHostMockRecorder) ID ¶
func (mr *MockHostMockRecorder) ID() *gomock.Call
ID indicates an expected call of ID
func (*MockHostMockRecorder) Mux ¶
func (mr *MockHostMockRecorder) Mux() *gomock.Call
Mux indicates an expected call of Mux
func (*MockHostMockRecorder) Network ¶
func (mr *MockHostMockRecorder) Network() *gomock.Call
Network indicates an expected call of Network
func (*MockHostMockRecorder) NewStream ¶
func (mr *MockHostMockRecorder) NewStream(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
NewStream indicates an expected call of NewStream
func (*MockHostMockRecorder) Peerstore ¶
func (mr *MockHostMockRecorder) Peerstore() *gomock.Call
Peerstore indicates an expected call of Peerstore
func (*MockHostMockRecorder) RemoveStreamHandler ¶
func (mr *MockHostMockRecorder) RemoveStreamHandler(arg0 interface{}) *gomock.Call
RemoveStreamHandler indicates an expected call of RemoveStreamHandler
func (*MockHostMockRecorder) SetNATManager ¶
func (mr *MockHostMockRecorder) SetNATManager(arg0 interface{}) *gomock.Call
SetNATManager indicates an expected call of SetNATManager
func (*MockHostMockRecorder) SetStreamHandler ¶
func (mr *MockHostMockRecorder) SetStreamHandler(arg0, arg1 interface{}) *gomock.Call
SetStreamHandler indicates an expected call of SetStreamHandler
func (*MockHostMockRecorder) SetStreamHandlerMatch ¶
func (mr *MockHostMockRecorder) SetStreamHandlerMatch(arg0, arg1, arg2 interface{}) *gomock.Call
SetStreamHandlerMatch indicates an expected call of SetStreamHandlerMatch