@cryptotaxi247 / kubo / commits / a9097b573

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@77b458e7426ae384692ed7c70a3a6179f4adc1b3 This commit was moved from ipfs/boxo@de98b9bd4549e5e475d3d096c519ae685ac008cc

Łukasz Magiera committed Aug 3, 2018 at 18:19 UTC a9097b5738eaf33a7ae2a723ccacdfd225863833
1 file changed +2
core/coreiface/dag.go
+2
@@ -22,6 +22,7 @@ type DagOps interface {
22 type DagBatch interface {
23 DagOps
24
25 + // Commit commits nodes to the datastore and announces them to the network
26 Commit(ctx context.Context) error
27 }
28
@@ -35,5 +36,6 @@ type DagAPI interface {
36 // Tree returns list of paths within a node specified by the path.
37 Tree(ctx context.Context, path Path, opts ...options.DagTreeOption) ([]Path, error)
38
39 + // Batch creates new DagBatch
40 Batch(ctx context.Context) DagBatch
41 }