Documentation ¶
Index ¶
- type ORM
- func (_m *ORM) DeleteExpired(ctx context.Context, limit uint, utcNow time.Time) (int64, error)
- func (_m *ORM) Get(ctx context.Context, address *big.Big, slotId uint) (*s4.Row, error)
- func (_m *ORM) GetSnapshot(ctx context.Context, addressRange *s4.AddressRange) ([]*s4.SnapshotRow, error)
- func (_m *ORM) GetUnconfirmedRows(ctx context.Context, limit uint) ([]*s4.Row, error)
- func (_m *ORM) Update(ctx context.Context, row *s4.Row) error
- type Storage
- func (_m *Storage) Constraints() s4.Constraints
- func (_m *Storage) Get(ctx context.Context, key *s4.Key) (*s4.Record, *s4.Metadata, error)
- func (_m *Storage) List(ctx context.Context, address common.Address) ([]*s4.SnapshotRow, error)
- func (_m *Storage) Put(ctx context.Context, key *s4.Key, record *s4.Record, signature []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ORM ¶
ORM is an autogenerated mock type for the ORM type
func NewORM ¶
NewORM creates a new instance of ORM. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ORM) DeleteExpired ¶
DeleteExpired provides a mock function with given fields: ctx, limit, utcNow
func (*ORM) GetSnapshot ¶
func (_m *ORM) GetSnapshot(ctx context.Context, addressRange *s4.AddressRange) ([]*s4.SnapshotRow, error)
GetSnapshot provides a mock function with given fields: ctx, addressRange
func (*ORM) GetUnconfirmedRows ¶
GetUnconfirmedRows provides a mock function with given fields: ctx, limit
type Storage ¶
Storage is an autogenerated mock type for the Storage type
func NewStorage ¶
NewStorage creates a new instance of Storage. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Storage) Constraints ¶
func (_m *Storage) Constraints() s4.Constraints
Constraints provides a mock function with given fields: