Versions in this module Expand all Collapse all v3 v3.0.1 Dec 28, 2023 v3.0.0 Dec 23, 2022 Changes in this version + const CommonWriteBlockType + const DbconfigProviderBadgerdb + const DbconfigProviderLeveldb + const DbconfigProviderMemdb + const DbconfigProviderSql + const DbconfigProviderSqlKV + const DbconfigProviderTikvdb + const QuickWriteBlockType + const SqldbconfigSqldbtypeMysql + const SqldbconfigSqldbtypeSqlite + type BigFilterConfig struct + FpRate float64 + Pass string + RedisHosts string + TxCapacity uint + type BlockFileConfig struct + ArchiveFileSystem string + OnlineFileSystem string + type CacheConfig struct + CleanWindow time.Duration + HardMaxCacheSize int + LifeWindow time.Duration + MaxEntrySize int + Provider string + type DbConfig struct + BadgerDbConfig map[string]interface{} + LevelDbConfig map[string]interface{} + Provider string + SqlDbConfig map[string]interface{} + TikvDbConfig map[string]interface{} + func (c *DbConfig) GetDbConfig() map[string]interface{} + func (dbc *DbConfig) IsKVDB() bool + func (dbc *DbConfig) IsSqlDB() bool + type HistoryDbConfig struct + DisableAccountHistory bool + DisableContractHistory bool + DisableKeyHistory bool + func NewHistoryDbConfig(config *DbConfig) *HistoryDbConfig + type StorageConfig struct + Async bool + BigFilter *BigFilterConfig + BlockDbConfig *DbConfig + BlockFileConfig *BlockFileConfig + BlockWriteBufferSize int + BloomFilterBits int + ConfigVersion *StorageConfigVersion + ContractEventDbConfig *DbConfig + DbPrefix string + DisableBlockFileDb bool + DisableContractEventDB bool + DisableHistoryDB bool + DisableLogDBMmap bool + DisableResultDB bool + DisableStateCache bool + EnableBigFilter bool + EnableRWC bool + EncryptKey string + Encryptor string + HistoryDbConfig *HistoryDbConfig + LogDBSegmentAsync bool + LogDBSegmentSize int + ResultDbConfig *DbConfig + RollingWindowCacheCapacity uint64 + StateCache *CacheConfig + StateDbConfig *DbConfig + StorePath string + TxExistDbConfig *DbConfig + UnArchiveBlockHeight uint64 + WriteBatchSize uint64 + WriteBlockType int + WriteBufferSize int + func NewStorageConfig(cfg map[string]interface{}) (*StorageConfig, error) + func (config *StorageConfig) GetActiveDBCount() int + func (config *StorageConfig) GetBlockDbConfig() *DbConfig + func (config *StorageConfig) GetContractEventDbConfig() *DbConfig + func (config *StorageConfig) GetDefaultDBConfig() *DbConfig + func (config *StorageConfig) GetHistoryDbConfig() *HistoryDbConfig + func (config *StorageConfig) GetResultDbConfig() *DbConfig + func (config *StorageConfig) GetStateDbConfig() *DbConfig + func (config *StorageConfig) GetTxExistDbConfig() *DbConfig + type StorageConfigVersion struct + Major int32 + Minor int32