coreapi.WithOptions
License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com> This commit was moved from ipfs/interface-go-ipfs-core@7b478b88d1f788045344cede17f73e2f9b21d680 This commit was moved from ipfs/boxo@6d52ba5bb4ccdda79fb3a55fbc1d024bee208c6e
Łukasz Magiera committed
Dec 10, 2018 at 14:21 UTC
5da159b33c400648d67d20e25d17b23043fb590c
1 file changed
+6
core/coreiface/coreapi.go
+6
@@ -5,6 +5,8 @@ package iface
5
import (
6
"context"
7
8
+ "github.com/ipfs/go-ipfs/core/coreapi/interface/options"
9
+
10
ipld "gx/ipfs/QmcKKBwfz6FyQdHR2jsXrrF6XeSBXYL86anmWNewpFpoF5/go-ipld-format"
11
)
12
@@ -46,4 +48,8 @@ type CoreAPI interface {
48
// ResolveNode resolves the path (if not resolved already) using Unixfs
49
// resolver, gets and returns the resolved Node
50
ResolveNode(context.Context, Path) (ipld.Node, error)
51
+
52
+ // WithOptions creates new instance of CoreAPI based on this instance with
53
+ // a set of options applied
54
+ WithOptions(...options.ApiOption) (CoreAPI, error)
55
}