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
7eaacd3a
Commit
7eaacd3a
authored
Jul 04, 2017
by
Łukasz Magiera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update go-datastore to 1.2.2, go-cid to 0.7.16
License: MIT Signed-off-by:
Łukasz Magiera
<
magik6k@gmail.com
>
parent
0053a47a
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
29 additions
and
29 deletions
+29
-29
coding.go
coding.go
+2
-2
merkledag.go
merkledag.go
+4
-4
merkledag_test.go
merkledag_test.go
+3
-3
node.go
node.go
+2
-2
node_test.go
node_test.go
+1
-1
raw.go
raw.go
+3
-3
test/utils.go
test/utils.go
+2
-2
traverse/traverse.go
traverse/traverse.go
+1
-1
traverse/traverse_test.go
traverse/traverse_test.go
+1
-1
utils/diff.go
utils/diff.go
+2
-2
utils/diffenum.go
utils/diffenum.go
+2
-2
utils/diffenum_test.go
utils/diffenum_test.go
+2
-2
utils/utils.go
utils/utils.go
+3
-3
utils/utils_test.go
utils/utils_test.go
+1
-1
No files found.
coding.go
View file @
7eaacd3a
...
...
@@ -6,8 +6,8 @@ import (
pb
"github.com/ipfs/go-ipfs/merkledag/pb"
cid
"gx/ipfs/Qm
Nw61A6sJoXMeP37mJRtQZdNhj5e3FdjoTN3v4FyE96Gk/go-cid
"
node
"gx/ipfs/Qm
UBtPvHKFAX43XMsyxsYpMi3U5VwZ4jYFTo4kFhvAR33G/go-ipld-format
"
node
"gx/ipfs/Qm
PAKbSsgEX5B6fpmxa61jXYnoWzZr5sNafd3qgPiSH8Uv/go-ipld-format
"
cid
"gx/ipfs/Qm
a4RJSuh7mMeJQYCqMbKzekn6EwBo7HEs5AQYjVRMQATB/go-cid
"
)
// for now, we use a PBNode intermediate thing.
...
...
merkledag.go
View file @
7eaacd3a
...
...
@@ -9,11 +9,11 @@ import (
bserv
"github.com/ipfs/go-ipfs/blockservice"
offline
"github.com/ipfs/go-ipfs/exchange/offline"
blocks
"gx/ipfs/Qm
bJUay5h1HtzhJb5QQk2t26yCnJksHynvhcqp18utBPqG
/go-block-format"
blocks
"gx/ipfs/Qm
XxGS5QsUxpR3iqL5DjmsYPHR1Yz74siRQ4ChJqWFosMh
/go-block-format"
cid
"gx/ipfs/Qm
Nw61A6sJoXMeP37mJRtQZdNhj5e3FdjoTN3v4FyE96Gk/go-cid
"
node
"gx/ipfs/Qm
UBtPvHKFAX43XMsyxsYpMi3U5VwZ4jYFTo4kFhvAR33G/go-ipld-format
"
ipldcbor
"gx/ipfs/Qm
YAfx21gPrN2hxNUmsuP6GqLWpxPn351st6rRH3fNuiMU
/go-ipld-cbor"
node
"gx/ipfs/Qm
PAKbSsgEX5B6fpmxa61jXYnoWzZr5sNafd3qgPiSH8Uv/go-ipld-format
"
cid
"gx/ipfs/Qm
a4RJSuh7mMeJQYCqMbKzekn6EwBo7HEs5AQYjVRMQATB/go-cid
"
ipldcbor
"gx/ipfs/Qm
cdid3XrCxcoNQUqZKiiKtM7JXxtyipU3izyRqwjFbVWw
/go-ipld-cbor"
)
var
ErrNotFound
=
fmt
.
Errorf
(
"merkledag: not found"
)
...
...
merkledag_test.go
View file @
7eaacd3a
...
...
@@ -22,11 +22,11 @@ import (
mdpb
"github.com/ipfs/go-ipfs/merkledag/pb"
dstest
"github.com/ipfs/go-ipfs/merkledag/test"
uio
"github.com/ipfs/go-ipfs/unixfs/io"
blocks
"gx/ipfs/Qm
bJUay5h1HtzhJb5QQk2t26yCnJksHynvhcqp18utBPqG
/go-block-format"
blocks
"gx/ipfs/Qm
XxGS5QsUxpR3iqL5DjmsYPHR1Yz74siRQ4ChJqWFosMh
/go-block-format"
cid
"gx/ipfs/QmNw61A6sJoXMeP37mJRtQZdNhj5e3FdjoTN3v4FyE96Gk/go-cid"
node
"gx/ipfs/QmUBtPvHKFAX43XMsyxsYpMi3U5VwZ4jYFTo4kFhvAR33G/go-ipld-format"
node
"gx/ipfs/QmPAKbSsgEX5B6fpmxa61jXYnoWzZr5sNafd3qgPiSH8Uv/go-ipld-format"
u
"gx/ipfs/QmWbjfz3u6HkAdPh34dgPchGbQjob6LXLhAeCGii2TX69n/go-ipfs-util"
cid
"gx/ipfs/Qma4RJSuh7mMeJQYCqMbKzekn6EwBo7HEs5AQYjVRMQATB/go-cid"
)
func
TestNode
(
t
*
testing
.
T
)
{
...
...
node.go
View file @
7eaacd3a
...
...
@@ -5,9 +5,9 @@ import (
"encoding/json"
"fmt"
cid
"gx/ipfs/QmNw61A6sJoXMeP37mJRtQZdNhj5e3FdjoTN3v4FyE96Gk/go-cid"
node
"gx/ipfs/QmUBtPvHKFAX43XMsyxsYpMi3U5VwZ4jYFTo4kFhvAR33G/go-ipld-format"
node
"gx/ipfs/QmPAKbSsgEX5B6fpmxa61jXYnoWzZr5sNafd3qgPiSH8Uv/go-ipld-format"
mh
"gx/ipfs/QmVGtdTZdTFaLsaj2RwdVG8jcjNNcp1DE914DKZ2kHmXHw/go-multihash"
cid
"gx/ipfs/Qma4RJSuh7mMeJQYCqMbKzekn6EwBo7HEs5AQYjVRMQATB/go-cid"
)
var
ErrNotProtobuf
=
fmt
.
Errorf
(
"expected protobuf dag node"
)
...
...
node_test.go
View file @
7eaacd3a
...
...
@@ -8,7 +8,7 @@ import (
.
"github.com/ipfs/go-ipfs/merkledag"
mdtest
"github.com/ipfs/go-ipfs/merkledag/test"
node
"gx/ipfs/Qm
UBtPvHKFAX43XMsyxsYpMi3U5VwZ4jYFTo4kFhvAR33G
/go-ipld-format"
node
"gx/ipfs/Qm
PAKbSsgEX5B6fpmxa61jXYnoWzZr5sNafd3qgPiSH8Uv
/go-ipld-format"
)
func
TestRemoveLink
(
t
*
testing
.
T
)
{
...
...
raw.go
View file @
7eaacd3a
package
merkledag
import
(
"gx/ipfs/Qm
bJUay5h1HtzhJb5QQk2t26yCnJksHynvhcqp18utBPqG
/go-block-format"
"gx/ipfs/Qm
XxGS5QsUxpR3iqL5DjmsYPHR1Yz74siRQ4ChJqWFosMh
/go-block-format"
cid
"gx/ipfs/QmNw61A6sJoXMeP37mJRtQZdNhj5e3FdjoTN3v4FyE96Gk/go-cid"
node
"gx/ipfs/QmUBtPvHKFAX43XMsyxsYpMi3U5VwZ4jYFTo4kFhvAR33G/go-ipld-format"
node
"gx/ipfs/QmPAKbSsgEX5B6fpmxa61jXYnoWzZr5sNafd3qgPiSH8Uv/go-ipld-format"
u
"gx/ipfs/QmWbjfz3u6HkAdPh34dgPchGbQjob6LXLhAeCGii2TX69n/go-ipfs-util"
cid
"gx/ipfs/Qma4RJSuh7mMeJQYCqMbKzekn6EwBo7HEs5AQYjVRMQATB/go-cid"
)
type
RawNode
struct
{
...
...
test/utils.go
View file @
7eaacd3a
...
...
@@ -5,8 +5,8 @@ import (
bsrv
"github.com/ipfs/go-ipfs/blockservice"
"github.com/ipfs/go-ipfs/exchange/offline"
dag
"github.com/ipfs/go-ipfs/merkledag"
ds
"gx/ipfs/Qm
SiN66ybp5udnQnvhb6euiWiiQWdGvwMhAWa95cC1DTCV
/go-datastore"
dssync
"gx/ipfs/Qm
SiN66ybp5udnQnvhb6euiWiiQWdGvwMhAWa95cC1DTCV
/go-datastore/sync"
ds
"gx/ipfs/Qm
VSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG
/go-datastore"
dssync
"gx/ipfs/Qm
VSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG
/go-datastore/sync"
)
func
Mock
()
dag
.
DAGService
{
...
...
traverse/traverse.go
View file @
7eaacd3a
...
...
@@ -5,7 +5,7 @@ import (
"context"
"errors"
node
"gx/ipfs/Qm
UBtPvHKFAX43XMsyxsYpMi3U5VwZ4jYFTo4kFhvAR33G
/go-ipld-format"
node
"gx/ipfs/Qm
PAKbSsgEX5B6fpmxa61jXYnoWzZr5sNafd3qgPiSH8Uv
/go-ipld-format"
)
// Order is an identifier for traversal algorithm orders
...
...
traverse/traverse_test.go
View file @
7eaacd3a
...
...
@@ -8,7 +8,7 @@ import (
mdag
"github.com/ipfs/go-ipfs/merkledag"
mdagtest
"github.com/ipfs/go-ipfs/merkledag/test"
node
"gx/ipfs/Qm
UBtPvHKFAX43XMsyxsYpMi3U5VwZ4jYFTo4kFhvAR33G
/go-ipld-format"
node
"gx/ipfs/Qm
PAKbSsgEX5B6fpmxa61jXYnoWzZr5sNafd3qgPiSH8Uv
/go-ipld-format"
)
func
TestDFSPreNoSkip
(
t
*
testing
.
T
)
{
...
...
utils/diff.go
View file @
7eaacd3a
...
...
@@ -7,8 +7,8 @@ import (
dag
"github.com/ipfs/go-ipfs/merkledag"
cid
"gx/ipfs/Qm
Nw61A6sJoXMeP37mJRtQZdNhj5e3FdjoTN3v4FyE96Gk/go-cid
"
node
"gx/ipfs/Qm
UBtPvHKFAX43XMsyxsYpMi3U5VwZ4jYFTo4kFhvAR33G/go-ipld-format
"
node
"gx/ipfs/Qm
PAKbSsgEX5B6fpmxa61jXYnoWzZr5sNafd3qgPiSH8Uv/go-ipld-format
"
cid
"gx/ipfs/Qm
a4RJSuh7mMeJQYCqMbKzekn6EwBo7HEs5AQYjVRMQATB/go-cid
"
)
const
(
...
...
utils/diffenum.go
View file @
7eaacd3a
...
...
@@ -6,8 +6,8 @@ import (
mdag
"github.com/ipfs/go-ipfs/merkledag"
cid
"gx/ipfs/Qm
Nw61A6sJoXMeP37mJRtQZdNhj5e3FdjoTN3v4FyE96Gk/go-cid
"
node
"gx/ipfs/Qm
UBtPvHKFAX43XMsyxsYpMi3U5VwZ4jYFTo4kFhvAR33G/go-ipld-format
"
node
"gx/ipfs/Qm
PAKbSsgEX5B6fpmxa61jXYnoWzZr5sNafd3qgPiSH8Uv/go-ipld-format
"
cid
"gx/ipfs/Qm
a4RJSuh7mMeJQYCqMbKzekn6EwBo7HEs5AQYjVRMQATB/go-cid
"
)
// DiffEnumerate fetches every object in the graph pointed to by 'to' that is
...
...
utils/diffenum_test.go
View file @
7eaacd3a
...
...
@@ -8,8 +8,8 @@ import (
dag
"github.com/ipfs/go-ipfs/merkledag"
mdtest
"github.com/ipfs/go-ipfs/merkledag/test"
cid
"gx/ipfs/Qm
Nw61A6sJoXMeP37mJRtQZdNhj5e3FdjoTN3v4FyE96Gk/go-cid
"
node
"gx/ipfs/Qm
UBtPvHKFAX43XMsyxsYpMi3U5VwZ4jYFTo4kFhvAR33G/go-ipld-format
"
node
"gx/ipfs/Qm
PAKbSsgEX5B6fpmxa61jXYnoWzZr5sNafd3qgPiSH8Uv/go-ipld-format
"
cid
"gx/ipfs/Qm
a4RJSuh7mMeJQYCqMbKzekn6EwBo7HEs5AQYjVRMQATB/go-cid
"
)
func
buildNode
(
name
string
,
desc
map
[
string
]
ndesc
,
out
map
[
string
]
node
.
Node
)
node
.
Node
{
...
...
utils/utils.go
View file @
7eaacd3a
...
...
@@ -10,9 +10,9 @@ import (
dag
"github.com/ipfs/go-ipfs/merkledag"
path
"github.com/ipfs/go-ipfs/path"
ds
"gx/ipfs/Qm
SiN66ybp5udnQnvhb6euiWiiQWdGvwMhAWa95cC1DTCV/go-datastore
"
sync
ds
"gx/ipfs/Qm
SiN66ybp5udnQnvhb6euiWiiQWdGvwMhAWa95cC1DTCV
/go-datastore
/sync
"
node
"gx/ipfs/Qm
UBtPvHKFAX43XMsyxsYpMi3U5VwZ4jYFTo4kFhvAR33G/go-ipld-format
"
node
"gx/ipfs/Qm
PAKbSsgEX5B6fpmxa61jXYnoWzZr5sNafd3qgPiSH8Uv/go-ipld-format
"
ds
"gx/ipfs/Qm
VSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG
/go-datastore"
syncds
"gx/ipfs/Qm
VSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore/sync
"
)
type
Editor
struct
{
...
...
utils/utils_test.go
View file @
7eaacd3a
...
...
@@ -8,7 +8,7 @@ import (
path
"github.com/ipfs/go-ipfs/path"
context
"context"
cid
"gx/ipfs/Qm
Nw61A6sJoXMeP37mJRtQZdNhj5e3FdjoTN3v4FyE96Gk
/go-cid"
cid
"gx/ipfs/Qm
a4RJSuh7mMeJQYCqMbKzekn6EwBo7HEs5AQYjVRMQATB
/go-cid"
)
func
TestAddLink
(
t
*
testing
.
T
)
{
...
...
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