Versions in this module Expand all Collapse all v1 v1.1.66 Jun 17, 2021 v1.1.65 Jun 17, 2021 Changes in this version + func GetBloomFromConfig(cfg config.BloomFilterConfig) storageUnit.BloomConfig + func GetCacherFromConfig(cfg config.CacheConfig) storageUnit.CacheConfig + func GetDBFromConfig(cfg config.DBConfig) storageUnit.DBConfig + func NewBootstrapDataProvider(marshalizer marshal.Marshalizer) (*bootstrapDataProvider, error) + func NewDirectoryReader() *directoryReader + func NewStorageUnitOpenHandler(args ArgsNewOpenStorageUnits) (*openStorageUnits, error) + type ArgsNewOpenStorageUnits struct + BootstrapDataProvider BootstrapDataProviderHandler + ChainID string + DefaultDBPath string + DefaultEpochString string + DefaultShardString string + GeneralConfig config.Config + LatestStorageDataProvider storage.LatestStorageDataProviderHandler + Marshalizer marshal.Marshalizer + WorkingDir string + type BootstrapDataProviderHandler interface + GetStorer func(storer storage.Storer) (process.BootStorer, error) + IsInterfaceNil func() bool + LoadForPath func(persisterFactory storage.PersisterFactory, path string) (*bootstrapStorage.BootstrapData, storage.Storer, error) + type PersisterFactory struct + func NewPersisterFactory(config config.DBConfig) *PersisterFactory + func (pf *PersisterFactory) Create(path string) (storage.Persister, error) + func (pf *PersisterFactory) CreateDisabled() storage.Persister + func (pf *PersisterFactory) IsInterfaceNil() bool + type StorageServiceFactory struct + func NewStorageServiceFactory(config *config.Config, shardCoordinator storage.ShardCoordinator, ...) (*StorageServiceFactory, error) + func (psf *StorageServiceFactory) CreateForMeta() (dataRetriever.StorageService, error) + func (psf *StorageServiceFactory) CreateForShard() (dataRetriever.StorageService, error)