# Packages
Package datacodec holds the data codec registry and adds known encoders and decoders supporting media types such as
`application/json` and `application/xml`.
# Functions
No description provided by the author
New returns a new Event, an optional version can be passed to change the default spec version from 1.0 to the provided version.
No description provided by the author
StringOfApplicationCloudEventsBatchJSON returns a string pointer to "application/cloudevents-batch+json".
StringOfApplicationCloudEventsJSON returns a string pointer to "application/cloudevents+json".
StringOfApplicationJSON returns a string pointer to "application/json".
StringOfApplicationXML returns a string pointer to "application/xml".
StringOfBase64 returns a string pointer to "Base64".
StringOfTextPlain returns a string pointer to "text/plain".
WriteJson writes the in event in the provided writer.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
CloudEventsVersionV03 represents the version 0.3 of the CloudEvents spec.
CloudEventsVersionV1 represents the version 1.0 of the CloudEvents spec.
DataContentEncodingKey is the key to DeprecatedDataContentEncoding for versions that do not support data content encoding directly.
No description provided by the author
No description provided by the author
# Variables
This determines the behavior of validateExtensionName().
# Structs
Event represents the canonical representation of a CloudEvent.
EventContextV03 represents the non-data attributes of a CloudEvents v0.3 event.
EventContextV1 represents the non-data attributes of a CloudEvents v1.0 event.
# Interfaces
EventContext is conical interface for a CloudEvents Context.
EventContextConverter are the methods that allow for event version conversion.
EventContextReader are the methods required to be a reader of context attributes.
EventContextWriter are the methods required to be a writer of context attributes.
EventReader is the interface for reading through an event from attributes.
EventWriter is the interface for writing through an event onto attributes.
# Type aliases
No description provided by the author