message

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SQS = "SQS"
	SNS = "SNS"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Attribute

type Attribute struct {
	Type  string
	Value string
}

type Message

type Message struct {
	Content  string
	Metadata MessageMetadata
}

func New

func New(sqsMessage *sqs.Message) *Message

func (*Message) Unmarshal

func (m *Message) Unmarshal(v interface{}) error

type MessageAttributes

type MessageAttributes map[string]Attribute

type MessageMetadata

type MessageMetadata struct {
	MessageId         string
	ReceiptHandle     string
	MessageAttributes map[string]string
}

type SNSMessageBody

type SNSMessageBody struct {
	MessageAttributes MessageAttributes
	Message           string
}

Jump to

Keyboard shortcuts

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