package
1.2.0
Repository: https://github.com/cloudevents/sdk-go.git
Documentation: pkg.go.dev

# Packages

Package json holds the encoder/decoder implementation for `application/json`.
Text codec converts []byte or string to string and vice-versa.
Package xml holds the encoder/decoder implementation for `application/xml`.

# Functions

AddDecoder registers a decoder for a given content type.
AddEncoder registers an encoder for a given content type.
Decode looks up and invokes the decoder registered for the given content type.
Encode looks up and invokes the encoder registered for the given content type.

# Variables

LatencyMs measures the latency in milliseconds for the CloudEvents generic codec data methods.
LatencyView is an OpenCensus view that shows data codec method latency.

# Type aliases

Decoder is the expected function signature for decoding `in` to `out`.
Encoder is the expected function signature for encoding `in` to bytes.