Documentation ¶
Overview ¶
Package datacodec holds the data codec registry and adds known encoders and decoders supporting media types such as `application/json` and `application/xml`.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDecoder ¶
AddDecoder registers a decoder for a given content type. The codecs will use these to decode the data payload from a cloudevent.Event object.
func AddEncoder ¶
AddEncoder registers an encoder for a given content type. The codecs will use these to encode the data payload for a cloudevent.Event object.
Types ¶
Directories ¶
Path | Synopsis |
---|---|
Package json holds the encoder/decoder implementation for `application/json`.
|
Package json holds the encoder/decoder implementation for `application/json`. |
Package text holds the encoder/decoder implementation for `text/plain`.
|
Package text holds the encoder/decoder implementation for `text/plain`. |
Package xml holds the encoder/decoder implementation for `application/xml`.
|
Package xml holds the encoder/decoder implementation for `application/xml`. |
Click to show internal directories.
Click to hide internal directories.