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
e4a33322
Commit
e4a33322
authored
Mar 30, 2018
by
Łukasz Magiera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
coreapi: remove ctx from ParsePath, split ParseCid
License: MIT Signed-off-by:
Łukasz Magiera
<
magik6k@gmail.com
>
parent
79875b01
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
coreapi.go
coreapi.go
+6
-3
No files found.
coreapi.go
View file @
e4a33322
...
@@ -40,8 +40,11 @@ type CoreAPI interface {
...
@@ -40,8 +40,11 @@ type CoreAPI interface {
ResolveNode
(
context
.
Context
,
Path
)
(
ipld
.
Node
,
error
)
ResolveNode
(
context
.
Context
,
Path
)
(
ipld
.
Node
,
error
)
// ParsePath parses string path to a Path
// ParsePath parses string path to a Path
ParsePath
(
context
.
Context
,
string
)
(
Path
,
error
)
ParsePath
(
string
)
(
Path
,
error
)
// ParseCid creates new path from the provided CID
// IpfsPath creates new /ipfs path from the provided CID
ParseCid
(
*
cid
.
Cid
)
ResolvedPath
IpfsPath
(
*
cid
.
Cid
)
ResolvedPath
// IpldPath creates new /ipld path from the provided CID
IpldPath
(
*
cid
.
Cid
)
ResolvedPath
}
}
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