Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockClientIntf
- func (m *MockClientIntf) BeginPolling(arg0 *zmqutil.Poller, arg1 zmq4.State) *zmq4.Socket
- func (m *MockClientIntf) Close() error
- func (m *MockClientIntf) Connect(arg0 *util.Connection, arg1 []byte, arg2 string) error
- func (m *MockClientIntf) ConnectedTo() *zmqutil.Connected
- func (m *MockClientIntf) EXPECT() *MockClientIntfMockRecorder
- func (m *MockClientIntf) GetMonitorSocket() *zmq4.Socket
- func (m *MockClientIntf) GetSocket() *zmq4.Socket
- func (m *MockClientIntf) GoString() string
- func (m *MockClientIntf) IsConnected() bool
- func (m *MockClientIntf) IsConnectedTo(arg0 []byte) bool
- func (m *MockClientIntf) Receive(arg0 zmq4.Flag) ([][]byte, error)
- func (m *MockClientIntf) Reconnect() error
- func (m *MockClientIntf) ReconnectOpenedSocket() error
- func (m *MockClientIntf) ReconnectReturningSocket() (*zmq4.Socket, error)
- func (m *MockClientIntf) ResetServer() error
- func (m *MockClientIntf) Send(arg0 ...interface{}) error
- func (m *MockClientIntf) ServerPublicKey() []byte
- func (m *MockClientIntf) String() string
- type MockClientIntfMockRecorder
- func (mr *MockClientIntfMockRecorder) BeginPolling(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientIntfMockRecorder) Close() *gomock.Call
- func (mr *MockClientIntfMockRecorder) Connect(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientIntfMockRecorder) ConnectedTo() *gomock.Call
- func (mr *MockClientIntfMockRecorder) GetMonitorSocket() *gomock.Call
- func (mr *MockClientIntfMockRecorder) GetSocket() *gomock.Call
- func (mr *MockClientIntfMockRecorder) GoString() *gomock.Call
- func (mr *MockClientIntfMockRecorder) IsConnected() *gomock.Call
- func (mr *MockClientIntfMockRecorder) IsConnectedTo(arg0 interface{}) *gomock.Call
- func (mr *MockClientIntfMockRecorder) Receive(arg0 interface{}) *gomock.Call
- func (mr *MockClientIntfMockRecorder) Reconnect() *gomock.Call
- func (mr *MockClientIntfMockRecorder) ReconnectOpenedSocket() *gomock.Call
- func (mr *MockClientIntfMockRecorder) ReconnectReturningSocket() *gomock.Call
- func (mr *MockClientIntfMockRecorder) ResetServer() *gomock.Call
- func (mr *MockClientIntfMockRecorder) Send(arg0 ...interface{}) *gomock.Call
- func (mr *MockClientIntfMockRecorder) ServerPublicKey() *gomock.Call
- func (mr *MockClientIntfMockRecorder) String() *gomock.Call
- type MockUpstreamIntf
- func (m *MockUpstreamIntf) ActiveInPastSeconds(arg0 time.Duration) bool
- func (m *MockUpstreamIntf) CachedRemoteDigestOfLocalHeight() blockdigest.Digest
- func (m *MockUpstreamIntf) CachedRemoteHeight() uint64
- func (m *MockUpstreamIntf) Client() zmqutil.ClientIntf
- func (m *MockUpstreamIntf) Connect(arg0 *util.Connection, arg1 []byte) error
- func (m *MockUpstreamIntf) ConnectedTo() *zmqutil.Connected
- func (m *MockUpstreamIntf) Destroy()
- func (m *MockUpstreamIntf) EXPECT() *MockUpstreamIntfMockRecorder
- func (m *MockUpstreamIntf) GetBlockData(arg0 uint64) ([]byte, error)
- func (m *MockUpstreamIntf) IsConnected() bool
- func (m *MockUpstreamIntf) IsConnectedTo(arg0 []byte) bool
- func (m *MockUpstreamIntf) LocalHeight() uint64
- func (m *MockUpstreamIntf) Name() string
- func (m *MockUpstreamIntf) RemoteAddr() (string, error)
- func (m *MockUpstreamIntf) RemoteDigestOfHeight(arg0 uint64) (blockdigest.Digest, error)
- func (m *MockUpstreamIntf) RemoteHeight() (uint64, error)
- func (m *MockUpstreamIntf) ResetServer()
- func (m *MockUpstreamIntf) ServerPublicKey() []byte
- type MockUpstreamIntfMockRecorder
- func (mr *MockUpstreamIntfMockRecorder) ActiveInPastSeconds(arg0 interface{}) *gomock.Call
- func (mr *MockUpstreamIntfMockRecorder) CachedRemoteDigestOfLocalHeight() *gomock.Call
- func (mr *MockUpstreamIntfMockRecorder) CachedRemoteHeight() *gomock.Call
- func (mr *MockUpstreamIntfMockRecorder) Client() *gomock.Call
- func (mr *MockUpstreamIntfMockRecorder) Connect(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUpstreamIntfMockRecorder) ConnectedTo() *gomock.Call
- func (mr *MockUpstreamIntfMockRecorder) Destroy() *gomock.Call
- func (mr *MockUpstreamIntfMockRecorder) GetBlockData(arg0 interface{}) *gomock.Call
- func (mr *MockUpstreamIntfMockRecorder) IsConnected() *gomock.Call
- func (mr *MockUpstreamIntfMockRecorder) IsConnectedTo(arg0 interface{}) *gomock.Call
- func (mr *MockUpstreamIntfMockRecorder) LocalHeight() *gomock.Call
- func (mr *MockUpstreamIntfMockRecorder) Name() *gomock.Call
- func (mr *MockUpstreamIntfMockRecorder) RemoteAddr() *gomock.Call
- func (mr *MockUpstreamIntfMockRecorder) RemoteDigestOfHeight(arg0 interface{}) *gomock.Call
- func (mr *MockUpstreamIntfMockRecorder) RemoteHeight() *gomock.Call
- func (mr *MockUpstreamIntfMockRecorder) ResetServer() *gomock.Call
- func (mr *MockUpstreamIntfMockRecorder) ServerPublicKey() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClientIntf ¶
type MockClientIntf struct {
// contains filtered or unexported fields
}
MockClientIntf is a mock of ClientIntf interface
func NewMockClientIntf ¶
func NewMockClientIntf(ctrl *gomock.Controller) *MockClientIntf
NewMockClientIntf creates a new mock instance
func (*MockClientIntf) BeginPolling ¶
BeginPolling mocks base method
func (*MockClientIntf) Connect ¶
func (m *MockClientIntf) Connect(arg0 *util.Connection, arg1 []byte, arg2 string) error
Connect mocks base method
func (*MockClientIntf) ConnectedTo ¶
func (m *MockClientIntf) ConnectedTo() *zmqutil.Connected
ConnectedTo mocks base method
func (*MockClientIntf) EXPECT ¶
func (m *MockClientIntf) EXPECT() *MockClientIntfMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockClientIntf) GetMonitorSocket ¶
func (m *MockClientIntf) GetMonitorSocket() *zmq4.Socket
GetMonitorSocket mocks base method
func (*MockClientIntf) GetSocket ¶
func (m *MockClientIntf) GetSocket() *zmq4.Socket
GetSocket mocks base method
func (*MockClientIntf) GoString ¶
func (m *MockClientIntf) GoString() string
GoString mocks base method
func (*MockClientIntf) IsConnected ¶
func (m *MockClientIntf) IsConnected() bool
IsConnected mocks base method
func (*MockClientIntf) IsConnectedTo ¶
func (m *MockClientIntf) IsConnectedTo(arg0 []byte) bool
IsConnectedTo mocks base method
func (*MockClientIntf) Receive ¶
func (m *MockClientIntf) Receive(arg0 zmq4.Flag) ([][]byte, error)
Receive mocks base method
func (*MockClientIntf) Reconnect ¶
func (m *MockClientIntf) Reconnect() error
Reconnect mocks base method
func (*MockClientIntf) ReconnectOpenedSocket ¶
func (m *MockClientIntf) ReconnectOpenedSocket() error
ReconnectOpenedSocket mocks base method
func (*MockClientIntf) ReconnectReturningSocket ¶
func (m *MockClientIntf) ReconnectReturningSocket() (*zmq4.Socket, error)
ReconnectReturningSocket mocks base method
func (*MockClientIntf) ResetServer ¶
func (m *MockClientIntf) ResetServer() error
ResetServer mocks base method
func (*MockClientIntf) Send ¶
func (m *MockClientIntf) Send(arg0 ...interface{}) error
Send mocks base method
func (*MockClientIntf) ServerPublicKey ¶
func (m *MockClientIntf) ServerPublicKey() []byte
ServerPublicKey mocks base method
type MockClientIntfMockRecorder ¶
type MockClientIntfMockRecorder struct {
// contains filtered or unexported fields
}
MockClientIntfMockRecorder is the mock recorder for MockClientIntf
func (*MockClientIntfMockRecorder) BeginPolling ¶
func (mr *MockClientIntfMockRecorder) BeginPolling(arg0, arg1 interface{}) *gomock.Call
BeginPolling indicates an expected call of BeginPolling
func (*MockClientIntfMockRecorder) Close ¶
func (mr *MockClientIntfMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockClientIntfMockRecorder) Connect ¶
func (mr *MockClientIntfMockRecorder) Connect(arg0, arg1, arg2 interface{}) *gomock.Call
Connect indicates an expected call of Connect
func (*MockClientIntfMockRecorder) ConnectedTo ¶
func (mr *MockClientIntfMockRecorder) ConnectedTo() *gomock.Call
ConnectedTo indicates an expected call of ConnectedTo
func (*MockClientIntfMockRecorder) GetMonitorSocket ¶
func (mr *MockClientIntfMockRecorder) GetMonitorSocket() *gomock.Call
GetMonitorSocket indicates an expected call of GetMonitorSocket
func (*MockClientIntfMockRecorder) GetSocket ¶
func (mr *MockClientIntfMockRecorder) GetSocket() *gomock.Call
GetSocket indicates an expected call of GetSocket
func (*MockClientIntfMockRecorder) GoString ¶
func (mr *MockClientIntfMockRecorder) GoString() *gomock.Call
GoString indicates an expected call of GoString
func (*MockClientIntfMockRecorder) IsConnected ¶
func (mr *MockClientIntfMockRecorder) IsConnected() *gomock.Call
IsConnected indicates an expected call of IsConnected
func (*MockClientIntfMockRecorder) IsConnectedTo ¶
func (mr *MockClientIntfMockRecorder) IsConnectedTo(arg0 interface{}) *gomock.Call
IsConnectedTo indicates an expected call of IsConnectedTo
func (*MockClientIntfMockRecorder) Receive ¶
func (mr *MockClientIntfMockRecorder) Receive(arg0 interface{}) *gomock.Call
Receive indicates an expected call of Receive
func (*MockClientIntfMockRecorder) Reconnect ¶
func (mr *MockClientIntfMockRecorder) Reconnect() *gomock.Call
Reconnect indicates an expected call of Reconnect
func (*MockClientIntfMockRecorder) ReconnectOpenedSocket ¶
func (mr *MockClientIntfMockRecorder) ReconnectOpenedSocket() *gomock.Call
ReconnectOpenedSocket indicates an expected call of ReconnectOpenedSocket
func (*MockClientIntfMockRecorder) ReconnectReturningSocket ¶
func (mr *MockClientIntfMockRecorder) ReconnectReturningSocket() *gomock.Call
ReconnectReturningSocket indicates an expected call of ReconnectReturningSocket
func (*MockClientIntfMockRecorder) ResetServer ¶
func (mr *MockClientIntfMockRecorder) ResetServer() *gomock.Call
ResetServer indicates an expected call of ResetServer
func (*MockClientIntfMockRecorder) Send ¶
func (mr *MockClientIntfMockRecorder) Send(arg0 ...interface{}) *gomock.Call
Send indicates an expected call of Send
func (*MockClientIntfMockRecorder) ServerPublicKey ¶
func (mr *MockClientIntfMockRecorder) ServerPublicKey() *gomock.Call
ServerPublicKey indicates an expected call of ServerPublicKey
func (*MockClientIntfMockRecorder) String ¶
func (mr *MockClientIntfMockRecorder) String() *gomock.Call
String indicates an expected call of String
type MockUpstreamIntf ¶
type MockUpstreamIntf struct {
// contains filtered or unexported fields
}
MockUpstreamIntf is a mock of UpstreamIntf interface
func NewMockUpstreamIntf ¶
func NewMockUpstreamIntf(ctrl *gomock.Controller) *MockUpstreamIntf
NewMockUpstreamIntf creates a new mock instance
func (*MockUpstreamIntf) ActiveInPastSeconds ¶
func (m *MockUpstreamIntf) ActiveInPastSeconds(arg0 time.Duration) bool
ActiveInPastSeconds mocks base method
func (*MockUpstreamIntf) CachedRemoteDigestOfLocalHeight ¶
func (m *MockUpstreamIntf) CachedRemoteDigestOfLocalHeight() blockdigest.Digest
CachedRemoteDigestOfLocalHeight mocks base method
func (*MockUpstreamIntf) CachedRemoteHeight ¶
func (m *MockUpstreamIntf) CachedRemoteHeight() uint64
CachedRemoteHeight mocks base method
func (*MockUpstreamIntf) Client ¶
func (m *MockUpstreamIntf) Client() zmqutil.ClientIntf
Client mocks base method
func (*MockUpstreamIntf) Connect ¶
func (m *MockUpstreamIntf) Connect(arg0 *util.Connection, arg1 []byte) error
Connect mocks base method
func (*MockUpstreamIntf) ConnectedTo ¶
func (m *MockUpstreamIntf) ConnectedTo() *zmqutil.Connected
ConnectedTo mocks base method
func (*MockUpstreamIntf) EXPECT ¶
func (m *MockUpstreamIntf) EXPECT() *MockUpstreamIntfMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockUpstreamIntf) GetBlockData ¶
func (m *MockUpstreamIntf) GetBlockData(arg0 uint64) ([]byte, error)
GetBlockData mocks base method
func (*MockUpstreamIntf) IsConnected ¶
func (m *MockUpstreamIntf) IsConnected() bool
IsConnected mocks base method
func (*MockUpstreamIntf) IsConnectedTo ¶
func (m *MockUpstreamIntf) IsConnectedTo(arg0 []byte) bool
IsConnectedTo mocks base method
func (*MockUpstreamIntf) LocalHeight ¶
func (m *MockUpstreamIntf) LocalHeight() uint64
LocalHeight mocks base method
func (*MockUpstreamIntf) RemoteAddr ¶
func (m *MockUpstreamIntf) RemoteAddr() (string, error)
RemoteAddr mocks base method
func (*MockUpstreamIntf) RemoteDigestOfHeight ¶
func (m *MockUpstreamIntf) RemoteDigestOfHeight(arg0 uint64) (blockdigest.Digest, error)
RemoteDigestOfHeight mocks base method
func (*MockUpstreamIntf) RemoteHeight ¶
func (m *MockUpstreamIntf) RemoteHeight() (uint64, error)
RemoteHeight mocks base method
func (*MockUpstreamIntf) ResetServer ¶
func (m *MockUpstreamIntf) ResetServer()
ResetServer mocks base method
func (*MockUpstreamIntf) ServerPublicKey ¶
func (m *MockUpstreamIntf) ServerPublicKey() []byte
ServerPublicKey mocks base method
type MockUpstreamIntfMockRecorder ¶
type MockUpstreamIntfMockRecorder struct {
// contains filtered or unexported fields
}
MockUpstreamIntfMockRecorder is the mock recorder for MockUpstreamIntf
func (*MockUpstreamIntfMockRecorder) ActiveInPastSeconds ¶
func (mr *MockUpstreamIntfMockRecorder) ActiveInPastSeconds(arg0 interface{}) *gomock.Call
ActiveInPastSeconds indicates an expected call of ActiveInPastSeconds
func (*MockUpstreamIntfMockRecorder) CachedRemoteDigestOfLocalHeight ¶
func (mr *MockUpstreamIntfMockRecorder) CachedRemoteDigestOfLocalHeight() *gomock.Call
CachedRemoteDigestOfLocalHeight indicates an expected call of CachedRemoteDigestOfLocalHeight
func (*MockUpstreamIntfMockRecorder) CachedRemoteHeight ¶
func (mr *MockUpstreamIntfMockRecorder) CachedRemoteHeight() *gomock.Call
CachedRemoteHeight indicates an expected call of CachedRemoteHeight
func (*MockUpstreamIntfMockRecorder) Client ¶
func (mr *MockUpstreamIntfMockRecorder) Client() *gomock.Call
Client indicates an expected call of Client
func (*MockUpstreamIntfMockRecorder) Connect ¶
func (mr *MockUpstreamIntfMockRecorder) Connect(arg0, arg1 interface{}) *gomock.Call
Connect indicates an expected call of Connect
func (*MockUpstreamIntfMockRecorder) ConnectedTo ¶
func (mr *MockUpstreamIntfMockRecorder) ConnectedTo() *gomock.Call
ConnectedTo indicates an expected call of ConnectedTo
func (*MockUpstreamIntfMockRecorder) Destroy ¶
func (mr *MockUpstreamIntfMockRecorder) Destroy() *gomock.Call
Destroy indicates an expected call of Destroy
func (*MockUpstreamIntfMockRecorder) GetBlockData ¶
func (mr *MockUpstreamIntfMockRecorder) GetBlockData(arg0 interface{}) *gomock.Call
GetBlockData indicates an expected call of GetBlockData
func (*MockUpstreamIntfMockRecorder) IsConnected ¶
func (mr *MockUpstreamIntfMockRecorder) IsConnected() *gomock.Call
IsConnected indicates an expected call of IsConnected
func (*MockUpstreamIntfMockRecorder) IsConnectedTo ¶
func (mr *MockUpstreamIntfMockRecorder) IsConnectedTo(arg0 interface{}) *gomock.Call
IsConnectedTo indicates an expected call of IsConnectedTo
func (*MockUpstreamIntfMockRecorder) LocalHeight ¶
func (mr *MockUpstreamIntfMockRecorder) LocalHeight() *gomock.Call
LocalHeight indicates an expected call of LocalHeight
func (*MockUpstreamIntfMockRecorder) Name ¶
func (mr *MockUpstreamIntfMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name
func (*MockUpstreamIntfMockRecorder) RemoteAddr ¶
func (mr *MockUpstreamIntfMockRecorder) RemoteAddr() *gomock.Call
RemoteAddr indicates an expected call of RemoteAddr
func (*MockUpstreamIntfMockRecorder) RemoteDigestOfHeight ¶
func (mr *MockUpstreamIntfMockRecorder) RemoteDigestOfHeight(arg0 interface{}) *gomock.Call
RemoteDigestOfHeight indicates an expected call of RemoteDigestOfHeight
func (*MockUpstreamIntfMockRecorder) RemoteHeight ¶
func (mr *MockUpstreamIntfMockRecorder) RemoteHeight() *gomock.Call
RemoteHeight indicates an expected call of RemoteHeight
func (*MockUpstreamIntfMockRecorder) ResetServer ¶
func (mr *MockUpstreamIntfMockRecorder) ResetServer() *gomock.Call
ResetServer indicates an expected call of ResetServer
func (*MockUpstreamIntfMockRecorder) ServerPublicKey ¶
func (mr *MockUpstreamIntfMockRecorder) ServerPublicKey() *gomock.Call
ServerPublicKey indicates an expected call of ServerPublicKey