_rsrch/cidiface is an engineering experiment package to explore the right form for a CID. As such, it's not meant to be actually used, and could result in conflict if used. To avoid accidentally importing it (or even getting suggestions to do so), this package is moved into an "internal" folder, hinting tooling that it's not meant for external consumption.
25 lines
727 B
Go
25 lines
727 B
Go
package cid
|
|
|
|
import (
|
|
"errors"
|
|
)
|
|
|
|
var (
|
|
// ErrVarintBuffSmall means that a buffer passed to the cid parser was not
|
|
// long enough, or did not contain an invalid cid
|
|
ErrVarintBuffSmall = errors.New("reading varint: buffer too small")
|
|
|
|
// ErrVarintTooBig means that the varint in the given cid was above the
|
|
// limit of 2^64
|
|
ErrVarintTooBig = errors.New("reading varint: varint bigger than 64bits" +
|
|
" and not supported")
|
|
|
|
// ErrCidTooShort means that the cid passed to decode was not long
|
|
// enough to be a valid Cid
|
|
ErrCidTooShort = errors.New("cid too short")
|
|
|
|
// ErrInvalidEncoding means that selected encoding is not supported
|
|
// by this Cid version
|
|
ErrInvalidEncoding = errors.New("invalid base encoding")
|
|
)
|