Documentation ¶
Index ¶
Constants ¶
View Source
const ( MIGRATION_TABLE_NAME = "chain_stats_schema_migrations" MIGRATION_DIRECOTRY = "projection/chainstats/migrations" )
View Source
const GENESIS_BLOCK_TIME = "genesis_block_time"
View Source
const TOTAL_BLOCK_COUNT = "total_block_count"
View Source
const TOTAL_BLOCK_TIME = "total_block_time"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainStats ¶
type ChainStats struct { *rdbprojectionbase.Base // contains filtered or unexported fields }
func NewChainStats ¶
func NewChainStats( logger applogger.Logger, rdbConn rdb.Conn, config *appprojection.Config, ) *ChainStats
func (*ChainStats) GetEventsToListen ¶
func (_ *ChainStats) GetEventsToListen() []string
func (*ChainStats) HandleEvents ¶
func (projection *ChainStats) HandleEvents(height int64, events []event_entity.Event) error
func (*ChainStats) OnInit ¶
func (projection *ChainStats) OnInit() error
Click to show internal directories.
Click to hide internal directories.