mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-27 13:27:50 +08:00
coreapi: reuse go-ipld-node.Link
License: MIT Signed-off-by: Lars Gierth <larsg@systemli.org> This commit was moved from ipfs/interface-go-ipfs-core@c34bbcac7c This commit was moved from ipfs/boxo@54a9bc5374
This commit is contained in:
parent
a4a55e7799
commit
a3fb17377b
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user