cidlink

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2021 License: MIT Imports: 7 Imported by: 355

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultLinkSystem added in v0.9.0

func DefaultLinkSystem() ipld.LinkSystem

Types

type Link struct {
	cid.Cid
}

Link implements the ipld.Link interface using a CID. See https://github.com/ipfs/go-cid for more information about CIDs.

When using this value, typically you'll use it as `Link`, and not `*Link`. This includes when handling the value as an `ipld.Link` interface -- the non-pointer form is typically preferable. This is because the ipld.Link inteface is often desirable to be able to use as a golang map key, and in that context, pointers would not result in the desired behavior.

func (Link) Prototype added in v0.9.0

func (lnk Link) Prototype() ipld.LinkPrototype

func (Link) String

func (lnk Link) String() string

type LinkPrototype added in v0.9.0

type LinkPrototype struct {
	cid.Prefix
}
func (lp LinkPrototype) BuildLink(hashsum []byte) ipld.Link

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL