Documentation ¶
Index ¶
- type ORM
- func (_m *ORM) DeleteExpired(limit uint, utcNow time.Time, qopts ...pg.QOpt) (int64, error)
- func (_m *ORM) Get(address *utils.Big, slotId uint, qopts ...pg.QOpt) (*s4.Row, error)
- func (_m *ORM) GetSnapshot(addressRange *s4.AddressRange, qopts ...pg.QOpt) ([]*s4.SnapshotRow, error)
- func (_m *ORM) GetUnconfirmedRows(limit uint, qopts ...pg.QOpt) ([]*s4.Row, error)
- func (_m *ORM) Update(row *s4.Row, qopts ...pg.QOpt) 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: limit, utcNow, qopts
func (*ORM) GetSnapshot ¶
func (_m *ORM) GetSnapshot(addressRange *s4.AddressRange, qopts ...pg.QOpt) ([]*s4.SnapshotRow, error)
GetSnapshot provides a mock function with given fields: addressRange, qopts
func (*ORM) GetUnconfirmedRows ¶
GetUnconfirmedRows provides a mock function with given fields: limit, qopts
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: