Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockBeaconClient
- 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) SubscribeToHeadEvents(arg0 context.Context, arg1 chan relay.HeadEvent)
- func (m *MockBeaconClient) SyncStatus() (*relay.SyncStatusPayloadData, error)
- type MockBeaconClientMockRecorder
- 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) SubscribeToHeadEvents(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBeaconClientMockRecorder) SyncStatus() *gomock.Call
- type MockDatastore
- func (m *MockDatastore) EXPECT() *MockDatastoreMockRecorder
- func (m *MockDatastore) GetDelivered(arg0 context.Context, arg1 structs.PayloadQuery) (structs.BidTraceWithTimestamp, error)
- func (m *MockDatastore) GetDeliveredBatch(arg0 context.Context, arg1 []structs.PayloadQuery) ([]structs.BidTraceWithTimestamp, error)
- func (m *MockDatastore) GetHeadersByBlockHash(arg0 context.Context, arg1 types.Hash) ([]structs.HeaderAndTrace, error)
- func (m *MockDatastore) GetHeadersByBlockNum(arg0 context.Context, arg1 uint64) ([]structs.HeaderAndTrace, error)
- func (m *MockDatastore) GetHeadersBySlot(arg0 context.Context, arg1 uint64) ([]structs.HeaderAndTrace, error)
- func (m *MockDatastore) GetLatestHeaders(arg0 context.Context, arg1 uint64) ([]structs.HeaderAndTrace, error)
- func (m *MockDatastore) GetPayload(arg0 context.Context, arg1 structs.PayloadKey) (*structs.BlockBidAndTrace, error)
- func (m *MockDatastore) GetRegistration(arg0 context.Context, arg1 structs.PubKey) (types.SignedValidatorRegistration, error)
- func (m *MockDatastore) PutDelivered(arg0 context.Context, arg1 structs.Slot, arg2 structs.DeliveredTrace, ...) error
- func (m *MockDatastore) PutPayload(arg0 context.Context, arg1 structs.PayloadKey, arg2 *structs.BlockBidAndTrace, ...) error
- func (m *MockDatastore) PutRegistrationRaw(arg0 context.Context, arg1 structs.PubKey, arg2 []byte, arg3 time.Duration) error
- type MockDatastoreMockRecorder
- func (mr *MockDatastoreMockRecorder) GetDelivered(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDatastoreMockRecorder) GetDeliveredBatch(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDatastoreMockRecorder) GetHeadersByBlockHash(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDatastoreMockRecorder) GetHeadersByBlockNum(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDatastoreMockRecorder) GetHeadersBySlot(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDatastoreMockRecorder) GetLatestHeaders(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDatastoreMockRecorder) GetPayload(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDatastoreMockRecorder) GetRegistration(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDatastoreMockRecorder) PutDelivered(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockDatastoreMockRecorder) PutPayload(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockDatastoreMockRecorder) PutRegistrationRaw(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- type MockRelay
- func (m *MockRelay) AttachMetrics(arg0 *metrics.Metrics)
- func (m *MockRelay) EXPECT() *MockRelayMockRecorder
- func (m *MockRelay) GetHeader(arg0 context.Context, arg1 structs.HeaderRequest) (*types.GetHeaderResponse, error)
- func (m *MockRelay) GetPayload(arg0 context.Context, arg1 *types.SignedBlindedBeaconBlock) (*types.GetPayloadResponse, error)
- func (m *MockRelay) GetValidators() structs.BuilderGetValidatorsResponseEntrySlice
- func (m *MockRelay) RegisterValidator(arg0 context.Context, arg1 []structs.SignedValidatorRegistration) error
- func (m *MockRelay) RegisterValidatorSingular(arg0 context.Context, arg1 structs.SignedValidatorRegistration) error
- func (m *MockRelay) SubmitBlock(arg0 context.Context, arg1 *types.BuilderSubmitBlockRequest) error
- type MockRelayMockRecorder
- func (mr *MockRelayMockRecorder) AttachMetrics(arg0 interface{}) *gomock.Call
- func (mr *MockRelayMockRecorder) GetHeader(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRelayMockRecorder) GetPayload(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRelayMockRecorder) GetValidators() *gomock.Call
- func (mr *MockRelayMockRecorder) RegisterValidator(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRelayMockRecorder) RegisterValidatorSingular(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRelayMockRecorder) SubmitBlock(arg0, arg1 interface{}) *gomock.Call
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) 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) 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) 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) 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) GetDelivered ¶
func (m *MockDatastore) GetDelivered(arg0 context.Context, arg1 structs.PayloadQuery) (structs.BidTraceWithTimestamp, error)
GetDelivered mocks base method
func (*MockDatastore) GetDeliveredBatch ¶
func (m *MockDatastore) GetDeliveredBatch(arg0 context.Context, arg1 []structs.PayloadQuery) ([]structs.BidTraceWithTimestamp, error)
GetDeliveredBatch mocks base method
func (*MockDatastore) GetHeadersByBlockHash ¶
func (m *MockDatastore) GetHeadersByBlockHash(arg0 context.Context, arg1 types.Hash) ([]structs.HeaderAndTrace, error)
GetHeadersByBlockHash mocks base method
func (*MockDatastore) GetHeadersByBlockNum ¶
func (m *MockDatastore) GetHeadersByBlockNum(arg0 context.Context, arg1 uint64) ([]structs.HeaderAndTrace, error)
GetHeadersByBlockNum mocks base method
func (*MockDatastore) GetHeadersBySlot ¶
func (m *MockDatastore) GetHeadersBySlot(arg0 context.Context, arg1 uint64) ([]structs.HeaderAndTrace, error)
GetHeadersBySlot mocks base method
func (*MockDatastore) GetLatestHeaders ¶
func (m *MockDatastore) GetLatestHeaders(arg0 context.Context, arg1 uint64) ([]structs.HeaderAndTrace, error)
GetLatestHeaders mocks base method
func (*MockDatastore) GetPayload ¶
func (m *MockDatastore) GetPayload(arg0 context.Context, arg1 structs.PayloadKey) (*structs.BlockBidAndTrace, error)
GetPayload mocks base method
func (*MockDatastore) GetRegistration ¶
func (m *MockDatastore) GetRegistration(arg0 context.Context, arg1 structs.PubKey) (types.SignedValidatorRegistration, error)
GetRegistration mocks base method
func (*MockDatastore) PutDelivered ¶
func (m *MockDatastore) PutDelivered(arg0 context.Context, arg1 structs.Slot, arg2 structs.DeliveredTrace, arg3 time.Duration) error
PutDelivered mocks base method
func (*MockDatastore) PutPayload ¶
func (m *MockDatastore) PutPayload(arg0 context.Context, arg1 structs.PayloadKey, arg2 *structs.BlockBidAndTrace, arg3 time.Duration) error
PutPayload mocks base method
type MockDatastoreMockRecorder ¶
type MockDatastoreMockRecorder struct {
// contains filtered or unexported fields
}
MockDatastoreMockRecorder is the mock recorder for MockDatastore
func (*MockDatastoreMockRecorder) GetDelivered ¶
func (mr *MockDatastoreMockRecorder) GetDelivered(arg0, arg1 interface{}) *gomock.Call
GetDelivered indicates an expected call of GetDelivered
func (*MockDatastoreMockRecorder) GetDeliveredBatch ¶
func (mr *MockDatastoreMockRecorder) GetDeliveredBatch(arg0, arg1 interface{}) *gomock.Call
GetDeliveredBatch indicates an expected call of GetDeliveredBatch
func (*MockDatastoreMockRecorder) GetHeadersByBlockHash ¶
func (mr *MockDatastoreMockRecorder) GetHeadersByBlockHash(arg0, arg1 interface{}) *gomock.Call
GetHeadersByBlockHash indicates an expected call of GetHeadersByBlockHash
func (*MockDatastoreMockRecorder) GetHeadersByBlockNum ¶
func (mr *MockDatastoreMockRecorder) GetHeadersByBlockNum(arg0, arg1 interface{}) *gomock.Call
GetHeadersByBlockNum indicates an expected call of GetHeadersByBlockNum
func (*MockDatastoreMockRecorder) GetHeadersBySlot ¶
func (mr *MockDatastoreMockRecorder) GetHeadersBySlot(arg0, arg1 interface{}) *gomock.Call
GetHeadersBySlot indicates an expected call of GetHeadersBySlot
func (*MockDatastoreMockRecorder) GetLatestHeaders ¶
func (mr *MockDatastoreMockRecorder) GetLatestHeaders(arg0, arg1 interface{}) *gomock.Call
GetLatestHeaders indicates an expected call of GetLatestHeaders
func (*MockDatastoreMockRecorder) GetPayload ¶
func (mr *MockDatastoreMockRecorder) GetPayload(arg0, arg1 interface{}) *gomock.Call
GetPayload indicates an expected call of GetPayload
func (*MockDatastoreMockRecorder) GetRegistration ¶
func (mr *MockDatastoreMockRecorder) GetRegistration(arg0, arg1 interface{}) *gomock.Call
GetRegistration indicates an expected call of GetRegistration
func (*MockDatastoreMockRecorder) PutDelivered ¶
func (mr *MockDatastoreMockRecorder) PutDelivered(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
PutDelivered indicates an expected call of PutDelivered
func (*MockDatastoreMockRecorder) PutPayload ¶
func (mr *MockDatastoreMockRecorder) PutPayload(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
PutPayload indicates an expected call of PutPayload
func (*MockDatastoreMockRecorder) PutRegistrationRaw ¶
func (mr *MockDatastoreMockRecorder) PutRegistrationRaw(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
PutRegistrationRaw indicates an expected call of PutRegistrationRaw
type MockRelay ¶
type MockRelay struct {
// contains filtered or unexported fields
}
MockRelay is a mock of Relay interface
func NewMockRelay ¶
func NewMockRelay(ctrl *gomock.Controller) *MockRelay
NewMockRelay creates a new mock instance
func (*MockRelay) AttachMetrics ¶
AttachMetrics mocks base method
func (*MockRelay) EXPECT ¶
func (m *MockRelay) EXPECT() *MockRelayMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockRelay) GetHeader ¶
func (m *MockRelay) GetHeader(arg0 context.Context, arg1 structs.HeaderRequest) (*types.GetHeaderResponse, error)
GetHeader mocks base method
func (*MockRelay) GetPayload ¶
func (m *MockRelay) GetPayload(arg0 context.Context, arg1 *types.SignedBlindedBeaconBlock) (*types.GetPayloadResponse, error)
GetPayload mocks base method
func (*MockRelay) GetValidators ¶
func (m *MockRelay) GetValidators() structs.BuilderGetValidatorsResponseEntrySlice
GetValidators mocks base method
func (*MockRelay) RegisterValidator ¶
func (m *MockRelay) RegisterValidator(arg0 context.Context, arg1 []structs.SignedValidatorRegistration) error
RegisterValidator mocks base method
func (*MockRelay) RegisterValidatorSingular ¶
func (m *MockRelay) RegisterValidatorSingular(arg0 context.Context, arg1 structs.SignedValidatorRegistration) error
RegisterValidatorSingular mocks base method
func (*MockRelay) SubmitBlock ¶
SubmitBlock mocks base method
type MockRelayMockRecorder ¶
type MockRelayMockRecorder struct {
// contains filtered or unexported fields
}
MockRelayMockRecorder is the mock recorder for MockRelay
func (*MockRelayMockRecorder) AttachMetrics ¶
func (mr *MockRelayMockRecorder) AttachMetrics(arg0 interface{}) *gomock.Call
AttachMetrics indicates an expected call of AttachMetrics
func (*MockRelayMockRecorder) GetHeader ¶
func (mr *MockRelayMockRecorder) GetHeader(arg0, arg1 interface{}) *gomock.Call
GetHeader indicates an expected call of GetHeader
func (*MockRelayMockRecorder) GetPayload ¶
func (mr *MockRelayMockRecorder) GetPayload(arg0, arg1 interface{}) *gomock.Call
GetPayload indicates an expected call of GetPayload
func (*MockRelayMockRecorder) GetValidators ¶
func (mr *MockRelayMockRecorder) GetValidators() *gomock.Call
GetValidators indicates an expected call of GetValidators
func (*MockRelayMockRecorder) RegisterValidator ¶
func (mr *MockRelayMockRecorder) RegisterValidator(arg0, arg1 interface{}) *gomock.Call
RegisterValidator indicates an expected call of RegisterValidator
func (*MockRelayMockRecorder) RegisterValidatorSingular ¶
func (mr *MockRelayMockRecorder) RegisterValidatorSingular(arg0, arg1 interface{}) *gomock.Call
RegisterValidatorSingular indicates an expected call of RegisterValidatorSingular
func (*MockRelayMockRecorder) SubmitBlock ¶
func (mr *MockRelayMockRecorder) SubmitBlock(arg0, arg1 interface{}) *gomock.Call
SubmitBlock indicates an expected call of SubmitBlock