Port dag commansds to CoreAPI
License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com> This commit was moved from ipfs/interface-go-ipfs-core@f40d44ddbfd929eb84316d66e895f93dedf47424 This commit was moved from ipfs/boxo@9eb0432c770d33d2b1c15ea25e5d3974654e843f
Łukasz Magiera committed
Jan 22, 2019 at 21:01 UTC
75fce9a3291127ed14cee84d4de50c2b0e3d9c1e
2 files changed
+14
-1
core/coreiface/coreapi.go
+1
-1
@@ -19,7 +19,7 @@ type CoreAPI interface {
19
Block() BlockAPI
20
21
// Dag returns an implementation of Dag API
22
- Dag() ipld.DAGService
22
+ Dag() APIDagService
23
24
// Name returns an implementation of Name API
25
Name() NameAPI
core/coreiface/dag.go
new
+13
@@ -0,0 +1,13 @@
1
+package iface
2
+
3
+import (
4
+ ipld "gx/ipfs/QmcKKBwfz6FyQdHR2jsXrrF6XeSBXYL86anmWNewpFpoF5/go-ipld-format"
5
+)
6
+
7
+// APIDagService extends ipld.DAGService
8
+type APIDagService interface {
9
+ ipld.DAGService
10
+
11
+ // Pinning returns special NodeAdder which recursively pins added nodes
12
+ Pinning() ipld.NodeAdder
13
+}