Documentation ¶
Index ¶
- type ConsumerDB
- func (_m *ConsumerDB) GetAddressRanking(ctx context.Context, query string) ([]*model.AddressRanking, error)
- func (_m *ConsumerDB) GetBridgeEvent(ctx context.Context, query string) (*sql.BridgeEvent, error)
- func (_m *ConsumerDB) GetBridgeEvents(ctx context.Context, query string) ([]sql.BridgeEvent, error)
- func (_m *ConsumerDB) GetDateResults(ctx context.Context, query string) ([]*model.DateResult, error)
- func (_m *ConsumerDB) GetFloat64(ctx context.Context, query string) (float64, error)
- func (_m *ConsumerDB) GetStringArray(ctx context.Context, query string) ([]string, error)
- func (_m *ConsumerDB) GetTokenCounts(ctx context.Context, query string) ([]*model.TokenCountResult, error)
- func (_m *ConsumerDB) GetTxCounts(ctx context.Context, query string) ([]*model.TransactionCountResult, error)
- func (_m *ConsumerDB) GetUint64(ctx context.Context, query string) (uint64, error)
- func (_m *ConsumerDB) PartialInfosFromIdentifiers(ctx context.Context, query string) ([]*model.PartialInfo, error)
- func (_m *ConsumerDB) PartialInfosFromIdentifiersByChain(ctx context.Context, query string) (map[int]*model.PartialInfo, error)
- func (_m *ConsumerDB) StoreEvent(ctx context.Context, event interface{}) error
- func (_m *ConsumerDB) StoreEvents(ctx context.Context, events []interface{}) error
- func (_m *ConsumerDB) StoreLastBlock(ctx context.Context, chainID uint32, blockNumber uint64, ...) error
- func (_m *ConsumerDB) UNSAFE_DB() *gorm.DB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsumerDB ¶
ConsumerDB is an autogenerated mock type for the ConsumerDB type
func NewConsumerDB ¶
func NewConsumerDB(t mockConstructorTestingTNewConsumerDB) *ConsumerDB
NewConsumerDB creates a new instance of ConsumerDB. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ConsumerDB) GetAddressRanking ¶ added in v0.0.15
func (_m *ConsumerDB) GetAddressRanking(ctx context.Context, query string) ([]*model.AddressRanking, error)
GetAddressRanking provides a mock function with given fields: ctx, query
func (*ConsumerDB) GetBridgeEvent ¶ added in v0.0.15
func (_m *ConsumerDB) GetBridgeEvent(ctx context.Context, query string) (*sql.BridgeEvent, error)
GetBridgeEvent provides a mock function with given fields: ctx, query
func (*ConsumerDB) GetBridgeEvents ¶ added in v0.0.25
func (_m *ConsumerDB) GetBridgeEvents(ctx context.Context, query string) ([]sql.BridgeEvent, error)
GetBridgeEvents provides a mock function with given fields: ctx, query
func (*ConsumerDB) GetDateResults ¶ added in v0.0.15
func (_m *ConsumerDB) GetDateResults(ctx context.Context, query string) ([]*model.DateResult, error)
GetDateResults provides a mock function with given fields: ctx, query
func (*ConsumerDB) GetFloat64 ¶ added in v0.0.15
GetFloat64 provides a mock function with given fields: ctx, query
func (*ConsumerDB) GetStringArray ¶ added in v0.0.15
GetStringArray provides a mock function with given fields: ctx, query
func (*ConsumerDB) GetTokenCounts ¶ added in v0.0.25
func (_m *ConsumerDB) GetTokenCounts(ctx context.Context, query string) ([]*model.TokenCountResult, error)
GetTokenCounts provides a mock function with given fields: ctx, query
func (*ConsumerDB) GetTxCounts ¶ added in v0.0.25
func (_m *ConsumerDB) GetTxCounts(ctx context.Context, query string) ([]*model.TransactionCountResult, error)
GetTxCounts provides a mock function with given fields: ctx, query
func (*ConsumerDB) GetUint64 ¶ added in v0.0.15
GetUint64 provides a mock function with given fields: ctx, query
func (*ConsumerDB) PartialInfosFromIdentifiers ¶ added in v0.0.9
func (_m *ConsumerDB) PartialInfosFromIdentifiers(ctx context.Context, query string) ([]*model.PartialInfo, error)
PartialInfosFromIdentifiers provides a mock function with given fields: ctx, query
func (*ConsumerDB) PartialInfosFromIdentifiersByChain ¶ added in v0.0.25
func (_m *ConsumerDB) PartialInfosFromIdentifiersByChain(ctx context.Context, query string) (map[int]*model.PartialInfo, error)
PartialInfosFromIdentifiersByChain provides a mock function with given fields: ctx, query
func (*ConsumerDB) StoreEvent ¶
func (_m *ConsumerDB) StoreEvent(ctx context.Context, event interface{}) error
StoreEvent provides a mock function with given fields: ctx, event
func (*ConsumerDB) StoreEvents ¶ added in v0.0.31
func (_m *ConsumerDB) StoreEvents(ctx context.Context, events []interface{}) error
StoreEvents provides a mock function with given fields: ctx, events
func (*ConsumerDB) StoreLastBlock ¶ added in v0.0.11
func (_m *ConsumerDB) StoreLastBlock(ctx context.Context, chainID uint32, blockNumber uint64, contractAddress string) error
StoreLastBlock provides a mock function with given fields: ctx, chainID, blockNumber, contractAddress
func (*ConsumerDB) UNSAFE_DB ¶ added in v0.0.9
func (_m *ConsumerDB) UNSAFE_DB() *gorm.DB
UNSAFE_DB provides a mock function with given fields: