[#1326] services/tree: Implement GetSubTree RPC

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2022-04-29 13:06:10 +03:00 committed by fyrchik
parent 62154da17c
commit aea855e8f3
10 changed files with 431 additions and 255 deletions

View file

@ -20,6 +20,8 @@ type Forest interface {
TreeGetByPath(cid cidSDK.ID, treeID string, attr string, path []string, latest bool) ([]Node, error)
// TreeGetMeta returns meta information of the node with the specified ID.
TreeGetMeta(cid cidSDK.ID, treeID string, nodeID Node) (Meta, error)
// TreeGetChildren returns children of the node with the specified ID. The order is arbitrary.
TreeGetChildren(cid cidSDK.ID, treeID string, nodeID Node) ([]uint64, error)
}
type ForestStorage interface {