coreapi: reuse go-ipld-node.Link

License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
This commit is contained in:
Lars Gierth 2016-10-30 03:09:48 +01:00
parent 0097b422de
commit f610e19d3e

View File

@ -5,6 +5,7 @@ import (
"errors"
"io"
ipld "gx/ipfs/QmU7bFWQ793qmvNy7outdCaMfSDNk8uqhx4VNrxYj5fj5g/go-ipld-node"
cid "gx/ipfs/QmXfiyr2RWEXpVDdaYnD2HNiBk6UBddsvEP4RPfXb6nGqY/go-cid"
)
@ -13,11 +14,7 @@ import (
// Version() CoreVersion
// }
type Link struct {
Name string
Size uint64
Cid *cid.Cid
}
type Link ipld.Link
type Reader interface {
io.ReadSeeker