mocks

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2019 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

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

AddPeer mocks base method

func (*MockNetworkConfig) AllowedAddrs

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

Copy mocks base method

func (*MockNetworkConfig) EXPECT

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

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

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

func (*MockProtector) Protect

func (m *MockProtector) Protect(arg0 net.Conn) (net.Conn, error)

Protect 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

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

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) Protect

func (m *MockStateAwareProtector) Protect(arg0 net.Conn) (net.Conn, error)

Protect 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

Jump to

Keyboard shortcuts

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