mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-26 21:07:45 +08:00
coreapi: dag: Missing batch docs
License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com> This commit was moved from ipfs/interface-go-ipfs-core@77b458e742 This commit was moved from ipfs/boxo@de98b9bd45
This commit is contained in:
parent
04c548b1d2
commit
a9097b5738
@ -22,6 +22,7 @@ type DagOps interface {
|
||||
type DagBatch interface {
|
||||
DagOps
|
||||
|
||||
// Commit commits nodes to the datastore and announces them to the network
|
||||
Commit(ctx context.Context) error
|
||||
}
|
||||
|
||||
@ -35,5 +36,6 @@ type DagAPI interface {
|
||||
// Tree returns list of paths within a node specified by the path.
|
||||
Tree(ctx context.Context, path Path, opts ...options.DagTreeOption) ([]Path, error)
|
||||
|
||||
// Batch creates new DagBatch
|
||||
Batch(ctx context.Context) DagBatch
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user