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
e69000d4
Commit
e69000d4
authored
Nov 16, 2016
by
Lars Gierth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
coreapi: smarter way of dealing with the different APIs
License: MIT Signed-off-by:
Lars Gierth
<
larsg@systemli.org
>
parent
c7723c40
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
interface.go
interface.go
+4
-5
No files found.
interface.go
View file @
e69000d4
...
...
@@ -9,11 +9,6 @@ import (
ipld
"gx/ipfs/QmYDscK7dmdo2GZ9aumS8s5auUUAH5mR1jvj5pYhWusfK7/go-ipld-node"
)
// type CoreAPI interface {
// ID() CoreID
// Version() CoreVersion
// }
type
Link
ipld
.
Link
type
Reader
interface
{
...
...
@@ -21,6 +16,10 @@ type Reader interface {
io
.
Closer
}
type
CoreAPI
interface
{
Unixfs
()
UnixfsAPI
}
type
UnixfsAPI
interface
{
Add
(
context
.
Context
,
io
.
Reader
)
(
*
cid
.
Cid
,
error
)
Cat
(
context
.
Context
,
string
)
(
Reader
,
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