Documentation ¶
Overview ¶
Package api provides the api for the explorer service.
Index ¶
- func HandleJSONAmountStat(r *gqlClient.GetAmountStatistic) *model.ValueResult
- func HandleJSONDailyStat(r *gqlClient.GetDailyStatisticsByChain) []*model.DateResultByChain
- func InitDB(ctx context.Context, address string, readOnly bool, handler metrics.Handler) (db.ConsumerDB, error)
- func RehydrateCache(parentCtx context.Context, client *gqlClient.Client, service cache.Service, ...) (err error)
- func Start(ctx context.Context, cfg Config, handler metrics.Handler) error
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleJSONAmountStat ¶ added in v0.0.81
func HandleJSONAmountStat(r *gqlClient.GetAmountStatistic) *model.ValueResult
HandleJSONAmountStat converts the gqlClient.GetAmountStatistic to model.ValueResul.
func HandleJSONDailyStat ¶ added in v0.0.81
func HandleJSONDailyStat(r *gqlClient.GetDailyStatisticsByChain) []*model.DateResultByChain
HandleJSONDailyStat converts the gqlClient.GetDailyStatisticsByChain to the []*model.DateResultByChain type.
func InitDB ¶
func InitDB(ctx context.Context, address string, readOnly bool, handler metrics.Handler) (db.ConsumerDB, error)
InitDB initializes a database given a database type and path.
Types ¶
Click to show internal directories.
Click to hide internal directories.