package
1.2.0
Repository: https://github.com/cloudevents/sdk-go.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
Package format formats structured events.
Package spec provides spec-version metadata.
Package test provides re-usable functions for binding tests.
No description provided by the author

# Functions

This is the full algorithm to encode a Message using transformers: 1.
No description provided by the author
No description provided by the author
No description provided by the author
Invokes the encoders.
Translates a Message with a valid Structured or Binary representation to an Event The TransformerFactories **aren't invoked** during the transformation to event, but after the event instance is generated.
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.

# 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 it 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

# Variables

No description provided by the author
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.

# Structs

BindingTransport implements transport.Transport using a Sender and Receiver.

# Interfaces

BinaryEncoder is used to visit a binary Message and generate a new representation.
Closer is the common interface for things that can be closed.
ExactlyOnceMessage is implemented by received Messages that support QoS 2.
Message is the interface to a binding-specific message containing an event.
Message Wrapper interface is used to walk through a decorated Message and unwrap it.
ReceiveCloser is a Receiver that can be closed.
Receiver receives messages.
Requester sends a message and receives a response Optional interface that may be implemented by protocols that support request/response correlation.
SendCloser is a Sender that can be closed.
Sender sends messages.
StructuredEncoder 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 cloudevents.Event object to implement Message.
No description provided by the author
Utility type alias to manage multiple TransformerFactory.