Versions in this module Expand all Collapse all v0 v0.0.1 Nov 7, 2024 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 NewDBConfigHandler(config config.DBConfig) *dbConfigHandler + 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(dbConfigHandler storage.DBConfigHandler) (*PersisterFactory, error) + 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 epochStart.EpochStartNotifier + ManagedPeersHolder storage.ManagedPeersHolder + NodeProcessingMode common.NodeProcessingMode + NodeTypeProvider NodeTypeProviderHandler + PathManager storage.PathManagerHandler + PrefsConfig config.PreferencesConfig + RepopulateTokensSupplies bool + ShardCoordinator storage.ShardCoordinator + StateStatsHandler common.StateStatisticsHandler + StorageType StorageServiceType + type StorageServiceType string + const BootstrapStorageService + const ImportDBStorageService + const ProcessStorageService