Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
interface-go-dms3-core
Commits
7b478b88
Commit
7b478b88
authored
Dec 10, 2018
by
Łukasz Magiera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
coreapi.WithOptions
License: MIT Signed-off-by:
Łukasz Magiera
<
magik6k@gmail.com
>
parent
84509e38
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
coreapi.go
coreapi.go
+6
-0
No files found.
coreapi.go
View file @
7b478b88
...
...
@@ -5,6 +5,8 @@ package iface
import
(
"context"
"github.com/ipfs/go-ipfs/core/coreapi/interface/options"
ipld
"gx/ipfs/QmcKKBwfz6FyQdHR2jsXrrF6XeSBXYL86anmWNewpFpoF5/go-ipld-format"
)
...
...
@@ -46,4 +48,8 @@ type CoreAPI interface {
// ResolveNode resolves the path (if not resolved already) using Unixfs
// resolver, gets and returns the resolved Node
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
)
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment