Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockData
- type MockDataMockRecorder
- type MockDirectMessage
- type MockDirectMessageMockRecorder
- type MockGossipMessage
- func (m *MockGossipMessage) Bytes() []byte
- func (m *MockGossipMessage) EXPECT() *MockGossipMessageMockRecorder
- func (m *MockGossipMessage) IsOwnMessage() bool
- func (m *MockGossipMessage) ReportValidation(ctx context.Context, protocol string)
- func (m *MockGossipMessage) RequestID() string
- func (m *MockGossipMessage) Sender() p2pcrypto.PublicKey
- func (m *MockGossipMessage) ValidationCompletedChan() chan service.MessageValidation
- type MockGossipMessageMockRecorder
- func (mr *MockGossipMessageMockRecorder) Bytes() *gomock.Call
- func (mr *MockGossipMessageMockRecorder) IsOwnMessage() *gomock.Call
- func (mr *MockGossipMessageMockRecorder) ReportValidation(ctx, protocol interface{}) *gomock.Call
- func (mr *MockGossipMessageMockRecorder) RequestID() *gomock.Call
- func (mr *MockGossipMessageMockRecorder) Sender() *gomock.Call
- func (mr *MockGossipMessageMockRecorder) ValidationCompletedChan() *gomock.Call
- type MockService
- func (m *MockService) Broadcast(ctx context.Context, protocol string, payload []byte) error
- func (m *MockService) EXPECT() *MockServiceMockRecorder
- func (m *MockService) GossipReady() <-chan struct{}
- func (m *MockService) RegisterDirectProtocol(protocol string) chan service.DirectMessage
- func (m *MockService) RegisterGossipProtocol(protocol string, prio priorityq.Priority) chan service.GossipMessage
- func (m *MockService) Shutdown()
- func (m *MockService) Start(ctx context.Context) error
- func (m *MockService) SubscribePeerEvents() (chan p2pcrypto.PublicKey, chan p2pcrypto.PublicKey)
- type MockServiceMockRecorder
- func (mr *MockServiceMockRecorder) Broadcast(ctx, protocol, payload interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) GossipReady() *gomock.Call
- func (mr *MockServiceMockRecorder) RegisterDirectProtocol(protocol interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) RegisterGossipProtocol(protocol, prio interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) Shutdown() *gomock.Call
- func (mr *MockServiceMockRecorder) Start(ctx interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) SubscribePeerEvents() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockData ¶
type MockData struct {
// contains filtered or unexported fields
}
MockData is a mock of Data interface.
func NewMockData ¶
func NewMockData(ctrl *gomock.Controller) *MockData
NewMockData creates a new mock instance.
func (*MockData) EXPECT ¶
func (m *MockData) EXPECT() *MockDataMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockDataMockRecorder ¶
type MockDataMockRecorder struct {
// contains filtered or unexported fields
}
MockDataMockRecorder is the mock recorder for MockData.
func (*MockDataMockRecorder) Bytes ¶
func (mr *MockDataMockRecorder) Bytes() *gomock.Call
Bytes indicates an expected call of Bytes.
type MockDirectMessage ¶
type MockDirectMessage struct {
// contains filtered or unexported fields
}
MockDirectMessage is a mock of DirectMessage interface.
func NewMockDirectMessage ¶
func NewMockDirectMessage(ctrl *gomock.Controller) *MockDirectMessage
NewMockDirectMessage creates a new mock instance.
func (*MockDirectMessage) Bytes ¶
func (m *MockDirectMessage) Bytes() []byte
Bytes mocks base method.
func (*MockDirectMessage) EXPECT ¶
func (m *MockDirectMessage) EXPECT() *MockDirectMessageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDirectMessage) Metadata ¶
func (m *MockDirectMessage) Metadata() service.P2PMetadata
Metadata mocks base method.
func (*MockDirectMessage) Sender ¶
func (m *MockDirectMessage) Sender() p2pcrypto.PublicKey
Sender mocks base method.
type MockDirectMessageMockRecorder ¶
type MockDirectMessageMockRecorder struct {
// contains filtered or unexported fields
}
MockDirectMessageMockRecorder is the mock recorder for MockDirectMessage.
func (*MockDirectMessageMockRecorder) Bytes ¶
func (mr *MockDirectMessageMockRecorder) Bytes() *gomock.Call
Bytes indicates an expected call of Bytes.
func (*MockDirectMessageMockRecorder) Metadata ¶
func (mr *MockDirectMessageMockRecorder) Metadata() *gomock.Call
Metadata indicates an expected call of Metadata.
func (*MockDirectMessageMockRecorder) Sender ¶
func (mr *MockDirectMessageMockRecorder) Sender() *gomock.Call
Sender indicates an expected call of Sender.
type MockGossipMessage ¶
type MockGossipMessage struct {
// contains filtered or unexported fields
}
MockGossipMessage is a mock of GossipMessage interface.
func NewMockGossipMessage ¶
func NewMockGossipMessage(ctrl *gomock.Controller) *MockGossipMessage
NewMockGossipMessage creates a new mock instance.
func (*MockGossipMessage) Bytes ¶
func (m *MockGossipMessage) Bytes() []byte
Bytes mocks base method.
func (*MockGossipMessage) EXPECT ¶
func (m *MockGossipMessage) EXPECT() *MockGossipMessageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGossipMessage) IsOwnMessage ¶
func (m *MockGossipMessage) IsOwnMessage() bool
IsOwnMessage mocks base method.
func (*MockGossipMessage) ReportValidation ¶
func (m *MockGossipMessage) ReportValidation(ctx context.Context, protocol string)
ReportValidation mocks base method.
func (*MockGossipMessage) RequestID ¶
func (m *MockGossipMessage) RequestID() string
RequestID mocks base method.
func (*MockGossipMessage) Sender ¶
func (m *MockGossipMessage) Sender() p2pcrypto.PublicKey
Sender mocks base method.
func (*MockGossipMessage) ValidationCompletedChan ¶
func (m *MockGossipMessage) ValidationCompletedChan() chan service.MessageValidation
ValidationCompletedChan mocks base method.
type MockGossipMessageMockRecorder ¶
type MockGossipMessageMockRecorder struct {
// contains filtered or unexported fields
}
MockGossipMessageMockRecorder is the mock recorder for MockGossipMessage.
func (*MockGossipMessageMockRecorder) Bytes ¶
func (mr *MockGossipMessageMockRecorder) Bytes() *gomock.Call
Bytes indicates an expected call of Bytes.
func (*MockGossipMessageMockRecorder) IsOwnMessage ¶
func (mr *MockGossipMessageMockRecorder) IsOwnMessage() *gomock.Call
IsOwnMessage indicates an expected call of IsOwnMessage.
func (*MockGossipMessageMockRecorder) ReportValidation ¶
func (mr *MockGossipMessageMockRecorder) ReportValidation(ctx, protocol interface{}) *gomock.Call
ReportValidation indicates an expected call of ReportValidation.
func (*MockGossipMessageMockRecorder) RequestID ¶
func (mr *MockGossipMessageMockRecorder) RequestID() *gomock.Call
RequestID indicates an expected call of RequestID.
func (*MockGossipMessageMockRecorder) Sender ¶
func (mr *MockGossipMessageMockRecorder) Sender() *gomock.Call
Sender indicates an expected call of Sender.
func (*MockGossipMessageMockRecorder) ValidationCompletedChan ¶
func (mr *MockGossipMessageMockRecorder) ValidationCompletedChan() *gomock.Call
ValidationCompletedChan indicates an expected call of ValidationCompletedChan.
type MockService ¶
type MockService struct {
// contains filtered or unexported fields
}
MockService is a mock of Service interface.
func NewMockService ¶
func NewMockService(ctrl *gomock.Controller) *MockService
NewMockService creates a new mock instance.
func (*MockService) EXPECT ¶
func (m *MockService) EXPECT() *MockServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockService) GossipReady ¶
func (m *MockService) GossipReady() <-chan struct{}
GossipReady mocks base method.
func (*MockService) RegisterDirectProtocol ¶
func (m *MockService) RegisterDirectProtocol(protocol string) chan service.DirectMessage
RegisterDirectProtocol mocks base method.
func (*MockService) RegisterGossipProtocol ¶
func (m *MockService) RegisterGossipProtocol(protocol string, prio priorityq.Priority) chan service.GossipMessage
RegisterGossipProtocol mocks base method.
func (*MockService) Start ¶
func (m *MockService) Start(ctx context.Context) error
Start mocks base method.
func (*MockService) SubscribePeerEvents ¶
func (m *MockService) SubscribePeerEvents() (chan p2pcrypto.PublicKey, chan p2pcrypto.PublicKey)
SubscribePeerEvents mocks base method.
type MockServiceMockRecorder ¶
type MockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceMockRecorder is the mock recorder for MockService.
func (*MockServiceMockRecorder) Broadcast ¶
func (mr *MockServiceMockRecorder) Broadcast(ctx, protocol, payload interface{}) *gomock.Call
Broadcast indicates an expected call of Broadcast.
func (*MockServiceMockRecorder) GossipReady ¶
func (mr *MockServiceMockRecorder) GossipReady() *gomock.Call
GossipReady indicates an expected call of GossipReady.
func (*MockServiceMockRecorder) RegisterDirectProtocol ¶
func (mr *MockServiceMockRecorder) RegisterDirectProtocol(protocol interface{}) *gomock.Call
RegisterDirectProtocol indicates an expected call of RegisterDirectProtocol.
func (*MockServiceMockRecorder) RegisterGossipProtocol ¶
func (mr *MockServiceMockRecorder) RegisterGossipProtocol(protocol, prio interface{}) *gomock.Call
RegisterGossipProtocol indicates an expected call of RegisterGossipProtocol.
func (*MockServiceMockRecorder) Shutdown ¶
func (mr *MockServiceMockRecorder) Shutdown() *gomock.Call
Shutdown indicates an expected call of Shutdown.
func (*MockServiceMockRecorder) Start ¶
func (mr *MockServiceMockRecorder) Start(ctx interface{}) *gomock.Call
Start indicates an expected call of Start.
func (*MockServiceMockRecorder) SubscribePeerEvents ¶
func (mr *MockServiceMockRecorder) SubscribePeerEvents() *gomock.Call
SubscribePeerEvents indicates an expected call of SubscribePeerEvents.