Documentation
¶
Index ¶
- func ClearBlocksIAL()
- func ClearDocsIAL()
- func ClearTreeCache()
- func ExistAsset(path string) (ret bool)
- func FilterAssets(filter func(path string, asset *Asset) bool) (ret map[string]*Asset)
- func GetBlockIAL(id string) (ret map[string]string)
- func GetDocIAL(p string) (ret map[string]string)
- func GetTreeData(rootID string) (raw []byte, ok bool)
- func IterateAssets(fn func(path string, asset *Asset) bool)
- func LoadAssets()
- func PutBlockIAL(id string, ial map[string]string)
- func PutDocIAL(p string, ial map[string]string)
- func RemoveAsset(path string)
- func RemoveAssetHash(hash string)
- func RemoveBlockIAL(id string)
- func RemoveDocIAL(p string)
- func RemoveTreeData(rootID string)
- func SetAssetHash(hash, path string)
- func SetTreeData(rootID string, raw []byte)
- type Asset
- type AssetHash
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearBlocksIAL ¶
func ClearBlocksIAL()
func ClearDocsIAL ¶
func ClearDocsIAL()
func ClearTreeCache ¶
func ClearTreeCache()
func ExistAsset ¶
func FilterAssets ¶
FilterAssets 根据过滤函数返回符合条件的资源
func GetBlockIAL ¶
func GetTreeData ¶
func IterateAssets ¶
IterateAssets 遍历所有资源,适合只读场景
func LoadAssets ¶
func LoadAssets()
func PutBlockIAL ¶
func RemoveAsset ¶
func RemoveAsset(path string)
func RemoveAssetHash ¶
func RemoveAssetHash(hash string)
func RemoveBlockIAL ¶
func RemoveBlockIAL(id string)
func RemoveDocIAL ¶
func RemoveDocIAL(p string)
func RemoveTreeData ¶
func RemoveTreeData(rootID string)
func SetAssetHash ¶
func SetAssetHash(hash, path string)
func SetTreeData ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.