Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database interface { GetBlock(hash []byte, blockNumber int64) *types.Block GetBlockHash(blockNumber int64) []byte GetBlockReceipts(blockHash []byte, blockNumber int64) types.Receipts GetHeadBlockNumber() int64 }
func CreateDatabase ¶
func CreateDatabase(config DatabaseConfig) (Database, error)
type DatabaseConfig ¶
type DatabaseConfig struct { Type DatabaseType Path string }
func CreateDatabaseConfig ¶
func CreateDatabaseConfig(dbType DatabaseType, path string) DatabaseConfig
Click to show internal directories.
Click to hide internal directories.