package
0.0.0-20191205233641-31fc120682c9
Repository: https://github.com/textileio/go-textile-core.git
Documentation: pkg.go.dev
# Functions
Cast takes an ID data slice, parses it and returns an ID.
Decode parses an ID-encoded string and returns an ID object.
Extract the encoding from an ID.
NewIDV1 returns a new random ID using the given variant.
# Variables
ErrIDTooShort means that the ID passed to decode was not long enough to be a valid ID.
ErrVarintBuffSmall means that a buffer passed to the ID parser was not long enough, or did not contain an invalid ID.
ErrVarintTooBig means that the varint in the given ID was above the limit of 2^64.
Undef can be used to represent a nil or undefined Cid, using Cid{} directly is also acceptable.
Variants maps the name of a variant to its variant.
VariantToStr maps the numeric variant to its name.
# Interfaces
Event is the Block format used by Textile threads.
EventHeader is the format of the event's header object.
Record is the most basic component of a log.
# Type aliases
IDSlice for sorting threads.