middleware

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextFromMessageAttributes added in v0.2.0

func ContextFromMessageAttributes(next sqsprocessor.ProcessFunc) sqsprocessor.ProcessFunc

ContextFromMessageAttributes assumes the MessageAttributeValueCarrier was used alongside a propagation.TraceContext to inject a trace from the sender

func JSONDecode

func JSONDecode[T any](processFunc CustomProcessFunc[T]) sqsprocessor.ProcessFunc

func RawMessage added in v0.2.0

func RawMessage(processFunc CustomProcessFunc[string]) sqsprocessor.ProcessFunc

func XMLDecode

func XMLDecode[T any](processFunc CustomProcessFunc[T]) sqsprocessor.ProcessFunc

Types

type CustomProcessFunc

type CustomProcessFunc[T any] func(context.Context, T) sqsprocessor.ProcessResult

type Decoder added in v0.2.0

type Decoder[T any] func(processFunc CustomProcessFunc[T]) sqsprocessor.ProcessFunc

type MessageAttributeValueCarrier added in v0.2.0

type MessageAttributeValueCarrier struct {
	// contains filtered or unexported fields
}

func NewMessageAttributeValueCarrier added in v0.2.0

func NewMessageAttributeValueCarrier(init map[string]types.MessageAttributeValue) MessageAttributeValueCarrier

func (MessageAttributeValueCarrier) Get added in v0.2.0

func (MessageAttributeValueCarrier) Keys added in v0.2.0

func (m MessageAttributeValueCarrier) Keys() (keys []string)

func (MessageAttributeValueCarrier) Set added in v0.2.0

func (m MessageAttributeValueCarrier) Set(key string, value string)

func (MessageAttributeValueCarrier) ToMetadata added in v0.2.0

func (m MessageAttributeValueCarrier) ToMetadata() (ret middleware.Metadata)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL