Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: github.com/Nuffle-Labs/nffl/aggregator/database (interfaces: Databaser)
Generated by this command:
mockgen -destination=./mocks/database.go -package=mocks github.com/Nuffle-Labs/nffl/aggregator/database Databaser
Package mocks is a generated GoMock package.
Index ¶
- type MockDatabaser
- func (m *MockDatabaser) Close() error
- func (m *MockDatabaser) DB() *gorm.DB
- func (m *MockDatabaser) EXPECT() *MockDatabaserMockRecorder
- func (m *MockDatabaser) EnableMetrics(arg0 *prometheus.Registry) error
- func (m *MockDatabaser) FetchCheckpointMessages(arg0, arg1 uint64) (*messages.CheckpointMessages, error)
- func (m *MockDatabaser) FetchOperatorSetUpdate(arg0 uint64) (*messages.OperatorSetUpdateMessage, error)
- func (m *MockDatabaser) FetchOperatorSetUpdateAggregation(arg0 uint64) (*messages.MessageBlsAggregation, error)
- func (m *MockDatabaser) FetchStateRootUpdate(arg0 uint32, arg1 uint64) (*messages.StateRootUpdateMessage, error)
- func (m *MockDatabaser) FetchStateRootUpdateAggregation(arg0 uint32, arg1 uint64) (*messages.MessageBlsAggregation, error)
- func (m *MockDatabaser) StoreOperatorSetUpdate(arg0 messages.OperatorSetUpdateMessage) (*models.OperatorSetUpdateMessage, error)
- func (m *MockDatabaser) StoreOperatorSetUpdateAggregation(arg0 *models.OperatorSetUpdateMessage, arg1 messages.MessageBlsAggregation) error
- func (m *MockDatabaser) StoreStateRootUpdate(arg0 messages.StateRootUpdateMessage) (*models.StateRootUpdateMessage, error)
- func (m *MockDatabaser) StoreStateRootUpdateAggregation(arg0 *models.StateRootUpdateMessage, arg1 messages.MessageBlsAggregation) error
- type MockDatabaserMockRecorder
- func (mr *MockDatabaserMockRecorder) Close() *gomock.Call
- func (mr *MockDatabaserMockRecorder) DB() *gomock.Call
- func (mr *MockDatabaserMockRecorder) EnableMetrics(arg0 any) *gomock.Call
- func (mr *MockDatabaserMockRecorder) FetchCheckpointMessages(arg0, arg1 any) *gomock.Call
- func (mr *MockDatabaserMockRecorder) FetchOperatorSetUpdate(arg0 any) *gomock.Call
- func (mr *MockDatabaserMockRecorder) FetchOperatorSetUpdateAggregation(arg0 any) *gomock.Call
- func (mr *MockDatabaserMockRecorder) FetchStateRootUpdate(arg0, arg1 any) *gomock.Call
- func (mr *MockDatabaserMockRecorder) FetchStateRootUpdateAggregation(arg0, arg1 any) *gomock.Call
- func (mr *MockDatabaserMockRecorder) StoreOperatorSetUpdate(arg0 any) *gomock.Call
- func (mr *MockDatabaserMockRecorder) StoreOperatorSetUpdateAggregation(arg0, arg1 any) *gomock.Call
- func (mr *MockDatabaserMockRecorder) StoreStateRootUpdate(arg0 any) *gomock.Call
- func (mr *MockDatabaserMockRecorder) StoreStateRootUpdateAggregation(arg0, arg1 any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDatabaser ¶
type MockDatabaser struct {
// contains filtered or unexported fields
}
MockDatabaser is a mock of Databaser interface.
func NewMockDatabaser ¶
func NewMockDatabaser(ctrl *gomock.Controller) *MockDatabaser
NewMockDatabaser creates a new mock instance.
func (*MockDatabaser) EXPECT ¶
func (m *MockDatabaser) EXPECT() *MockDatabaserMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDatabaser) EnableMetrics ¶
func (m *MockDatabaser) EnableMetrics(arg0 *prometheus.Registry) error
EnableMetrics mocks base method.
func (*MockDatabaser) FetchCheckpointMessages ¶
func (m *MockDatabaser) FetchCheckpointMessages(arg0, arg1 uint64) (*messages.CheckpointMessages, error)
FetchCheckpointMessages mocks base method.
func (*MockDatabaser) FetchOperatorSetUpdate ¶
func (m *MockDatabaser) FetchOperatorSetUpdate(arg0 uint64) (*messages.OperatorSetUpdateMessage, error)
FetchOperatorSetUpdate mocks base method.
func (*MockDatabaser) FetchOperatorSetUpdateAggregation ¶
func (m *MockDatabaser) FetchOperatorSetUpdateAggregation(arg0 uint64) (*messages.MessageBlsAggregation, error)
FetchOperatorSetUpdateAggregation mocks base method.
func (*MockDatabaser) FetchStateRootUpdate ¶
func (m *MockDatabaser) FetchStateRootUpdate(arg0 uint32, arg1 uint64) (*messages.StateRootUpdateMessage, error)
FetchStateRootUpdate mocks base method.
func (*MockDatabaser) FetchStateRootUpdateAggregation ¶
func (m *MockDatabaser) FetchStateRootUpdateAggregation(arg0 uint32, arg1 uint64) (*messages.MessageBlsAggregation, error)
FetchStateRootUpdateAggregation mocks base method.
func (*MockDatabaser) StoreOperatorSetUpdate ¶
func (m *MockDatabaser) StoreOperatorSetUpdate(arg0 messages.OperatorSetUpdateMessage) (*models.OperatorSetUpdateMessage, error)
StoreOperatorSetUpdate mocks base method.
func (*MockDatabaser) StoreOperatorSetUpdateAggregation ¶
func (m *MockDatabaser) StoreOperatorSetUpdateAggregation(arg0 *models.OperatorSetUpdateMessage, arg1 messages.MessageBlsAggregation) error
StoreOperatorSetUpdateAggregation mocks base method.
func (*MockDatabaser) StoreStateRootUpdate ¶
func (m *MockDatabaser) StoreStateRootUpdate(arg0 messages.StateRootUpdateMessage) (*models.StateRootUpdateMessage, error)
StoreStateRootUpdate mocks base method.
func (*MockDatabaser) StoreStateRootUpdateAggregation ¶
func (m *MockDatabaser) StoreStateRootUpdateAggregation(arg0 *models.StateRootUpdateMessage, arg1 messages.MessageBlsAggregation) error
StoreStateRootUpdateAggregation mocks base method.
type MockDatabaserMockRecorder ¶
type MockDatabaserMockRecorder struct {
// contains filtered or unexported fields
}
MockDatabaserMockRecorder is the mock recorder for MockDatabaser.
func (*MockDatabaserMockRecorder) Close ¶
func (mr *MockDatabaserMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockDatabaserMockRecorder) DB ¶
func (mr *MockDatabaserMockRecorder) DB() *gomock.Call
DB indicates an expected call of DB.
func (*MockDatabaserMockRecorder) EnableMetrics ¶
func (mr *MockDatabaserMockRecorder) EnableMetrics(arg0 any) *gomock.Call
EnableMetrics indicates an expected call of EnableMetrics.
func (*MockDatabaserMockRecorder) FetchCheckpointMessages ¶
func (mr *MockDatabaserMockRecorder) FetchCheckpointMessages(arg0, arg1 any) *gomock.Call
FetchCheckpointMessages indicates an expected call of FetchCheckpointMessages.
func (*MockDatabaserMockRecorder) FetchOperatorSetUpdate ¶
func (mr *MockDatabaserMockRecorder) FetchOperatorSetUpdate(arg0 any) *gomock.Call
FetchOperatorSetUpdate indicates an expected call of FetchOperatorSetUpdate.
func (*MockDatabaserMockRecorder) FetchOperatorSetUpdateAggregation ¶
func (mr *MockDatabaserMockRecorder) FetchOperatorSetUpdateAggregation(arg0 any) *gomock.Call
FetchOperatorSetUpdateAggregation indicates an expected call of FetchOperatorSetUpdateAggregation.
func (*MockDatabaserMockRecorder) FetchStateRootUpdate ¶
func (mr *MockDatabaserMockRecorder) FetchStateRootUpdate(arg0, arg1 any) *gomock.Call
FetchStateRootUpdate indicates an expected call of FetchStateRootUpdate.
func (*MockDatabaserMockRecorder) FetchStateRootUpdateAggregation ¶
func (mr *MockDatabaserMockRecorder) FetchStateRootUpdateAggregation(arg0, arg1 any) *gomock.Call
FetchStateRootUpdateAggregation indicates an expected call of FetchStateRootUpdateAggregation.
func (*MockDatabaserMockRecorder) StoreOperatorSetUpdate ¶
func (mr *MockDatabaserMockRecorder) StoreOperatorSetUpdate(arg0 any) *gomock.Call
StoreOperatorSetUpdate indicates an expected call of StoreOperatorSetUpdate.
func (*MockDatabaserMockRecorder) StoreOperatorSetUpdateAggregation ¶
func (mr *MockDatabaserMockRecorder) StoreOperatorSetUpdateAggregation(arg0, arg1 any) *gomock.Call
StoreOperatorSetUpdateAggregation indicates an expected call of StoreOperatorSetUpdateAggregation.
func (*MockDatabaserMockRecorder) StoreStateRootUpdate ¶
func (mr *MockDatabaserMockRecorder) StoreStateRootUpdate(arg0 any) *gomock.Call
StoreStateRootUpdate indicates an expected call of StoreStateRootUpdate.
func (*MockDatabaserMockRecorder) StoreStateRootUpdateAggregation ¶
func (mr *MockDatabaserMockRecorder) StoreStateRootUpdateAggregation(arg0, arg1 any) *gomock.Call
StoreStateRootUpdateAggregation indicates an expected call of StoreStateRootUpdateAggregation.