# Packages
Package test provides Client test helpers.
# 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.
New produces a new client with the provided transport object and applied client options.
NewDefaultDataContentTypeIfNotSet returns a defaulter that will inspect the provided event and set the provided content type if content type is found to be empty.
NewHTTP provides the good defaults for the common case using an HTTP Protocol client.
No description provided by the author
WithEventDefaulter adds an event defaulter to the end of the defaulter chain.
No description provided by the author
No description provided by the author
WithInboundContextDecorator configures a new inbound context decorator.
WithObservabilityService configures the observability service to use to record traces and metrics.
WithPollGoroutines configures how much goroutines should be used to poll the Receiver/Responder/Protocol implementations.
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
NewDefault has been replaced by NewHTTP Deprecated.
NewObserved produces a new client with the provided transport object and applied client options.
# Structs
No description provided by the author
# Interfaces
Client interface defines the runtime contract the CloudEvents client supports.
No description provided by the author
ObservabilityService is an interface users can implement to record metrics, create tracing spans, and plug other observability tools in the Client.
# 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.
ReceiveFull is the signature of a fn to be invoked for incoming cloudevents.