Commit f40d44dd authored by Łukasz Magiera's avatar Łukasz Magiera

Port dag commansds to CoreAPI

License: MIT
Signed-off-by: default avatarŁukasz Magiera <magik6k@gmail.com>
parent b4e7753b
......@@ -19,7 +19,7 @@ type CoreAPI interface {
Block() BlockAPI
// Dag returns an implementation of Dag API
Dag() ipld.DAGService
Dag() APIDagService
// Name returns an implementation of Name API
Name() NameAPI
......
package iface
import (
ipld "gx/ipfs/QmcKKBwfz6FyQdHR2jsXrrF6XeSBXYL86anmWNewpFpoF5/go-ipld-format"
)
// APIDagService extends ipld.DAGService
type APIDagService interface {
ipld.DAGService
// Pinning returns special NodeAdder which recursively pins added nodes
Pinning() ipld.NodeAdder
}
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