Versions in this module Expand all Collapse all v3 v3.0.1 Dec 26, 2023 Changes in this version type StorageConfig + ArchiveCheckInterval uint + ReadBFDBTimeOut int64 + RestoreInterval uint 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 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 + BlockStoreTmpPath string + BlockWriteBufferSize int + BloomFilterBits int + 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 + SlowLog int64 + 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 Other modules containing this package chainmaker.org/chainmaker/store/v2