Documentation ¶
Overview ¶
Package amqp implements the CloudEvent transport implementation using amqp.
Index ¶
- Constants
- type Encoding
- type Message
- type Option
- func WithConnOpt(opt amqp.ConnOption) Option
- func WithConnSASLPlain(username, password string) Option
- func WithEncoding(encoding Encoding) Option
- func WithReceiverLinkOption(opt amqp.LinkOption) Option
- func WithSenderLinkOption(opt amqp.LinkOption) Option
- func WithSessionOpt(opt amqp.SessionOption) Option
- type Transport
Constants ¶
const (
// TransportName is the name of this transport.
TransportName = "AMQP"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Encoding ¶
type Encoding int32
Encoding to use for amqp transport.
const ( // Default allows amqp transport implementation to pick. Default Encoding = iota // BinaryV02 is Binary CloudEvents spec v0.2. BinaryV02 // StructuredV02 is Structured CloudEvents spec v0.2. StructuredV02 // BinaryV03 is Binary CloudEvents spec v0.3. BinaryV03 // StructuredV03 is Structured CloudEvents spec v0.3. StructuredV03 // BinaryV1 is Binary CloudEvents spec v1.0. BinaryV1 // StructuredV1 is Structured CloudEvents spec v1.0. StructuredV1 // Unknown is unknown. Unknown )
type Message ¶
func (Message) CloudEventsVersion ¶
TODO: update this to work with AMQP
type Option ¶
Option is the function signature required to be considered an amqp.Option.
func WithConnOpt ¶
func WithConnOpt(opt amqp.ConnOption) Option
WithConnOpt sets a connection option for amqp
func WithConnSASLPlain ¶
WithConnSASLPlain sets SASLPlain connection option for amqp
func WithEncoding ¶
WithEncoding sets the encoding for amqp transport.
func WithReceiverLinkOption ¶
func WithReceiverLinkOption(opt amqp.LinkOption) Option
WithReceiverLinkOption sets a link option for amqp
func WithSenderLinkOption ¶
func WithSenderLinkOption(opt amqp.LinkOption) Option
WithSenderLinkOption sets a link option for amqp
func WithSessionOpt ¶
func WithSessionOpt(opt amqp.SessionOption) Option
WithSessionOpt sets a session option for amqp
type Transport ¶
type Transport struct { binding.BindingTransport // Encoding Encoding Encoding // AMQP Client *amqp.Client Session *amqp.Session Sender *amqp.Sender Node string // Receiver Receiver transport.Receiver // Converter is invoked if the incoming transport receives an undecodable // message. Converter transport.Converter // contains filtered or unexported fields }
func (*Transport) HasConverter ¶
HasConverter implements Transport.HasConverter
func (*Transport) HasTracePropagation ¶
HasTracePropagation implements Transport.HasTracePropagation
func (*Transport) SetConverter ¶
SetConverter implements Transport.SetConverter