Documentation
¶
Index ¶
- func AddRootDir(path string) error
- func CloseDB()
- func Delete(key string) error
- func DeleteRootDir(path string)
- func GetAllSyncMetadataAmongRoot() ([]*types.SyncMetadata, error)
- func GetAllSyncMetadataInRoot(rootpath string) ([]*types.SyncMetadata, error)
- func GetBeforePathWithAfterPath(afterPath string) string
- func GetRootDir(path string) types.RootDir
- func GetRootDirList() []types.RootDir
- func GetSyncMetadata(path string) types.SyncMetadata
- func GetUUID() string
- func IsSyncMetadataExisted(path string) bool
- func OpenDB()
- func SplitBeforeAfterRoot(path string) (string, string)
- func Update(key string, value []byte) error
- func UpdateRootdirToRegistered(path string) error
- func View(key string) ([]byte, error)
- type CRUD
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddRootDir ¶
func DeleteRootDir ¶
func DeleteRootDir(path string)
func GetAllSyncMetadataAmongRoot ¶
func GetAllSyncMetadataAmongRoot() ([]*types.SyncMetadata, error)
Get All SyncMetadata in all rootpath e.g. GetAllSyncMetadataAmongRoot()
func GetAllSyncMetadataInRoot ¶
func GetAllSyncMetadataInRoot(rootpath string) ([]*types.SyncMetadata, error)
Get All SyncMetadata in certain rootpath e.g. GetAllSyncMetadataInRoot("/home/username/rootdir")
func GetRootDir ¶
func GetSyncMetadata ¶
func GetSyncMetadata(path string) types.SyncMetadata
TODO NIL 반환 , 즉 아래 두개 함수를 합쳐야함
func IsSyncMetadataExisted ¶
func SplitBeforeAfterRoot ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.