package
0.0.0-20220412220916-5ea02083e3ec
Repository: https://github.com/riteshrch/go-edge-device-lib.git
Documentation: pkg.go.dev

# Functions

ListDecoders returns a list of multicodec indicators for which a codec.Decoder is registered.
ListEncoders returns a list of multicodec indicators for which a codec.Encoder is registered.
LookupDecoder yields a codec.Decoder function matching a multicodec indicator code number.
LookupEncoder yields a codec.Encoder function matching a multicodec indicator code number.
RegisterDecoder updates the global DefaultRegistry a map a multicodec indicator number to the given codec.Decoder function.
RegisterEncoder updates the global DefaultRegistry to map a multicodec indicator number to the given codec.Encoder function.

# Variables

DefaultRegistry is a multicodec.Registry instance which is global to the program, and is used as a default set of codecs.

# Structs

Registry is a structure for storing mappings of multicodec indicator numbers to codec.Encoder and codec.Decoder functions.