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
d9c5d7df
Commit
d9c5d7df
authored
Aug 28, 2017
by
Steven Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gx: update go-cid, go-multibase, base32
License: MIT Signed-off-by:
Steven Allen
<
steven@stebalien.com
>
parent
57fbb422
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
26 additions
and
26 deletions
+26
-26
coding.go
coding.go
+3
-3
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
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
+1
-1
utils/utils_test.go
utils/utils_test.go
+1
-1
No files found.
coding.go
View file @
d9c5d7df
...
...
@@ -5,12 +5,12 @@ import (
"sort"
"strings"
"gx/ipfs/Qm
VA4mafxbfH5aEvNz8fyoxC6J1xhAtw88B4GerPznSZBg
/go-block-format"
"gx/ipfs/Qm
Sn9Td7xgxm9EV7iEjTckpUWmWApggzPxu7eFGWkkpwin
/go-block-format"
pb
"github.com/ipfs/go-ipfs/merkledag/pb"
cid
"gx/ipfs/Qm
TprEaAA2A9bst5XH7exuyi5KzNMK3SEDNN8rBDnKWcUS
/go-cid"
node
"gx/ipfs/Qm
YNyRZJBUYPNrLszFmrBrPJbsBh2vMsefz5gnDpB5M1P6
/go-ipld-format"
cid
"gx/ipfs/Qm
Np85zy9RLrQ5oQD4hPyS39ezrrXpcaa7R4Y9kxdWQLLQ
/go-cid"
node
"gx/ipfs/Qm
PN7cwmpcc4DWXb4KTB9dNAJgjuPY69h3npsMfhRrQL9c
/go-ipld-format"
)
// for now, we use a PBNode intermediate thing.
...
...
merkledag.go
View file @
d9c5d7df
...
...
@@ -9,10 +9,10 @@ import (
bserv
"github.com/ipfs/go-ipfs/blockservice"
offline
"github.com/ipfs/go-ipfs/exchange/offline"
cid
"gx/ipfs/Qm
TprEaAA2A9bst5XH7exuyi5KzNMK3SEDNN8rBDnKWcUS
/go-cid"
blocks
"gx/ipfs/Qm
VA4mafxbfH5aEvNz8fyoxC6J1xhAtw88B4GerPznSZBg/go-block
-format"
node
"gx/ipfs/Qm
YNyRZJBUYPNrLszFmrBrPJbsBh2vMsefz5gnDpB5M1P6/go-ipld
-format"
ipldcbor
"gx/ipfs/Qm
eebqVZeEXBqJ2B4urQWfdhwRRPm84ajnCo8x8pfwbsPM
/go-ipld-cbor"
cid
"gx/ipfs/Qm
Np85zy9RLrQ5oQD4hPyS39ezrrXpcaa7R4Y9kxdWQLLQ
/go-cid"
node
"gx/ipfs/Qm
PN7cwmpcc4DWXb4KTB9dNAJgjuPY69h3npsMfhRrQL9c/go-ipld
-format"
blocks
"gx/ipfs/Qm
Sn9Td7xgxm9EV7iEjTckpUWmWApggzPxu7eFGWkkpwin/go-block
-format"
ipldcbor
"gx/ipfs/Qm
cRu2X6kdDKmCbMpYXKHVgDrhLqVYCACMe1aghUcdHj2z
/go-ipld-cbor"
)
// TODO: We should move these registrations elsewhere. Really, most of the IPLD
...
...
merkledag_test.go
View file @
d9c5d7df
...
...
@@ -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
VA4mafxbfH5aEvNz8fyoxC6J1xhAtw88B4GerPznSZBg
/go-block-format"
blocks
"gx/ipfs/Qm
Sn9Td7xgxm9EV7iEjTckpUWmWApggzPxu7eFGWkkpwin
/go-block-format"
cid
"gx/ipfs/QmNp85zy9RLrQ5oQD4hPyS39ezrrXpcaa7R4Y9kxdWQLLQ/go-cid"
node
"gx/ipfs/QmPN7cwmpcc4DWXb4KTB9dNAJgjuPY69h3npsMfhRrQL9c/go-ipld-format"
u
"gx/ipfs/QmSU6eubNdhXjFBJBSksTp8kv8YRub8mGAPv8tVJHmL2EU/go-ipfs-util"
cid
"gx/ipfs/QmTprEaAA2A9bst5XH7exuyi5KzNMK3SEDNN8rBDnKWcUS/go-cid"
node
"gx/ipfs/QmYNyRZJBUYPNrLszFmrBrPJbsBh2vMsefz5gnDpB5M1P6/go-ipld-format"
)
func
TestNode
(
t
*
testing
.
T
)
{
...
...
node.go
View file @
d9c5d7df
...
...
@@ -5,9 +5,9 @@ import (
"encoding/json"
"fmt"
cid
"gx/ipfs/QmTprEaAA2A9bst5XH7exuyi5KzNMK3SEDNN8rBDnKWcUS/go-cid"
cid
"gx/ipfs/QmNp85zy9RLrQ5oQD4hPyS39ezrrXpcaa7R4Y9kxdWQLLQ/go-cid"
node
"gx/ipfs/QmPN7cwmpcc4DWXb4KTB9dNAJgjuPY69h3npsMfhRrQL9c/go-ipld-format"
mh
"gx/ipfs/QmU9a9NV9RdPNwZQDYd5uKsm6N6LJLSvLbywDDYFbaaC6P/go-multihash"
node
"gx/ipfs/QmYNyRZJBUYPNrLszFmrBrPJbsBh2vMsefz5gnDpB5M1P6/go-ipld-format"
)
var
ErrNotProtobuf
=
fmt
.
Errorf
(
"expected protobuf dag node"
)
...
...
node_test.go
View file @
d9c5d7df
...
...
@@ -8,7 +8,7 @@ import (
.
"github.com/ipfs/go-ipfs/merkledag"
mdtest
"github.com/ipfs/go-ipfs/merkledag/test"
node
"gx/ipfs/Qm
YNyRZJBUYPNrLszFmrBrPJbsBh2vMsefz5gnDpB5M1P6
/go-ipld-format"
node
"gx/ipfs/Qm
PN7cwmpcc4DWXb4KTB9dNAJgjuPY69h3npsMfhRrQL9c
/go-ipld-format"
)
func
TestRemoveLink
(
t
*
testing
.
T
)
{
...
...
raw.go
View file @
d9c5d7df
...
...
@@ -2,11 +2,11 @@ package merkledag
import
(
"fmt"
"gx/ipfs/Qm
VA4mafxbfH5aEvNz8fyoxC6J1xhAtw88B4GerPznSZBg
/go-block-format"
"gx/ipfs/Qm
Sn9Td7xgxm9EV7iEjTckpUWmWApggzPxu7eFGWkkpwin
/go-block-format"
cid
"gx/ipfs/QmNp85zy9RLrQ5oQD4hPyS39ezrrXpcaa7R4Y9kxdWQLLQ/go-cid"
node
"gx/ipfs/QmPN7cwmpcc4DWXb4KTB9dNAJgjuPY69h3npsMfhRrQL9c/go-ipld-format"
u
"gx/ipfs/QmSU6eubNdhXjFBJBSksTp8kv8YRub8mGAPv8tVJHmL2EU/go-ipfs-util"
cid
"gx/ipfs/QmTprEaAA2A9bst5XH7exuyi5KzNMK3SEDNN8rBDnKWcUS/go-cid"
node
"gx/ipfs/QmYNyRZJBUYPNrLszFmrBrPJbsBh2vMsefz5gnDpB5M1P6/go-ipld-format"
)
type
RawNode
struct
{
...
...
traverse/traverse.go
View file @
d9c5d7df
...
...
@@ -5,7 +5,7 @@ import (
"context"
"errors"
node
"gx/ipfs/Qm
YNyRZJBUYPNrLszFmrBrPJbsBh2vMsefz5gnDpB5M1P6
/go-ipld-format"
node
"gx/ipfs/Qm
PN7cwmpcc4DWXb4KTB9dNAJgjuPY69h3npsMfhRrQL9c
/go-ipld-format"
)
// Order is an identifier for traversal algorithm orders
...
...
traverse/traverse_test.go
View file @
d9c5d7df
...
...
@@ -8,7 +8,7 @@ import (
mdag
"github.com/ipfs/go-ipfs/merkledag"
mdagtest
"github.com/ipfs/go-ipfs/merkledag/test"
node
"gx/ipfs/Qm
YNyRZJBUYPNrLszFmrBrPJbsBh2vMsefz5gnDpB5M1P6
/go-ipld-format"
node
"gx/ipfs/Qm
PN7cwmpcc4DWXb4KTB9dNAJgjuPY69h3npsMfhRrQL9c
/go-ipld-format"
)
func
TestDFSPreNoSkip
(
t
*
testing
.
T
)
{
...
...
utils/diff.go
View file @
d9c5d7df
...
...
@@ -7,8 +7,8 @@ import (
dag
"github.com/ipfs/go-ipfs/merkledag"
cid
"gx/ipfs/Qm
TprEaAA2A9bst5XH7exuyi5KzNMK3SEDNN8rBDnKWcUS
/go-cid"
node
"gx/ipfs/Qm
YNyRZJBUYPNrLszFmrBrPJbsBh2vMsefz5gnDpB5M1P6
/go-ipld-format"
cid
"gx/ipfs/Qm
Np85zy9RLrQ5oQD4hPyS39ezrrXpcaa7R4Y9kxdWQLLQ
/go-cid"
node
"gx/ipfs/Qm
PN7cwmpcc4DWXb4KTB9dNAJgjuPY69h3npsMfhRrQL9c
/go-ipld-format"
)
const
(
...
...
utils/diffenum.go
View file @
d9c5d7df
...
...
@@ -6,8 +6,8 @@ import (
mdag
"github.com/ipfs/go-ipfs/merkledag"
cid
"gx/ipfs/Qm
TprEaAA2A9bst5XH7exuyi5KzNMK3SEDNN8rBDnKWcUS
/go-cid"
node
"gx/ipfs/Qm
YNyRZJBUYPNrLszFmrBrPJbsBh2vMsefz5gnDpB5M1P6
/go-ipld-format"
cid
"gx/ipfs/Qm
Np85zy9RLrQ5oQD4hPyS39ezrrXpcaa7R4Y9kxdWQLLQ
/go-cid"
node
"gx/ipfs/Qm
PN7cwmpcc4DWXb4KTB9dNAJgjuPY69h3npsMfhRrQL9c
/go-ipld-format"
)
// DiffEnumerate fetches every object in the graph pointed to by 'to' that is
...
...
utils/diffenum_test.go
View file @
d9c5d7df
...
...
@@ -8,8 +8,8 @@ import (
dag
"github.com/ipfs/go-ipfs/merkledag"
mdtest
"github.com/ipfs/go-ipfs/merkledag/test"
cid
"gx/ipfs/Qm
TprEaAA2A9bst5XH7exuyi5KzNMK3SEDNN8rBDnKWcUS
/go-cid"
node
"gx/ipfs/Qm
YNyRZJBUYPNrLszFmrBrPJbsBh2vMsefz5gnDpB5M1P6
/go-ipld-format"
cid
"gx/ipfs/Qm
Np85zy9RLrQ5oQD4hPyS39ezrrXpcaa7R4Y9kxdWQLLQ
/go-cid"
node
"gx/ipfs/Qm
PN7cwmpcc4DWXb4KTB9dNAJgjuPY69h3npsMfhRrQL9c
/go-ipld-format"
)
func
buildNode
(
name
string
,
desc
map
[
string
]
ndesc
,
out
map
[
string
]
node
.
Node
)
node
.
Node
{
...
...
utils/utils.go
View file @
d9c5d7df
...
...
@@ -10,9 +10,9 @@ import (
dag
"github.com/ipfs/go-ipfs/merkledag"
path
"github.com/ipfs/go-ipfs/path"
node
"gx/ipfs/QmPN7cwmpcc4DWXb4KTB9dNAJgjuPY69h3npsMfhRrQL9c/go-ipld-format"
ds
"gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore"
syncds
"gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore/sync"
node
"gx/ipfs/QmYNyRZJBUYPNrLszFmrBrPJbsBh2vMsefz5gnDpB5M1P6/go-ipld-format"
)
type
Editor
struct
{
...
...
utils/utils_test.go
View file @
d9c5d7df
...
...
@@ -8,7 +8,7 @@ import (
path
"github.com/ipfs/go-ipfs/path"
context
"context"
cid
"gx/ipfs/Qm
TprEaAA2A9bst5XH7exuyi5KzNMK3SEDNN8rBDnKWcUS
/go-cid"
cid
"gx/ipfs/Qm
Np85zy9RLrQ5oQD4hPyS39ezrrXpcaa7R4Y9kxdWQLLQ
/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