Versions in this module Expand all Collapse all v6 v6.0.1 Jun 24, 2024 v6.0.0 Jun 20, 2024 Changes in this version + type Builder func(ctx *Context) (Database, error) + type Context struct + Cfg databaseconfig.Config + Logger logging.Logger + func NewContext(cfg databaseconfig.Config, logger logging.Logger) *Context + type Database interface + Close func() + GetLastBlockHeight func() (int64, error) + GetMissingHeights func(startHeight, endHeight int64) []int64 + GetTotalBlocks func() int64 + HasBlock func(height int64) (bool, error) + HasValidator func(address string) (bool, error) + SaveBlock func(block *types.Block) error + SaveCommitSignatures func(signatures []*types.CommitSig) error + SaveMessage func(height int64, txHash string, msg types.Message, addresses []string) error + SaveTx func(tx *types.Transaction) error + SaveValidators func(validators []*types.Validator) error + type Migrator interface + Migrate func() error + type PruningDb interface + GetLastPruned func() (int64, error) + Prune func(height int64) error + StoreLastPruned func(height int64) error Other modules containing this package github.com/forbole/juno/v2 github.com/forbole/juno/v3 github.com/forbole/juno/v4 github.com/forbole/juno/v5