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-dms3-exchange-interface
Commits
91dc3c5f
Commit
91dc3c5f
authored
Sep 05, 2018
by
Kevin Atkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gx update and fix code to use new Cid type
parent
d3f68065
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
interface.go
interface.go
+2
-2
package.json
package.json
+4
-4
No files found.
interface.go
View file @
91dc3c5f
...
@@ -25,8 +25,8 @@ type Interface interface { // type Exchanger interface
...
@@ -25,8 +25,8 @@ type Interface interface { // type Exchanger interface
// Fetcher is an object that can be used to retrieve blocks
// Fetcher is an object that can be used to retrieve blocks
type
Fetcher
interface
{
type
Fetcher
interface
{
// GetBlock returns the block associated with a given key.
// GetBlock returns the block associated with a given key.
GetBlock
(
context
.
Context
,
*
cid
.
Cid
)
(
blocks
.
Block
,
error
)
GetBlock
(
context
.
Context
,
cid
.
Cid
)
(
blocks
.
Block
,
error
)
GetBlocks
(
context
.
Context
,
[]
*
cid
.
Cid
)
(
<-
chan
blocks
.
Block
,
error
)
GetBlocks
(
context
.
Context
,
[]
cid
.
Cid
)
(
<-
chan
blocks
.
Block
,
error
)
}
}
// SessionExchange is an exchange.Interface which supports
// SessionExchange is an exchange.Interface which supports
...
...
package.json
View file @
91dc3c5f
...
@@ -9,15 +9,15 @@
...
@@ -9,15 +9,15 @@
"gxDependencies"
:
[
"gxDependencies"
:
[
{
{
"author"
:
"stebalien"
,
"author"
:
"stebalien"
,
"hash"
:
"Qm
WAzSEoqZ6xU6pu8yL8e5WaMb7wtbfbhhN4p1DknUPtr3
"
,
"hash"
:
"Qm
RcHuYzAyswytBuMF78rj3LTChYszomRFXNg4685ZN1WM
"
,
"name"
:
"go-block-format"
,
"name"
:
"go-block-format"
,
"version"
:
"0.
1.11
"
"version"
:
"0.
2.0
"
},
},
{
{
"author"
:
"whyrusleeping"
,
"author"
:
"whyrusleeping"
,
"hash"
:
"Qm
ZFbDTY9jfSBms2MchvYM9oYRbAF19K7Pby47yDBfpPrb
"
,
"hash"
:
"Qm
PSQnBKM9g7BaUcZCvswUJVscQ1ipjmwxN5PXCjkp9EQ7
"
,
"name"
:
"go-cid"
,
"name"
:
"go-cid"
,
"version"
:
"0.
8
.0"
"version"
:
"0.
9
.0"
}
}
],
],
"gxVersion"
:
"0.12.1"
,
"gxVersion"
:
"0.12.1"
,
...
...
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