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

# Packages

No description provided by the author

# Functions

DefaultIDToUUIDIfNotSet will inspect the provided event and assign a UUID to context.ID if it is found to be empty.
DefaultTimeToNowIfNotSet will inspect the provided event and assign a new Timestamp to context.Time if it is found to be nil or zero.
No description provided by the author
New produces a new client with the provided transport object and applied client options.
NewDefault provides the good defaults for the common case using an HTTP Protocol client.
NewDefaultDataContentTypeIfNotSet returns a defaulter that will inspect the provided event and set the provided content type if content type is found to be empty.
No description provided by the author
New produces a new client with the provided transport object and applied client options.
TraceSpan returns context and trace.Span based on event.
WithEventDefaulter adds an event defaulter to the end of the defaulter chain.
No description provided by the author
No description provided by the author
WithTimeNow adds DefaultTimeToNowIfNotSet event defaulter to the end of the defaulter chain.
WithTracePropagation enables trace propagation via the distributed tracing extension.
WithUUIDs adds DefaultIDToUUIDIfNotSet event defaulter to the end of the defaulter chain.

# Variables

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

# Structs

No description provided by the author

# Interfaces

Client interface defines the runtime contract the CloudEvents client supports.
No description provided by the author

# Type aliases

EventDefaulter is the function signature for extensions that are able to perform event defaulting.
Option is the function signature required to be considered an client.Option.
Receive is the signature of a fn to be invoked for incoming cloudevents.