Versions in this module Expand all Collapse all v3 v3.0.1 Dec 28, 2023 Changes in this version type MetaDataDB + func (m *MetaDataDB) GetAbsolutePathByFileName(fileName string) (string, error) + func (m *MetaDataDB) GetHotColdDataSeparationMaxHeight() (uint64, error) v3.0.0 Dec 23, 2022 Changes in this version + const BUFFERSIZE + const ReserveSpaceSize + var ErrOnlineFSSpaceNotEnough = errors.New("online FS disk full error") + func CheckDifferent(arrA, arrB []string) (int, []string) + func CheckDirIfNotExist(path string) error + func CheckRepeated(arr []string) bool + func GenerateUniqueID() string + func GetFileSize(filePath string) (int64, error) + func NewCrcFile(c CRC, fileName string) error + func NewMetaDataDB(config conf.StorageConfig, chainID string, dbHandle protocol.DBHandle, ...) (meta.MetaData, error) + type CRC uint32 + func NewCRC(b []byte) CRC + func (c CRC) Update(b []byte) CRC + func (c CRC) Value() uint32 + type MetaDataDB struct + func (m *MetaDataDB) AbsolutePath(fileName string, fileSystem string) string + func (m *MetaDataDB) CreateNewFile(fileName string, fileSystem string, startIndex uint64) error + func (m *MetaDataDB) DoArchive(startHeight uint64, endHeight uint64) (string, error) + func (m *MetaDataDB) DoHotColdDataSeparation(startHeight uint64, endHeight uint64) (string, error) + func (m *MetaDataDB) FSBalance(fileSystemGroup []string) (string, uint64, error) + func (m *MetaDataDB) Get(index uint64) (storePb.MetaFileInfo, error) + func (m *MetaDataDB) GetArchiveJobByID(jobID string) (storePb.ArchiveJob, error) + func (m *MetaDataDB) GetChainID() string + func (m *MetaDataDB) GetFileInfoByFileName(fileName string) (storePb.MetaFileInfo, error) + func (m *MetaDataDB) GetFileInfoByHeight(index uint64) (string, storePb.MetaFileInfo, bool, error) + func (m *MetaDataDB) GetLastFileInfo() (string, storePb.MetaFileInfo, bool, error) + func (m *MetaDataDB) GetMetaFS() (storePb.MetaFileSystem, error) + func (m *MetaDataDB) GetVersionFromDB() (*storePb.MetaMultVersions, error) + func (m *MetaDataDB) IsArchive(fileName string) (bool, error) + func (m *MetaDataDB) ReadArchiveFileDataByOffset(fileName string, b []byte, offset int64) (int, error) + func (m *MetaDataDB) SetFileEndHeight(fileName string, endHeight uint64) error