Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockBeaconClient
- func (m *MockBeaconClient) AttachMetrics(arg0 *metrics.Metrics)
- func (m *MockBeaconClient) EXPECT() *MockBeaconClientMockRecorder
- func (m *MockBeaconClient) Endpoint() string
- func (m *MockBeaconClient) Genesis() (structs.GenesisInfo, error)
- func (m *MockBeaconClient) GetProposerDuties(arg0 structs.Epoch) (*relay.RegisteredProposersResponse, error)
- func (m *MockBeaconClient) KnownValidators(arg0 structs.Slot) (relay.AllValidatorsResponse, error)
- func (m *MockBeaconClient) PublishBlock(arg0 *types.SignedBeaconBlock) error
- func (m *MockBeaconClient) SubscribeToHeadEvents(arg0 context.Context, arg1 chan relay.HeadEvent)
- func (m *MockBeaconClient) SyncStatus() (*relay.SyncStatusPayloadData, error)
- type MockBeaconClientMockRecorder
- func (mr *MockBeaconClientMockRecorder) AttachMetrics(arg0 interface{}) *gomock.Call
- func (mr *MockBeaconClientMockRecorder) Endpoint() *gomock.Call
- func (mr *MockBeaconClientMockRecorder) Genesis() *gomock.Call
- func (mr *MockBeaconClientMockRecorder) GetProposerDuties(arg0 interface{}) *gomock.Call
- func (mr *MockBeaconClientMockRecorder) KnownValidators(arg0 interface{}) *gomock.Call
- func (mr *MockBeaconClientMockRecorder) PublishBlock(arg0 interface{}) *gomock.Call
- func (mr *MockBeaconClientMockRecorder) SubscribeToHeadEvents(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBeaconClientMockRecorder) SyncStatus() *gomock.Call
- type MockDatastore
- type MockDatastoreMockRecorder
- type MockValidatorCache
- type MockValidatorCacheMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBeaconClient ¶
type MockBeaconClient struct {
// contains filtered or unexported fields
}
MockBeaconClient is a mock of BeaconClient interface.
func NewMockBeaconClient ¶
func NewMockBeaconClient(ctrl *gomock.Controller) *MockBeaconClient
NewMockBeaconClient creates a new mock instance.
func (*MockBeaconClient) AttachMetrics ¶ added in v0.3.9
func (m *MockBeaconClient) AttachMetrics(arg0 *metrics.Metrics)
AttachMetrics mocks base method.
func (*MockBeaconClient) EXPECT ¶
func (m *MockBeaconClient) EXPECT() *MockBeaconClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBeaconClient) Endpoint ¶
func (m *MockBeaconClient) Endpoint() string
Endpoint mocks base method.
func (*MockBeaconClient) Genesis ¶
func (m *MockBeaconClient) Genesis() (structs.GenesisInfo, error)
Genesis mocks base method.
func (*MockBeaconClient) GetProposerDuties ¶
func (m *MockBeaconClient) GetProposerDuties(arg0 structs.Epoch) (*relay.RegisteredProposersResponse, error)
GetProposerDuties mocks base method.
func (*MockBeaconClient) KnownValidators ¶
func (m *MockBeaconClient) KnownValidators(arg0 structs.Slot) (relay.AllValidatorsResponse, error)
KnownValidators mocks base method.
func (*MockBeaconClient) PublishBlock ¶ added in v0.3.9
func (m *MockBeaconClient) PublishBlock(arg0 *types.SignedBeaconBlock) error
PublishBlock mocks base method.
func (*MockBeaconClient) SubscribeToHeadEvents ¶
func (m *MockBeaconClient) SubscribeToHeadEvents(arg0 context.Context, arg1 chan relay.HeadEvent)
SubscribeToHeadEvents mocks base method.
func (*MockBeaconClient) SyncStatus ¶
func (m *MockBeaconClient) SyncStatus() (*relay.SyncStatusPayloadData, error)
SyncStatus mocks base method.
type MockBeaconClientMockRecorder ¶
type MockBeaconClientMockRecorder struct {
// contains filtered or unexported fields
}
MockBeaconClientMockRecorder is the mock recorder for MockBeaconClient.
func (*MockBeaconClientMockRecorder) AttachMetrics ¶ added in v0.3.9
func (mr *MockBeaconClientMockRecorder) AttachMetrics(arg0 interface{}) *gomock.Call
AttachMetrics indicates an expected call of AttachMetrics.
func (*MockBeaconClientMockRecorder) Endpoint ¶
func (mr *MockBeaconClientMockRecorder) Endpoint() *gomock.Call
Endpoint indicates an expected call of Endpoint.
func (*MockBeaconClientMockRecorder) Genesis ¶
func (mr *MockBeaconClientMockRecorder) Genesis() *gomock.Call
Genesis indicates an expected call of Genesis.
func (*MockBeaconClientMockRecorder) GetProposerDuties ¶
func (mr *MockBeaconClientMockRecorder) GetProposerDuties(arg0 interface{}) *gomock.Call
GetProposerDuties indicates an expected call of GetProposerDuties.
func (*MockBeaconClientMockRecorder) KnownValidators ¶
func (mr *MockBeaconClientMockRecorder) KnownValidators(arg0 interface{}) *gomock.Call
KnownValidators indicates an expected call of KnownValidators.
func (*MockBeaconClientMockRecorder) PublishBlock ¶ added in v0.3.9
func (mr *MockBeaconClientMockRecorder) PublishBlock(arg0 interface{}) *gomock.Call
PublishBlock indicates an expected call of PublishBlock.
func (*MockBeaconClientMockRecorder) SubscribeToHeadEvents ¶
func (mr *MockBeaconClientMockRecorder) SubscribeToHeadEvents(arg0, arg1 interface{}) *gomock.Call
SubscribeToHeadEvents indicates an expected call of SubscribeToHeadEvents.
func (*MockBeaconClientMockRecorder) SyncStatus ¶
func (mr *MockBeaconClientMockRecorder) SyncStatus() *gomock.Call
SyncStatus indicates an expected call of SyncStatus.
type MockDatastore ¶
type MockDatastore struct {
// contains filtered or unexported fields
}
MockDatastore is a mock of Datastore interface.
func NewMockDatastore ¶
func NewMockDatastore(ctrl *gomock.Controller) *MockDatastore
NewMockDatastore creates a new mock instance.
func (*MockDatastore) EXPECT ¶
func (m *MockDatastore) EXPECT() *MockDatastoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDatastore) GetRegistration ¶
func (m *MockDatastore) GetRegistration(arg0 context.Context, arg1 types.PublicKey) (types.SignedValidatorRegistration, error)
GetRegistration mocks base method.
type MockDatastoreMockRecorder ¶
type MockDatastoreMockRecorder struct {
// contains filtered or unexported fields
}
MockDatastoreMockRecorder is the mock recorder for MockDatastore.
func (*MockDatastoreMockRecorder) GetRegistration ¶
func (mr *MockDatastoreMockRecorder) GetRegistration(arg0, arg1 interface{}) *gomock.Call
GetRegistration indicates an expected call of GetRegistration.
type MockValidatorCache ¶ added in v0.3.19
type MockValidatorCache struct {
// contains filtered or unexported fields
}
MockValidatorCache is a mock of ValidatorCache interface.
func NewMockValidatorCache ¶ added in v0.3.19
func NewMockValidatorCache(ctrl *gomock.Controller) *MockValidatorCache
NewMockValidatorCache creates a new mock instance.
func (*MockValidatorCache) EXPECT ¶ added in v0.3.19
func (m *MockValidatorCache) EXPECT() *MockValidatorCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockValidatorCache) Get ¶ added in v0.3.19
func (m *MockValidatorCache) Get(arg0 types.PublicKey) (structs.ValidatorCacheEntry, bool)
Get mocks base method.
type MockValidatorCacheMockRecorder ¶ added in v0.3.19
type MockValidatorCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockValidatorCacheMockRecorder is the mock recorder for MockValidatorCache.
func (*MockValidatorCacheMockRecorder) Get ¶ added in v0.3.19
func (mr *MockValidatorCacheMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get.