Documentation ¶
Index ¶
- Constants
- type Option
- type Transport
- func (t *Transport) HasConverter() bool
- func (t *Transport) HasTracePropagation() bool
- func (t *Transport) Send(ctx context.Context, event cloudevents.Event) (context.Context, *cloudevents.Event, error)
- func (t *Transport) SetConverter(c transport.Converter)
- func (t *Transport) SetReceiver(r transport.Receiver)
- func (t *Transport) StartReceiver(ctx context.Context) (err error)
Constants ¶
View Source
const (
// TransportName is the name of this transport.
TransportName = "AWS SNS"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
Option is the function signature required to be considered an nats.Option.
func WithEncoding ¶
WithEncoding sets the encoding for NATS transport.
type Transport ¶
type Transport struct { Encoding encoding.Encoding Client *_sqs.SQS QueueURL string Receiver transport.Receiver // Converter is invoked if the incoming transport receives an undecodable // message. Converter transport.Converter // contains filtered or unexported fields }
Transport acts as both a http client and a http handler.
func (*Transport) HasConverter ¶
HasConverter implements Transport.HasConverter
func (*Transport) HasTracePropagation ¶
HasTracePropagation implements Transport.HasTracePropagation
func (*Transport) Send ¶
func (t *Transport) Send(ctx context.Context, event cloudevents.Event) (context.Context, *cloudevents.Event, error)
Send implements Transport.Send
func (*Transport) SetConverter ¶
SetConverter implements Transport.SetConverter
func (*Transport) SetReceiver ¶
SetReceiver implements Transport.SetReceiver
Click to show internal directories.
Click to hide internal directories.