coreapi: reuse go-ipld-node.Link
License: MIT Signed-off-by: Lars Gierth <larsg@systemli.org>
Lars Gierth committed
Oct 30, 2016 at 03:09 UTC
f610e19d3e90b68ead9ffc9e36bbcd5069a4e196
1 file changed
+2
-5
core/coreapi/interface/interface.go
+2
-5
@@ -5,6 +5,7 @@ import (
5
"errors"
6
"io"
7
8
+ ipld "gx/ipfs/QmU7bFWQ793qmvNy7outdCaMfSDNk8uqhx4VNrxYj5fj5g/go-ipld-node"
9
cid "gx/ipfs/QmXfiyr2RWEXpVDdaYnD2HNiBk6UBddsvEP4RPfXb6nGqY/go-cid"
10
)
11
@@ -13,11 +14,7 @@ import (
14
// Version() CoreVersion
15
// }
16
16
-type Link struct {
17
- Name string
18
- Size uint64
19
- Cid *cid.Cid
20
-}
17
+type Link ipld.Link
18
19
type Reader interface {
20
io.ReadSeeker