Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockNetworkConfig
- func (m *MockNetworkConfig) AddPeer(arg0 context.Context, arg1 go_libp2p_peer.ID, arg2 []go_multiaddr.Multiaddr) error
- func (m *MockNetworkConfig) AllowedAddrs(arg0 context.Context, arg1 go_libp2p_peer.ID) []go_multiaddr.Multiaddr
- func (m *MockNetworkConfig) AllowedPeers(arg0 context.Context) []go_libp2p_peer.ID
- func (m *MockNetworkConfig) Copy(arg0 context.Context) pb.NetworkConfig
- func (m *MockNetworkConfig) EXPECT() *MockNetworkConfigMockRecorder
- func (m *MockNetworkConfig) IsAllowed(arg0 context.Context, arg1 go_libp2p_peer.ID) bool
- func (m *MockNetworkConfig) NetworkState(arg0 context.Context) pb.NetworkState
- func (m *MockNetworkConfig) RemovePeer(arg0 context.Context, arg1 go_libp2p_peer.ID) error
- func (m *MockNetworkConfig) Reset(arg0 context.Context, arg1 *pb.NetworkConfig) error
- func (m *MockNetworkConfig) SetNetworkState(arg0 context.Context, arg1 pb.NetworkState) error
- func (m *MockNetworkConfig) Sign(arg0 context.Context, arg1 go_libp2p_crypto.PrivKey) error
- type MockNetworkConfigMockRecorder
- func (mr *MockNetworkConfigMockRecorder) AddPeer(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockNetworkConfigMockRecorder) AllowedAddrs(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockNetworkConfigMockRecorder) AllowedPeers(arg0 interface{}) *gomock.Call
- func (mr *MockNetworkConfigMockRecorder) Copy(arg0 interface{}) *gomock.Call
- func (mr *MockNetworkConfigMockRecorder) IsAllowed(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockNetworkConfigMockRecorder) NetworkState(arg0 interface{}) *gomock.Call
- func (mr *MockNetworkConfigMockRecorder) RemovePeer(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockNetworkConfigMockRecorder) Reset(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockNetworkConfigMockRecorder) SetNetworkState(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockNetworkConfigMockRecorder) Sign(arg0, arg1 interface{}) *gomock.Call
- type MockProtector
- func (m *MockProtector) AllowedAddrs(arg0 context.Context) []go_multiaddr.Multiaddr
- func (m *MockProtector) AllowedPeers(arg0 context.Context) []go_libp2p_peer.ID
- func (m *MockProtector) EXPECT() *MockProtectorMockRecorder
- func (m *MockProtector) Fingerprint() []byte
- func (m *MockProtector) ListenForUpdates(arg0 <-chan protector.NetworkUpdate)
- func (m *MockProtector) Protect(arg0 net.Conn) (net.Conn, error)
- type MockProtectorMockRecorder
- func (mr *MockProtectorMockRecorder) AllowedAddrs(arg0 interface{}) *gomock.Call
- func (mr *MockProtectorMockRecorder) AllowedPeers(arg0 interface{}) *gomock.Call
- func (mr *MockProtectorMockRecorder) Fingerprint() *gomock.Call
- func (mr *MockProtectorMockRecorder) ListenForUpdates(arg0 interface{}) *gomock.Call
- func (mr *MockProtectorMockRecorder) Protect(arg0 interface{}) *gomock.Call
- type MockStateAwareProtector
- func (m *MockStateAwareProtector) AllowedAddrs(arg0 context.Context) []go_multiaddr.Multiaddr
- func (m *MockStateAwareProtector) AllowedPeers(arg0 context.Context) []go_libp2p_peer.ID
- func (m *MockStateAwareProtector) EXPECT() *MockStateAwareProtectorMockRecorder
- func (m *MockStateAwareProtector) Fingerprint() []byte
- func (m *MockStateAwareProtector) ListenForUpdates(arg0 <-chan protector.NetworkUpdate)
- func (m *MockStateAwareProtector) Protect(arg0 net.Conn) (net.Conn, error)
- func (m *MockStateAwareProtector) SetNetworkState(arg0 context.Context, arg1 pb.NetworkState) error
- type MockStateAwareProtectorMockRecorder
- func (mr *MockStateAwareProtectorMockRecorder) AllowedAddrs(arg0 interface{}) *gomock.Call
- func (mr *MockStateAwareProtectorMockRecorder) AllowedPeers(arg0 interface{}) *gomock.Call
- func (mr *MockStateAwareProtectorMockRecorder) Fingerprint() *gomock.Call
- func (mr *MockStateAwareProtectorMockRecorder) ListenForUpdates(arg0 interface{}) *gomock.Call
- func (mr *MockStateAwareProtectorMockRecorder) Protect(arg0 interface{}) *gomock.Call
- func (mr *MockStateAwareProtectorMockRecorder) SetNetworkState(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockNetworkConfig ¶
type MockNetworkConfig struct {
// contains filtered or unexported fields
}
MockNetworkConfig is a mock of NetworkConfig interface
func NewMockNetworkConfig ¶
func NewMockNetworkConfig(ctrl *gomock.Controller) *MockNetworkConfig
NewMockNetworkConfig creates a new mock instance
func (*MockNetworkConfig) AddPeer ¶
func (m *MockNetworkConfig) AddPeer(arg0 context.Context, arg1 go_libp2p_peer.ID, arg2 []go_multiaddr.Multiaddr) error
AddPeer mocks base method
func (*MockNetworkConfig) AllowedAddrs ¶
func (m *MockNetworkConfig) AllowedAddrs(arg0 context.Context, arg1 go_libp2p_peer.ID) []go_multiaddr.Multiaddr
AllowedAddrs mocks base method
func (*MockNetworkConfig) AllowedPeers ¶
func (m *MockNetworkConfig) AllowedPeers(arg0 context.Context) []go_libp2p_peer.ID
AllowedPeers mocks base method
func (*MockNetworkConfig) Copy ¶
func (m *MockNetworkConfig) Copy(arg0 context.Context) pb.NetworkConfig
Copy mocks base method
func (*MockNetworkConfig) EXPECT ¶
func (m *MockNetworkConfig) EXPECT() *MockNetworkConfigMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockNetworkConfig) IsAllowed ¶
func (m *MockNetworkConfig) IsAllowed(arg0 context.Context, arg1 go_libp2p_peer.ID) bool
IsAllowed mocks base method
func (*MockNetworkConfig) NetworkState ¶
func (m *MockNetworkConfig) NetworkState(arg0 context.Context) pb.NetworkState
NetworkState mocks base method
func (*MockNetworkConfig) RemovePeer ¶
func (m *MockNetworkConfig) RemovePeer(arg0 context.Context, arg1 go_libp2p_peer.ID) error
RemovePeer mocks base method
func (*MockNetworkConfig) Reset ¶
func (m *MockNetworkConfig) Reset(arg0 context.Context, arg1 *pb.NetworkConfig) error
Reset mocks base method
func (*MockNetworkConfig) SetNetworkState ¶
func (m *MockNetworkConfig) SetNetworkState(arg0 context.Context, arg1 pb.NetworkState) error
SetNetworkState mocks base method
func (*MockNetworkConfig) Sign ¶
func (m *MockNetworkConfig) Sign(arg0 context.Context, arg1 go_libp2p_crypto.PrivKey) error
Sign mocks base method
type MockNetworkConfigMockRecorder ¶
type MockNetworkConfigMockRecorder struct {
// contains filtered or unexported fields
}
MockNetworkConfigMockRecorder is the mock recorder for MockNetworkConfig
func (*MockNetworkConfigMockRecorder) AddPeer ¶
func (mr *MockNetworkConfigMockRecorder) AddPeer(arg0, arg1, arg2 interface{}) *gomock.Call
AddPeer indicates an expected call of AddPeer
func (*MockNetworkConfigMockRecorder) AllowedAddrs ¶
func (mr *MockNetworkConfigMockRecorder) AllowedAddrs(arg0, arg1 interface{}) *gomock.Call
AllowedAddrs indicates an expected call of AllowedAddrs
func (*MockNetworkConfigMockRecorder) AllowedPeers ¶
func (mr *MockNetworkConfigMockRecorder) AllowedPeers(arg0 interface{}) *gomock.Call
AllowedPeers indicates an expected call of AllowedPeers
func (*MockNetworkConfigMockRecorder) Copy ¶
func (mr *MockNetworkConfigMockRecorder) Copy(arg0 interface{}) *gomock.Call
Copy indicates an expected call of Copy
func (*MockNetworkConfigMockRecorder) IsAllowed ¶
func (mr *MockNetworkConfigMockRecorder) IsAllowed(arg0, arg1 interface{}) *gomock.Call
IsAllowed indicates an expected call of IsAllowed
func (*MockNetworkConfigMockRecorder) NetworkState ¶
func (mr *MockNetworkConfigMockRecorder) NetworkState(arg0 interface{}) *gomock.Call
NetworkState indicates an expected call of NetworkState
func (*MockNetworkConfigMockRecorder) RemovePeer ¶
func (mr *MockNetworkConfigMockRecorder) RemovePeer(arg0, arg1 interface{}) *gomock.Call
RemovePeer indicates an expected call of RemovePeer
func (*MockNetworkConfigMockRecorder) Reset ¶
func (mr *MockNetworkConfigMockRecorder) Reset(arg0, arg1 interface{}) *gomock.Call
Reset indicates an expected call of Reset
func (*MockNetworkConfigMockRecorder) SetNetworkState ¶
func (mr *MockNetworkConfigMockRecorder) SetNetworkState(arg0, arg1 interface{}) *gomock.Call
SetNetworkState indicates an expected call of SetNetworkState
func (*MockNetworkConfigMockRecorder) Sign ¶
func (mr *MockNetworkConfigMockRecorder) Sign(arg0, arg1 interface{}) *gomock.Call
Sign indicates an expected call of Sign
type MockProtector ¶
type MockProtector struct {
// contains filtered or unexported fields
}
MockProtector is a mock of Protector interface
func NewMockProtector ¶
func NewMockProtector(ctrl *gomock.Controller) *MockProtector
NewMockProtector creates a new mock instance
func (*MockProtector) AllowedAddrs ¶
func (m *MockProtector) AllowedAddrs(arg0 context.Context) []go_multiaddr.Multiaddr
AllowedAddrs mocks base method
func (*MockProtector) AllowedPeers ¶
func (m *MockProtector) AllowedPeers(arg0 context.Context) []go_libp2p_peer.ID
AllowedPeers mocks base method
func (*MockProtector) EXPECT ¶
func (m *MockProtector) EXPECT() *MockProtectorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockProtector) Fingerprint ¶
func (m *MockProtector) Fingerprint() []byte
Fingerprint mocks base method
func (*MockProtector) ListenForUpdates ¶
func (m *MockProtector) ListenForUpdates(arg0 <-chan protector.NetworkUpdate)
ListenForUpdates mocks base method
type MockProtectorMockRecorder ¶
type MockProtectorMockRecorder struct {
// contains filtered or unexported fields
}
MockProtectorMockRecorder is the mock recorder for MockProtector
func (*MockProtectorMockRecorder) AllowedAddrs ¶
func (mr *MockProtectorMockRecorder) AllowedAddrs(arg0 interface{}) *gomock.Call
AllowedAddrs indicates an expected call of AllowedAddrs
func (*MockProtectorMockRecorder) AllowedPeers ¶
func (mr *MockProtectorMockRecorder) AllowedPeers(arg0 interface{}) *gomock.Call
AllowedPeers indicates an expected call of AllowedPeers
func (*MockProtectorMockRecorder) Fingerprint ¶
func (mr *MockProtectorMockRecorder) Fingerprint() *gomock.Call
Fingerprint indicates an expected call of Fingerprint
func (*MockProtectorMockRecorder) ListenForUpdates ¶
func (mr *MockProtectorMockRecorder) ListenForUpdates(arg0 interface{}) *gomock.Call
ListenForUpdates indicates an expected call of ListenForUpdates
func (*MockProtectorMockRecorder) Protect ¶
func (mr *MockProtectorMockRecorder) Protect(arg0 interface{}) *gomock.Call
Protect indicates an expected call of Protect
type MockStateAwareProtector ¶
type MockStateAwareProtector struct {
// contains filtered or unexported fields
}
MockStateAwareProtector is a mock of StateAwareProtector interface
func NewMockStateAwareProtector ¶
func NewMockStateAwareProtector(ctrl *gomock.Controller) *MockStateAwareProtector
NewMockStateAwareProtector creates a new mock instance
func (*MockStateAwareProtector) AllowedAddrs ¶
func (m *MockStateAwareProtector) AllowedAddrs(arg0 context.Context) []go_multiaddr.Multiaddr
AllowedAddrs mocks base method
func (*MockStateAwareProtector) AllowedPeers ¶
func (m *MockStateAwareProtector) AllowedPeers(arg0 context.Context) []go_libp2p_peer.ID
AllowedPeers mocks base method
func (*MockStateAwareProtector) EXPECT ¶
func (m *MockStateAwareProtector) EXPECT() *MockStateAwareProtectorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockStateAwareProtector) Fingerprint ¶
func (m *MockStateAwareProtector) Fingerprint() []byte
Fingerprint mocks base method
func (*MockStateAwareProtector) ListenForUpdates ¶
func (m *MockStateAwareProtector) ListenForUpdates(arg0 <-chan protector.NetworkUpdate)
ListenForUpdates mocks base method
func (*MockStateAwareProtector) SetNetworkState ¶
func (m *MockStateAwareProtector) SetNetworkState(arg0 context.Context, arg1 pb.NetworkState) error
SetNetworkState mocks base method
type MockStateAwareProtectorMockRecorder ¶
type MockStateAwareProtectorMockRecorder struct {
// contains filtered or unexported fields
}
MockStateAwareProtectorMockRecorder is the mock recorder for MockStateAwareProtector
func (*MockStateAwareProtectorMockRecorder) AllowedAddrs ¶
func (mr *MockStateAwareProtectorMockRecorder) AllowedAddrs(arg0 interface{}) *gomock.Call
AllowedAddrs indicates an expected call of AllowedAddrs
func (*MockStateAwareProtectorMockRecorder) AllowedPeers ¶
func (mr *MockStateAwareProtectorMockRecorder) AllowedPeers(arg0 interface{}) *gomock.Call
AllowedPeers indicates an expected call of AllowedPeers
func (*MockStateAwareProtectorMockRecorder) Fingerprint ¶
func (mr *MockStateAwareProtectorMockRecorder) Fingerprint() *gomock.Call
Fingerprint indicates an expected call of Fingerprint
func (*MockStateAwareProtectorMockRecorder) ListenForUpdates ¶
func (mr *MockStateAwareProtectorMockRecorder) ListenForUpdates(arg0 interface{}) *gomock.Call
ListenForUpdates indicates an expected call of ListenForUpdates
func (*MockStateAwareProtectorMockRecorder) Protect ¶
func (mr *MockStateAwareProtectorMockRecorder) Protect(arg0 interface{}) *gomock.Call
Protect indicates an expected call of Protect
func (*MockStateAwareProtectorMockRecorder) SetNetworkState ¶
func (mr *MockStateAwareProtectorMockRecorder) SetNetworkState(arg0, arg1 interface{}) *gomock.Call
SetNetworkState indicates an expected call of SetNetworkState