# Packages
Package client holds the recommended entry points for interacting with the CloudEvents Golang SDK.
Package context holds the last resort overrides and fyi objects that can be passed to clients and transports added to
context.Context objects.
Package datacodec holds the data codec registry and adds known encoders and decoders supporting media types such as
`application/json` and `application/xml`.
No description provided by the author
Package observability holds metrics and tracing recording implementations.
Package transport defines interfaces to decouple the client package
from transport implementations.
Package types implements the CloudEvents type system.
# Functions
JsonEncode.
JsonEncodeLegacy.
New returns a new Event, an optional version can be passed to change the default spec version from 1.0 to the provided version.
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".
# 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
CloudEventsVersionV01 represents the version 0.1 of the CloudEvents spec.
CloudEventsVersionV02 represents the version 0.2 of the CloudEvents spec.
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.
EventTypeVersionKey is the key to EventTypeVersion for versions that do not support event type version directly.
SubjectKey is the key to Subject for versions that do not support subject directly.
No description provided by the author
# Variables
EventMarshalLatencyMs measures the latency in milliseconds for the CloudEvents.Event marshal/unmarshalJSON methods.
LatencyView is an OpenCensus view that shows CloudEvents.Event (un)marshalJSON method latency.
No description provided by the author
# Structs
Event represents the canonical representation of a CloudEvent.
EventContextV01 holds standard metadata about an event.
EventContextV02 represents the non-data attributes of a CloudEvents v0.2 event.
EventContextV03 represents the non-data attributes of a CloudEvents v0.3 event.
EventContextV1 represents the non-data attributes of a CloudEvents v1.0 event.
EventResponse represents the canonical representation of a Response to a CloudEvent from a receiver.
# 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.
EventWriter is the interface for reading through an event from attributes.
EventWriter is the interface for writing through an event onto attributes.