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-block-format
Commits
03c45d7e
Commit
03c45d7e
authored
Aug 21, 2021
by
tavit ohanian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor after forking multiformats
parent
a387b602
Pipeline
#911
passed with stages
in 21 seconds
Changes
4
Pipelines
1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
556 deletions
+13
-556
blocks.go
blocks.go
+3
-3
blocks_test.go
blocks_test.go
+2
-2
go.mod
go.mod
+4
-15
go.sum
go.sum
+4
-536
No files found.
blocks.go
View file @
03c45d7e
// Package blocks contains the lowest level of
DMS3
LD data structures.
// Package blocks contains the lowest level of LD data structures.
// A block is raw data accompanied by a CID. The CID contains the multihash
// corresponding to the block.
package
blocks
...
...
@@ -8,8 +8,8 @@ import (
"fmt"
mh
"github.com/multiformats/go-multihash"
cid
"gitlab.dms3.io/dms3/
public/
go-cid"
u
"gitlab.dms3.io/dms3/
public/
go-dms3-util"
cid
"gitlab.dms3.io/dms3/go-cid"
u
"gitlab.dms3.io/dms3/go-dms3-util"
)
// ErrWrongHash is returned when the Cid of a block is not the expected
...
...
blocks_test.go
View file @
03c45d7e
...
...
@@ -5,8 +5,8 @@ import (
"testing"
mh
"github.com/multiformats/go-multihash"
cid
"gitlab.dms3.io/dms3/
public/
go-cid"
u
"gitlab.dms3.io/dms3/
public/
go-dms3-util"
cid
"gitlab.dms3.io/dms3/go-cid"
u
"gitlab.dms3.io/dms3/go-dms3-util"
)
func
TestBlocksBasic
(
t
*
testing
.
T
)
{
...
...
go.mod
View file @
03c45d7e
module
gitlab.dms3.io/dms3/
public/
go-block-format
module
gitlab.dms3.io/dms3/go-block-format
go 1.15
require (
github.com/gogo/protobuf
v1.3.2 // indirect
github.com/golang/protobuf
v1.5.2 // indirect
github.com/hashicorp/golang-lru
v0.5.4 // indirect
github.com/multiformats/go-multihash
v0.0.14
github.com/neelance/parallel
v0.0.0-20160708114440-4de9ce63d14c // indirect
github.com/opentracing/basictracer-go
v1.1.0 // indirect
github.com/opentracing/opentracing-go
v1.2.0 // indirect
github.com/prometheus/common
v0.28.0 // indirect
github.com/slimsag/godocmd
v0.0.0-20161025000126-a1005ad29fe3 // indirect
github.com/sourcegraph/ctxvfs
v0.0.0-20180418081416-2b65f1b1ea81 // indirect
github.com/sourcegraph/go-langserver
v2.0.0+incompatible // indirect
github.com/sourcegraph/jsonrpc2
v0.1.0 // indirect
gitlab.dms3.io/dms3/public/go-cid
v0.0.2
gitlab.dms3.io/dms3/public/go-dms3-util
v0.0.1
gitlab.dms3.io/dms3/go-cid
v0.0.3
gitlab.dms3.io/dms3/go-dms3-util
v0.0.2
golang.org/x/crypto
v0.0.0-20200622213623-75b288015ac9 // indirect
golang.org/x/sys
v0.0.0-20210608053332-aa57babbf139 // indirect
golang.org/x/tools
v0.1.2 // indirect
)
go.sum
View file @
03c45d7e
This diff is collapsed.
Click to expand it.
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