Commit 7b478b88 authored by Łukasz Magiera's avatar Łukasz Magiera

coreapi.WithOptions

License: MIT
Signed-off-by: default avatarŁukasz Magiera <magik6k@gmail.com>
parent 84509e38
...@@ -5,6 +5,8 @@ package iface ...@@ -5,6 +5,8 @@ package iface
import ( import (
"context" "context"
"github.com/ipfs/go-ipfs/core/coreapi/interface/options"
ipld "gx/ipfs/QmcKKBwfz6FyQdHR2jsXrrF6XeSBXYL86anmWNewpFpoF5/go-ipld-format" ipld "gx/ipfs/QmcKKBwfz6FyQdHR2jsXrrF6XeSBXYL86anmWNewpFpoF5/go-ipld-format"
) )
...@@ -46,4 +48,8 @@ type CoreAPI interface { ...@@ -46,4 +48,8 @@ type CoreAPI interface {
// ResolveNode resolves the path (if not resolved already) using Unixfs // ResolveNode resolves the path (if not resolved already) using Unixfs
// resolver, gets and returns the resolved Node // resolver, gets and returns the resolved Node
ResolveNode(context.Context, Path) (ipld.Node, error) ResolveNode(context.Context, Path) (ipld.Node, error)
// WithOptions creates new instance of CoreAPI based on this instance with
// a set of options applied
WithOptions(...options.ApiOption) (CoreAPI, error)
} }
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