Documentation ¶
Overview ¶
Package zedtoken converts decimal.Decimal to zedtoken and vice versa
Index ¶
- Variables
- func Decode(encoded *v1.ZedToken) (*zedtoken.DecodedZedToken, error)
- func DecodeRevision(encoded *v1.ZedToken, ds revisionDecoder) (datastore.Revision, error)
- func Encode(decoded *zedtoken.DecodedZedToken) (*v1.ZedToken, error)
- func MustNewFromRevision(revision datastore.Revision) *v1.ZedToken
- func NewFromRevision(revision datastore.Revision) (*v1.ZedToken, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNilZedToken = errors.New("zedtoken pointer was nil")
ErrNilZedToken is returned as the base error when nil is provided as the zedtoken argument to Decode
Functions ¶
func Decode ¶
func Decode(encoded *v1.ZedToken) (*zedtoken.DecodedZedToken, error)
Decode converts an encoded zedtoken to its decoded version.
func DecodeRevision ¶
DecodeRevision converts and extracts the revision from a zedtoken or legacy zookie.
func Encode ¶
func Encode(decoded *zedtoken.DecodedZedToken) (*v1.ZedToken, error)
Encode converts a decoded zedtoken to its opaque version.
func MustNewFromRevision ¶ added in v1.16.0
MustNewFromRevision generates an encoded zedtoken from an integral revision.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.