Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockBeaconClient
- func (m *MockBeaconClient) EXPECT() *MockBeaconClientMockRecorder
- func (m *MockBeaconClient) Genesis() (structs.GenesisInfo, error)
- func (m *MockBeaconClient) GetForkSchedule() (*client.GetForkScheduleResponse, error)
- func (m *MockBeaconClient) GetProposerDuties(arg0 structs.Epoch) (*client.RegisteredProposersResponse, error)
- func (m *MockBeaconClient) GetWithdrawals(arg0 structs.Slot) (*client.GetWithdrawalsResponse, error)
- func (m *MockBeaconClient) KnownValidators(arg0 structs.Slot) (client.AllValidatorsResponse, error)
- func (m *MockBeaconClient) Randao(arg0 structs.Slot) (string, error)
- func (m *MockBeaconClient) SubscribeToHeadEvents(arg0 context.Context, arg1 chan client.HeadEvent)
- func (m *MockBeaconClient) SyncStatus() (*client.SyncStatusPayloadData, error)
- type MockBeaconClientMockRecorder
- func (mr *MockBeaconClientMockRecorder) Genesis() *gomock.Call
- func (mr *MockBeaconClientMockRecorder) GetForkSchedule() *gomock.Call
- func (mr *MockBeaconClientMockRecorder) GetProposerDuties(arg0 interface{}) *gomock.Call
- func (mr *MockBeaconClientMockRecorder) GetWithdrawals(arg0 interface{}) *gomock.Call
- func (mr *MockBeaconClientMockRecorder) KnownValidators(arg0 interface{}) *gomock.Call
- func (mr *MockBeaconClientMockRecorder) Randao(arg0 interface{}) *gomock.Call
- func (mr *MockBeaconClientMockRecorder) SubscribeToHeadEvents(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBeaconClientMockRecorder) SyncStatus() *gomock.Call
- type MockDatastore
- type MockDatastoreMockRecorder
- type MockState
- func (m *MockState) Duties() structs.DutiesState
- func (m *MockState) EXPECT() *MockStateMockRecorder
- func (m *MockState) Fork() structs.ForkState
- func (m *MockState) HeadSlot() structs.Slot
- func (m *MockState) KnownValidators() structs.ValidatorsState
- func (m *MockState) KnownValidatorsUpdateTime() time.Time
- func (m *MockState) Randao() string
- func (m *MockState) SetDuties(arg0 structs.DutiesState)
- func (m *MockState) SetFork(arg0 structs.ForkState)
- func (m *MockState) SetGenesis(arg0 structs.GenesisInfo)
- func (m *MockState) SetHeadSlot(arg0 structs.Slot)
- func (m *MockState) SetKnownValidators(arg0 structs.ValidatorsState)
- func (m *MockState) SetRandao(arg0 string)
- func (m *MockState) SetWithdrawals(arg0 structs.WithdrawalsState)
- func (m *MockState) Withdrawals() structs.WithdrawalsState
- type MockStateMockRecorder
- func (mr *MockStateMockRecorder) Duties() *gomock.Call
- func (mr *MockStateMockRecorder) Fork() *gomock.Call
- func (mr *MockStateMockRecorder) HeadSlot() *gomock.Call
- func (mr *MockStateMockRecorder) KnownValidators() *gomock.Call
- func (mr *MockStateMockRecorder) KnownValidatorsUpdateTime() *gomock.Call
- func (mr *MockStateMockRecorder) Randao() *gomock.Call
- func (mr *MockStateMockRecorder) SetDuties(arg0 interface{}) *gomock.Call
- func (mr *MockStateMockRecorder) SetFork(arg0 interface{}) *gomock.Call
- func (mr *MockStateMockRecorder) SetGenesis(arg0 interface{}) *gomock.Call
- func (mr *MockStateMockRecorder) SetHeadSlot(arg0 interface{}) *gomock.Call
- func (mr *MockStateMockRecorder) SetKnownValidators(arg0 interface{}) *gomock.Call
- func (mr *MockStateMockRecorder) SetRandao(arg0 interface{}) *gomock.Call
- func (mr *MockStateMockRecorder) SetWithdrawals(arg0 interface{}) *gomock.Call
- func (mr *MockStateMockRecorder) Withdrawals() *gomock.Call
- 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) EXPECT ¶
func (m *MockBeaconClient) EXPECT() *MockBeaconClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBeaconClient) Genesis ¶
func (m *MockBeaconClient) Genesis() (structs.GenesisInfo, error)
Genesis mocks base method.
func (*MockBeaconClient) GetForkSchedule ¶
func (m *MockBeaconClient) GetForkSchedule() (*client.GetForkScheduleResponse, error)
GetForkSchedule mocks base method.
func (*MockBeaconClient) GetProposerDuties ¶
func (m *MockBeaconClient) GetProposerDuties(arg0 structs.Epoch) (*client.RegisteredProposersResponse, error)
GetProposerDuties mocks base method.
func (*MockBeaconClient) GetWithdrawals ¶
func (m *MockBeaconClient) GetWithdrawals(arg0 structs.Slot) (*client.GetWithdrawalsResponse, error)
GetWithdrawals mocks base method.
func (*MockBeaconClient) KnownValidators ¶
func (m *MockBeaconClient) KnownValidators(arg0 structs.Slot) (client.AllValidatorsResponse, error)
KnownValidators mocks base method.
func (*MockBeaconClient) Randao ¶
func (m *MockBeaconClient) Randao(arg0 structs.Slot) (string, error)
Randao mocks base method.
func (*MockBeaconClient) SubscribeToHeadEvents ¶
func (m *MockBeaconClient) SubscribeToHeadEvents(arg0 context.Context, arg1 chan client.HeadEvent)
SubscribeToHeadEvents mocks base method.
func (*MockBeaconClient) SyncStatus ¶
func (m *MockBeaconClient) SyncStatus() (*client.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) Genesis ¶
func (mr *MockBeaconClientMockRecorder) Genesis() *gomock.Call
Genesis indicates an expected call of Genesis.
func (*MockBeaconClientMockRecorder) GetForkSchedule ¶
func (mr *MockBeaconClientMockRecorder) GetForkSchedule() *gomock.Call
GetForkSchedule indicates an expected call of GetForkSchedule.
func (*MockBeaconClientMockRecorder) GetProposerDuties ¶
func (mr *MockBeaconClientMockRecorder) GetProposerDuties(arg0 interface{}) *gomock.Call
GetProposerDuties indicates an expected call of GetProposerDuties.
func (*MockBeaconClientMockRecorder) GetWithdrawals ¶
func (mr *MockBeaconClientMockRecorder) GetWithdrawals(arg0 interface{}) *gomock.Call
GetWithdrawals indicates an expected call of GetWithdrawals.
func (*MockBeaconClientMockRecorder) KnownValidators ¶
func (mr *MockBeaconClientMockRecorder) KnownValidators(arg0 interface{}) *gomock.Call
KnownValidators indicates an expected call of KnownValidators.
func (*MockBeaconClientMockRecorder) Randao ¶
func (mr *MockBeaconClientMockRecorder) Randao(arg0 interface{}) *gomock.Call
Randao indicates an expected call of Randao.
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 MockState ¶
type MockState struct {
// contains filtered or unexported fields
}
MockState is a mock of State interface.
func NewMockState ¶
func NewMockState(ctrl *gomock.Controller) *MockState
NewMockState creates a new mock instance.
func (*MockState) Duties ¶
func (m *MockState) Duties() structs.DutiesState
Duties mocks base method.
func (*MockState) EXPECT ¶
func (m *MockState) EXPECT() *MockStateMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockState) KnownValidators ¶
func (m *MockState) KnownValidators() structs.ValidatorsState
KnownValidators mocks base method.
func (*MockState) KnownValidatorsUpdateTime ¶
KnownValidatorsUpdateTime mocks base method.
func (*MockState) SetDuties ¶
func (m *MockState) SetDuties(arg0 structs.DutiesState)
SetDuties mocks base method.
func (*MockState) SetGenesis ¶
func (m *MockState) SetGenesis(arg0 structs.GenesisInfo)
SetGenesis mocks base method.
func (*MockState) SetHeadSlot ¶
SetHeadSlot mocks base method.
func (*MockState) SetKnownValidators ¶
func (m *MockState) SetKnownValidators(arg0 structs.ValidatorsState)
SetKnownValidators mocks base method.
func (*MockState) SetWithdrawals ¶
func (m *MockState) SetWithdrawals(arg0 structs.WithdrawalsState)
SetWithdrawals mocks base method.
func (*MockState) Withdrawals ¶
func (m *MockState) Withdrawals() structs.WithdrawalsState
Withdrawals mocks base method.
type MockStateMockRecorder ¶
type MockStateMockRecorder struct {
// contains filtered or unexported fields
}
MockStateMockRecorder is the mock recorder for MockState.
func (*MockStateMockRecorder) Duties ¶
func (mr *MockStateMockRecorder) Duties() *gomock.Call
Duties indicates an expected call of Duties.
func (*MockStateMockRecorder) Fork ¶
func (mr *MockStateMockRecorder) Fork() *gomock.Call
Fork indicates an expected call of Fork.
func (*MockStateMockRecorder) HeadSlot ¶
func (mr *MockStateMockRecorder) HeadSlot() *gomock.Call
HeadSlot indicates an expected call of HeadSlot.
func (*MockStateMockRecorder) KnownValidators ¶
func (mr *MockStateMockRecorder) KnownValidators() *gomock.Call
KnownValidators indicates an expected call of KnownValidators.
func (*MockStateMockRecorder) KnownValidatorsUpdateTime ¶
func (mr *MockStateMockRecorder) KnownValidatorsUpdateTime() *gomock.Call
KnownValidatorsUpdateTime indicates an expected call of KnownValidatorsUpdateTime.
func (*MockStateMockRecorder) Randao ¶
func (mr *MockStateMockRecorder) Randao() *gomock.Call
Randao indicates an expected call of Randao.
func (*MockStateMockRecorder) SetDuties ¶
func (mr *MockStateMockRecorder) SetDuties(arg0 interface{}) *gomock.Call
SetDuties indicates an expected call of SetDuties.
func (*MockStateMockRecorder) SetFork ¶
func (mr *MockStateMockRecorder) SetFork(arg0 interface{}) *gomock.Call
SetFork indicates an expected call of SetFork.
func (*MockStateMockRecorder) SetGenesis ¶
func (mr *MockStateMockRecorder) SetGenesis(arg0 interface{}) *gomock.Call
SetGenesis indicates an expected call of SetGenesis.
func (*MockStateMockRecorder) SetHeadSlot ¶
func (mr *MockStateMockRecorder) SetHeadSlot(arg0 interface{}) *gomock.Call
SetHeadSlot indicates an expected call of SetHeadSlot.
func (*MockStateMockRecorder) SetKnownValidators ¶
func (mr *MockStateMockRecorder) SetKnownValidators(arg0 interface{}) *gomock.Call
SetKnownValidators indicates an expected call of SetKnownValidators.
func (*MockStateMockRecorder) SetRandao ¶
func (mr *MockStateMockRecorder) SetRandao(arg0 interface{}) *gomock.Call
SetRandao indicates an expected call of SetRandao.
func (*MockStateMockRecorder) SetWithdrawals ¶
func (mr *MockStateMockRecorder) SetWithdrawals(arg0 interface{}) *gomock.Call
SetWithdrawals indicates an expected call of SetWithdrawals.
func (*MockStateMockRecorder) Withdrawals ¶
func (mr *MockStateMockRecorder) Withdrawals() *gomock.Call
Withdrawals indicates an expected call of Withdrawals.
type MockValidatorCache ¶
type MockValidatorCache struct {
// contains filtered or unexported fields
}
MockValidatorCache is a mock of ValidatorCache interface.
func NewMockValidatorCache ¶
func NewMockValidatorCache(ctrl *gomock.Controller) *MockValidatorCache
NewMockValidatorCache creates a new mock instance.
func (*MockValidatorCache) EXPECT ¶
func (m *MockValidatorCache) EXPECT() *MockValidatorCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockValidatorCache) Get ¶
func (m *MockValidatorCache) Get(arg0 types.PublicKey) (structs.ValidatorCacheEntry, bool)
Get mocks base method.
type MockValidatorCacheMockRecorder ¶
type MockValidatorCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockValidatorCacheMockRecorder is the mock recorder for MockValidatorCache.
func (*MockValidatorCacheMockRecorder) Get ¶
func (mr *MockValidatorCacheMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get.