# Packages
No description provided by the author
No description provided by the author
No description provided by the author
Package test provides re-usable functions for binding tests.
No description provided by the author
# Functions
Invokes the encoders.
Get a configuration value from the provided context.
Translates a Message with a valid Structured or Binary representation to an Event.
No description provided by the author
Configure which format to use when marshalling the event to structured mode.
WithFinish returns a wrapper for m that calls finish() and m.Finish() in its Finish().
Force binary encoding during the encoding process.
Force structured encoding during the encoding process.
Define the preferred encoding from event to message during the encoding process.
Skip direct binary to binary encoding during the encoding process.
Skip direct structured to structured encoding during the encoding process.
This is the full algorithm to encode a Message using transformers: 1.
# Constants
Binary encoding as specified in https://github.com/cloudevents/spec/blob/master/spec.md#message.
Message is an instance of EventMessage or it contains EventMessage nested (through MessageWrapper).
Structured encoding as specified in https://github.com/cloudevents/spec/blob/master/spec.md#message.
When the encoding is unknown (which means that the message is a non-event).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
Generic error when a conversion of a Message to an Event fails.
ErrNotBinary returned by Message.Binary for non-binary messages.
ErrNotStructured returned by Message.Structured for non-structured messages.
Error to specify that or the Message is not an event or it is encoded with an unknown encoding.
# Interfaces
BinaryWriter is used to visit a binary Message and generate a new representation.
ExactlyOnceMessage is implemented by received Messages that support QoS 2.
Message is the interface to a binding-specific message containing an event.
The ReadStructured and ReadBinary methods allows to perform an optimized encoding of a Message to a specific data structure.
Message Wrapper interface is used to walk through a decorated Message and unwrap it.
StructuredWriter is used to visit a structured Message and generate a new representation.
Implements a transformation process while transferring the event from the Message implementation to the provided encoder
A transformer could optionally not provide an implementation for binary and/or structured encodings, returning nil to the respective factory method.
# Type aliases
Encoding enum specifies the type of encodings supported by binding interfaces.
EventMessage type-converts a event.Event object to implement Message.
EventTransformer mutates the provided Event.
Utility type alias to manage multiple TransformerFactory.