Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockClient
- func (m *MockClient) Close() error
- func (m *MockClient) Connect(conn *util.Connection, serverPublicKey []byte, prefix string) error
- func (m *MockClient) ConnectedTo() *zmqutil.Connected
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) GoString() string
- func (m *MockClient) IsConnected() bool
- func (m *MockClient) IsConnectedTo(serverPublicKey []byte) bool
- func (m *MockClient) Receive(flags zmq4.Flag) ([][]byte, error)
- func (m *MockClient) Reconnect() error
- func (m *MockClient) Send(items ...interface{}) error
- func (m *MockClient) ServerPublicKey() []byte
- func (m *MockClient) String() string
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) Close() *gomock.Call
- func (mr *MockClientMockRecorder) Connect(conn, serverPublicKey, prefix interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ConnectedTo() *gomock.Call
- func (mr *MockClientMockRecorder) GoString() *gomock.Call
- func (mr *MockClientMockRecorder) IsConnected() *gomock.Call
- func (mr *MockClientMockRecorder) IsConnectedTo(serverPublicKey interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Receive(flags interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Reconnect() *gomock.Call
- func (mr *MockClientMockRecorder) Send(items ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ServerPublicKey() *gomock.Call
- func (mr *MockClientMockRecorder) String() *gomock.Call
- type MockRPC
- func (m *MockRPC) Add(arg0, arg1 []byte, arg2 uint64) bool
- func (m *MockRPC) EXPECT() *MockRPCMockRecorder
- func (m *MockRPC) Expire()
- func (m *MockRPC) Fetch(start uint64, count int) ([]rpc.Entry, uint64, error)
- func (m *MockRPC) ID() fingerprint.Fingerprint
- func (m *MockRPC) IsInitialised() bool
- func (m *MockRPC) Self() []byte
- func (m *MockRPC) Set(arg0 fingerprint.Fingerprint, arg1 []byte) error
- type MockRPCMockRecorder
- func (mr *MockRPCMockRecorder) Add(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockRPCMockRecorder) Expire() *gomock.Call
- func (mr *MockRPCMockRecorder) Fetch(start, count interface{}) *gomock.Call
- func (mr *MockRPCMockRecorder) ID() *gomock.Call
- func (mr *MockRPCMockRecorder) IsSet() *gomock.Call
- func (mr *MockRPCMockRecorder) Self() *gomock.Call
- func (mr *MockRPCMockRecorder) Set(arg0, arg1 interface{}) *gomock.Call
- type MockReceptor
- func (m *MockReceptor) Add(arg0, arg1 []byte, arg2 uint64) bool
- func (m *MockReceptor) Change(arg0 bool)
- func (m *MockReceptor) Connectable() *avl.Tree
- func (m *MockReceptor) EXPECT() *MockReceptorMockRecorder
- func (m *MockReceptor) Expire()
- func (m *MockReceptor) ID() id.ID
- func (m *MockReceptor) IsChanged() bool
- func (m *MockReceptor) IsInitialised() bool
- func (m *MockReceptor) Next(arg0 []byte) ([]byte, []byte, time.Time, error)
- func (m *MockReceptor) Random(arg0 []byte) ([]byte, []byte, time.Time, error)
- func (m *MockReceptor) ReBalance()
- func (m *MockReceptor) Self() *avl.Node
- func (m *MockReceptor) SelfListener() []byte
- func (m *MockReceptor) SetSelf(arg0, arg1 []byte) error
- func (m *MockReceptor) UpdateTime(arg0 []byte, arg1 time.Time)
- type MockReceptorMockRecorder
- func (mr *MockReceptorMockRecorder) Add(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockReceptorMockRecorder) Change(arg0 interface{}) *gomock.Call
- func (mr *MockReceptorMockRecorder) Changed() *gomock.Call
- func (mr *MockReceptorMockRecorder) Connectable() *gomock.Call
- func (mr *MockReceptorMockRecorder) Expire() *gomock.Call
- func (mr *MockReceptorMockRecorder) ID() *gomock.Call
- func (mr *MockReceptorMockRecorder) IsSet() *gomock.Call
- func (mr *MockReceptorMockRecorder) Next(arg0 interface{}) *gomock.Call
- func (mr *MockReceptorMockRecorder) Random(arg0 interface{}) *gomock.Call
- func (mr *MockReceptorMockRecorder) Rebalance() *gomock.Call
- func (mr *MockReceptorMockRecorder) Self() *gomock.Call
- func (mr *MockReceptorMockRecorder) SelfAddress() *gomock.Call
- func (mr *MockReceptorMockRecorder) SetSelf(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockReceptorMockRecorder) UpdateTime(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance
func (*MockClient) Connect ¶
func (m *MockClient) Connect(conn *util.Connection, serverPublicKey []byte, prefix string) error
Connect mocks base method
func (*MockClient) ConnectedTo ¶
func (m *MockClient) ConnectedTo() *zmqutil.Connected
ConnectedTo mocks base method
func (*MockClient) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockClient) IsConnected ¶
func (m *MockClient) IsConnected() bool
IsConnected mocks base method
func (*MockClient) IsConnectedTo ¶
func (m *MockClient) IsConnectedTo(serverPublicKey []byte) bool
IsConnectedTo mocks base method
func (*MockClient) Receive ¶
func (m *MockClient) Receive(flags zmq4.Flag) ([][]byte, error)
Receive mocks base method
func (*MockClient) Send ¶
func (m *MockClient) Send(items ...interface{}) error
Send mocks base method
func (*MockClient) ServerPublicKey ¶
func (m *MockClient) ServerPublicKey() []byte
ServerPublicKey mocks base method
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient
func (*MockClientMockRecorder) Close ¶
func (mr *MockClientMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockClientMockRecorder) Connect ¶
func (mr *MockClientMockRecorder) Connect(conn, serverPublicKey, prefix interface{}) *gomock.Call
Connect indicates an expected call of Connect
func (*MockClientMockRecorder) ConnectedTo ¶
func (mr *MockClientMockRecorder) ConnectedTo() *gomock.Call
ConnectedTo indicates an expected call of ConnectedTo
func (*MockClientMockRecorder) GoString ¶
func (mr *MockClientMockRecorder) GoString() *gomock.Call
GoString indicates an expected call of GoString
func (*MockClientMockRecorder) IsConnected ¶
func (mr *MockClientMockRecorder) IsConnected() *gomock.Call
IsConnected indicates an expected call of IsConnected
func (*MockClientMockRecorder) IsConnectedTo ¶
func (mr *MockClientMockRecorder) IsConnectedTo(serverPublicKey interface{}) *gomock.Call
IsConnectedTo indicates an expected call of IsConnectedTo
func (*MockClientMockRecorder) Receive ¶
func (mr *MockClientMockRecorder) Receive(flags interface{}) *gomock.Call
Receive indicates an expected call of Receive
func (*MockClientMockRecorder) Reconnect ¶
func (mr *MockClientMockRecorder) Reconnect() *gomock.Call
Reconnect indicates an expected call of Reconnect
func (*MockClientMockRecorder) Send ¶
func (mr *MockClientMockRecorder) Send(items ...interface{}) *gomock.Call
Send indicates an expected call of Send
func (*MockClientMockRecorder) ServerPublicKey ¶
func (mr *MockClientMockRecorder) ServerPublicKey() *gomock.Call
ServerPublicKey indicates an expected call of ServerPublicKey
func (*MockClientMockRecorder) String ¶
func (mr *MockClientMockRecorder) String() *gomock.Call
String indicates an expected call of String
type MockRPC ¶
type MockRPC struct {
// contains filtered or unexported fields
}
MockRPC is a mock of RPC interface
func NewMockRPC ¶
func NewMockRPC(ctrl *gomock.Controller) *MockRPC
NewMockRPC creates a new mock instance
func (*MockRPC) EXPECT ¶
func (m *MockRPC) EXPECT() *MockRPCMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockRPC) IsInitialised ¶
IsInitialised mocks base method
func (*MockRPC) Set ¶
func (m *MockRPC) Set(arg0 fingerprint.Fingerprint, arg1 []byte) error
Set mocks base method
type MockRPCMockRecorder ¶
type MockRPCMockRecorder struct {
// contains filtered or unexported fields
}
MockRPCMockRecorder is the mock recorder for MockRPC
func (*MockRPCMockRecorder) Add ¶
func (mr *MockRPCMockRecorder) Add(arg0, arg1, arg2 interface{}) *gomock.Call
Add indicates an expected call of Add
func (*MockRPCMockRecorder) Expire ¶
func (mr *MockRPCMockRecorder) Expire() *gomock.Call
Expire indicates an expected call of Expire
func (*MockRPCMockRecorder) Fetch ¶
func (mr *MockRPCMockRecorder) Fetch(start, count interface{}) *gomock.Call
Fetch indicates an expected call of Fetch
func (*MockRPCMockRecorder) ID ¶
func (mr *MockRPCMockRecorder) ID() *gomock.Call
ID indicates an expected call of ID
func (*MockRPCMockRecorder) IsSet ¶
func (mr *MockRPCMockRecorder) IsSet() *gomock.Call
IsInitialised indicates an expected call of IsInitialised
func (*MockRPCMockRecorder) Self ¶
func (mr *MockRPCMockRecorder) Self() *gomock.Call
Self indicates an expected call of Self
func (*MockRPCMockRecorder) Set ¶
func (mr *MockRPCMockRecorder) Set(arg0, arg1 interface{}) *gomock.Call
Set indicates an expected call of Set
type MockReceptor ¶
type MockReceptor struct {
// contains filtered or unexported fields
}
MockReceptor is a mock of Receptor interface
func NewMockReceptor ¶
func NewMockReceptor(ctrl *gomock.Controller) *MockReceptor
NewMockReceptor creates a new mock instance
func (*MockReceptor) Add ¶
func (m *MockReceptor) Add(arg0, arg1 []byte, arg2 uint64) bool
Add mocks base method
func (*MockReceptor) Connectable ¶
func (m *MockReceptor) Connectable() *avl.Tree
Connectable mocks base method
func (*MockReceptor) EXPECT ¶
func (m *MockReceptor) EXPECT() *MockReceptorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockReceptor) IsChanged ¶
func (m *MockReceptor) IsChanged() bool
IsChanged mocks base method
func (*MockReceptor) IsInitialised ¶
func (m *MockReceptor) IsInitialised() bool
IsInitialised mocks base method
func (*MockReceptor) SelfListener ¶
func (m *MockReceptor) SelfListener() []byte
SelfListener mocks base method
func (*MockReceptor) SetSelf ¶
func (m *MockReceptor) SetSelf(arg0, arg1 []byte) error
SetSelf mocks base method
func (*MockReceptor) UpdateTime ¶
func (m *MockReceptor) UpdateTime(arg0 []byte, arg1 time.Time)
UpdateTime mocks base method
type MockReceptorMockRecorder ¶
type MockReceptorMockRecorder struct {
// contains filtered or unexported fields
}
MockReceptorMockRecorder is the mock recorder for MockReceptor
func (*MockReceptorMockRecorder) Add ¶
func (mr *MockReceptorMockRecorder) Add(arg0, arg1, arg2 interface{}) *gomock.Call
Add indicates an expected call of Add
func (*MockReceptorMockRecorder) Change ¶
func (mr *MockReceptorMockRecorder) Change(arg0 interface{}) *gomock.Call
Change indicates an expected call of Change
func (*MockReceptorMockRecorder) Changed ¶
func (mr *MockReceptorMockRecorder) Changed() *gomock.Call
IsChanged indicates an expected call of IsChanged
func (*MockReceptorMockRecorder) Connectable ¶
func (mr *MockReceptorMockRecorder) Connectable() *gomock.Call
Connectable indicates an expected call of Connectable
func (*MockReceptorMockRecorder) Expire ¶
func (mr *MockReceptorMockRecorder) Expire() *gomock.Call
Expire indicates an expected call of Expire
func (*MockReceptorMockRecorder) ID ¶
func (mr *MockReceptorMockRecorder) ID() *gomock.Call
ID indicates an expected call of ID
func (*MockReceptorMockRecorder) IsSet ¶
func (mr *MockReceptorMockRecorder) IsSet() *gomock.Call
IsInitialised indicates an expected call of IsInitialised
func (*MockReceptorMockRecorder) Next ¶
func (mr *MockReceptorMockRecorder) Next(arg0 interface{}) *gomock.Call
Next indicates an expected call of Next
func (*MockReceptorMockRecorder) Random ¶
func (mr *MockReceptorMockRecorder) Random(arg0 interface{}) *gomock.Call
Random indicates an expected call of Random
func (*MockReceptorMockRecorder) Rebalance ¶
func (mr *MockReceptorMockRecorder) Rebalance() *gomock.Call
ReBalance indicates an expected call of ReBalance
func (*MockReceptorMockRecorder) Self ¶
func (mr *MockReceptorMockRecorder) Self() *gomock.Call
Self indicates an expected call of Self
func (*MockReceptorMockRecorder) SelfAddress ¶
func (mr *MockReceptorMockRecorder) SelfAddress() *gomock.Call
SelfListener indicates an expected call of SelfListener
func (*MockReceptorMockRecorder) SetSelf ¶
func (mr *MockReceptorMockRecorder) SetSelf(arg0, arg1 interface{}) *gomock.Call
SetSelf indicates an expected call of SetSelf
func (*MockReceptorMockRecorder) UpdateTime ¶
func (mr *MockReceptorMockRecorder) UpdateTime(arg0, arg1 interface{}) *gomock.Call
UpdateTime indicates an expected call of UpdateTime