package
1.2.1
Repository: https://github.com/threefoldtech/0-stor.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

NewMarshalFuncPair returns a registered MarshalFuncPair, for a given MarshalType.
RegisterMarshalFuncPair registers a new or overwrite an existing marshal/unmarshal pair of functions, used to (un)marshal metadata.

# Constants

DefaultMarshalType represents the default (un)marshalling format, promoted by this package.
MarshalTypeProtobuf is the enum value which identifies, the protobuf (un)marshalling functions pair provided by the proto subpackage.
MaxStandardMarshalType defines the (un)marshalling type, which has the greatest defined/used enum value.

# Structs

MarshalFuncPair composes a pair of MarshalMetadata and UnmarshalMetadata functions which are meant to be used together.

# Type aliases

MarshalMetadata returns the encoding of the metadata parameter.
MarshalType represents the type of a pair of Marshal/Unmarshal Metadata functions.
UnmarshalMetadata parses the encoded metadata and stores the result in the value pointed to by the data parameter.