Versions in this module Expand all Collapse all v1 v1.999.0 Nov 17, 2022 Changes in this version + func CreatePathManager(arg ArgCreatePathManager) (*pathmanager.PathManager, error) + func CreatePathManagerFromSinglePathString(dbPathWithChainID string) (*pathmanager.PathManager, error) + func GetCacherFromConfig(cfg config.CacheConfig) storageUnit.CacheConfig + func GetDBFromConfig(cfg config.DBConfig) storageUnit.DBConfig + func NewBootstrapDataProvider(marshalizer marshal.Marshalizer) (*bootstrapDataProvider, error) + func NewStorageUnitOpenHandler(args ArgsNewOpenStorageUnits) (*openStorageUnits, error) + type ArgCreatePathManager struct + ChainID string + WorkingDir string + type ArgsNewOpenStorageUnits struct + BootstrapDataProvider BootstrapDataProviderHandler + DefaultEpochString string + DefaultShardString string + LatestStorageDataProvider storage.LatestStorageDataProviderHandler + 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 NodeTypeProviderHandler interface + GetType func() core.NodeType + IsInterfaceNil func() bool + SetType func(nodeType core.NodeType) + 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(args StorageServiceFactoryArgs) (*StorageServiceFactory, error) + func (psf *StorageServiceFactory) CreateForMeta() (dataRetriever.StorageService, error) + func (psf *StorageServiceFactory) CreateForShard() (dataRetriever.StorageService, error) + type StorageServiceFactoryArgs struct + Config config.Config + CreateTrieEpochRootHashStorer bool + CurrentEpoch uint32 + EpochStartNotifier storage.EpochStartNotifier + NodeTypeProvider NodeTypeProviderHandler + PathManager storage.PathManagerHandler + PrefsConfig config.PreferencesConfig + ShardCoordinator storage.ShardCoordinator