package
2.0.2
Repository: https://github.com/ian-mi/sdk-go.git
Documentation: pkg.go.dev

# 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

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".
StringOfTextPlain returns a string pointer to "text/plain".

# 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.
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
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.
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.
EventWriter is the interface for reading through an event from attributes.
EventWriter is the interface for writing through an event onto attributes.