Documentation ¶
Index ¶
- Constants
- func DecodeLink(b *bytes.Reader) (cid.Cid, error)
- func DigestForLog(digest Digest) string
- func DigestToHumanString(d Digest) string
- func DigestToProto(d Digest) *pb.Digest
- func EncodeField(b *bytes.Buffer, f *Field) error
- func EncodeLink(b *bytes.Buffer, link cid.Cid) error
- func FormatDigest(digest Digest, format string) string
- func PrintPath(path Path) string
- func PrintSelector(s Selector) string
- func ReadUint64(b *bytes.Reader) (uint64, error)
- func SerializeDAGNode(node *DAGNode) ([]byte, error)
- func WriteUint64(b *bytes.Buffer, i uint64) error
- type DAGNode
- type Digest
- type DigestArray
- type Field
- type NodeID
- type Path
- type Selector
Constants ¶
View Source
const ( TypeRaw = cid.Raw TypeDAG = 0x70 )
View Source
const ( FieldTypeInt = 0 FieldTypeBytes = 1 FieldTypeMsg = 2 )
Variables ¶
This section is empty.
Functions ¶
func DecodeLink ¶
func DigestForLog ¶
func DigestToHumanString ¶
func DigestToProto ¶
func EncodeLink ¶
func FormatDigest ¶
func PrintSelector ¶
func SerializeDAGNode ¶
Types ¶
type Digest ¶
type Digest = multihash.Multihash
func ComputeDigest ¶
func DigestFromProto ¶
func ParseDigest ¶
type DigestArray ¶
type DigestArray [64]byte
func DigestToArray ¶
func DigestToArray(digest multihash.Multihash) DigestArray
Convert to a fixed size array. Only to be used for in-memory caching.
Click to show internal directories.
Click to hide internal directories.