Documentation ¶
Index ¶
- func CheckPathRWMod(path string) error
- func CompactRange(dbHandle protocol.DBHandle, logger protocol.Logger)
- func ConstructDBIndexInfo(blkIndex *storePb.StoreInfo, offset, byteLen uint64) []byte
- func CreatePath(path string) error
- func DecodeValueToIndex(blockIndexByte []byte) (*storePb.StoreInfo, error)
- func ElapsedMillisSeconds(start time.Time) int64
- func PathExists(path string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPathRWMod ¶
CheckPathRWMod 判断path是否存在且有写权限 @Description: @param path @return bool @return error
func CompactRange ¶
func CompactRange(dbHandle protocol.DBHandle, logger protocol.Logger)
CompactRange 做一次compact @Description: @param dbHandle @param logger
func ConstructDBIndexInfo ¶
ConstructDBIndexInfo 索引序列化 @Description: @param blkIndex @param offset @param byteLen @return []byte
func CreatePath ¶ added in v3.0.1
CreatePath add next time @Description: @param path @return error
func DecodeValueToIndex ¶
DecodeValueToIndex 索引反序列化 @Description: @param blockIndexByte @return *storePb.StoreInfo @return error
func ElapsedMillisSeconds ¶
ElapsedMillisSeconds 计算时间差 @Description: @param start @return int64
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.