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:
Łukasz Magiera 2018-08-03 18:19:45 +02:00
parent 04c548b1d2
commit a9097b5738

View File

@ -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
}