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
go-merkledag
Commits
329bbe24
Commit
329bbe24
authored
Jan 22, 2018
by
ForrestWeston
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
interface docs for merkledag
License: MIT Signed-off-by:
ForrestWeston
<
forrest@protocol.ai
>
parent
30054b1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
merkledag.go
merkledag.go
+4
-0
No files found.
merkledag.go
View file @
329bbe24
...
@@ -27,14 +27,18 @@ var ErrNotFound = fmt.Errorf("merkledag: not found")
...
@@ -27,14 +27,18 @@ var ErrNotFound = fmt.Errorf("merkledag: not found")
// DAGService is an IPFS Merkle DAG service.
// DAGService is an IPFS Merkle DAG service.
type
DAGService
interface
{
type
DAGService
interface
{
// Add adds the node to the DAGService
Add
(
node
.
Node
)
(
*
cid
.
Cid
,
error
)
Add
(
node
.
Node
)
(
*
cid
.
Cid
,
error
)
// Get gets the node the from the DAGService
Get
(
context
.
Context
,
*
cid
.
Cid
)
(
node
.
Node
,
error
)
Get
(
context
.
Context
,
*
cid
.
Cid
)
(
node
.
Node
,
error
)
// Remove removes the node from the DAGService
Remove
(
node
.
Node
)
error
Remove
(
node
.
Node
)
error
// GetMany returns a channel of NodeOption given
// GetMany returns a channel of NodeOption given
// a set of CIDs.
// a set of CIDs.
GetMany
(
context
.
Context
,
[]
*
cid
.
Cid
)
<-
chan
*
NodeOption
GetMany
(
context
.
Context
,
[]
*
cid
.
Cid
)
<-
chan
*
NodeOption
// Batch is a buffer for batching adds to a dag.
Batch
()
*
Batch
Batch
()
*
Batch
LinkService
LinkService
...
...
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