Documentation
¶
Overview ¶
Code generated by mockery v1.0.0
Index ¶
- type Store
- func (_m *Store) BatchInsert(subs []*model.Subscription) ([]common.Address, error)
- func (_m *Store) BatchUpdateBlockNumber(blockNumber int64, addrs [][]byte) error
- func (_m *Store) Find(blockNumber int64) ([]*model.Subscription, error)
- func (_m *Store) FindByGroup(groupID int64, query *model.QueryParameters) ([]*model.Subscription, uint64, error)
- func (_m *Store) FindOldSubscriptions(addrs [][]byte) ([]*model.Subscription, error)
- func (_m *Store) FindTotalBalance(blockNumber int64, token common.Address, group int64) (*model.TotalBalance, error)
- func (_m *Store) InsertTotalBalance(data *model.TotalBalance) error
- func (_m *Store) ListOldSubscriptions(query *model.QueryParameters) ([]*model.Subscription, uint64, error)
- func (_m *Store) Reset(from int64, to int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
Store is an autogenerated mock type for the Store type
func (*Store) BatchInsert ¶
BatchInsert provides a mock function with given fields: subs
func (*Store) BatchUpdateBlockNumber ¶
BatchUpdateBlockNumber provides a mock function with given fields: blockNumber, addrs
func (*Store) Find ¶
func (_m *Store) Find(blockNumber int64) ([]*model.Subscription, error)
Find provides a mock function with given fields: blockNumber
func (*Store) FindByGroup ¶
func (_m *Store) FindByGroup(groupID int64, query *model.QueryParameters) ([]*model.Subscription, uint64, error)
FindByGroup provides a mock function with given fields: groupID, query
func (*Store) FindOldSubscriptions ¶ added in v0.2.1
func (_m *Store) FindOldSubscriptions(addrs [][]byte) ([]*model.Subscription, error)
FindOldSubscriptions provides a mock function with given fields: addrs
func (*Store) FindTotalBalance ¶
func (_m *Store) FindTotalBalance(blockNumber int64, token common.Address, group int64) (*model.TotalBalance, error)
FindTotalBalance provides a mock function with given fields: blockNumber, token, group
func (*Store) InsertTotalBalance ¶
func (_m *Store) InsertTotalBalance(data *model.TotalBalance) error
InsertTotalBalance provides a mock function with given fields: data
func (*Store) ListOldSubscriptions ¶ added in v0.2.7
func (_m *Store) ListOldSubscriptions(query *model.QueryParameters) ([]*model.Subscription, uint64, error)
ListOldSubscriptions provides a mock function with given fields: query