Commit 77b458e7 authored by Łukasz Magiera's avatar Łukasz Magiera

coreapi: dag: Missing batch docs

License: MIT
Signed-off-by: default avatarŁukasz Magiera <magik6k@gmail.com>
parent f4b74679
...@@ -22,6 +22,7 @@ type DagOps interface { ...@@ -22,6 +22,7 @@ type DagOps interface {
type DagBatch interface { type DagBatch interface {
DagOps DagOps
// Commit commits nodes to the datastore and announces them to the network
Commit(ctx context.Context) error Commit(ctx context.Context) error
} }
...@@ -35,5 +36,6 @@ type DagAPI interface { ...@@ -35,5 +36,6 @@ type DagAPI interface {
// Tree returns list of paths within a node specified by the path. // Tree returns list of paths within a node specified by the path.
Tree(ctx context.Context, path Path, opts ...options.DagTreeOption) ([]Path, error) Tree(ctx context.Context, path Path, opts ...options.DagTreeOption) ([]Path, error)
// Batch creates new DagBatch
Batch(ctx context.Context) DagBatch Batch(ctx context.Context) DagBatch
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment