Documentation ¶
Index ¶
Constants ¶
View Source
const SQSMessageOnS3Key = "message-on-s3"
Variables ¶
This section is empty.
Functions ¶
func NewSQSClient ¶
NewSQSClient constructs a Messenger which sends messages to an SQS queue awsRegion - region that the queue was created awsQueue - name of the queue Note: Calling code needs SQS IAM permissions
func RetrieveMessageFromS3 ¶
Types ¶
type Messenger ¶
type Messenger struct { QueueName string QueueURL string Region string S3Session *s3.SessionWithHelpers S3BucketName string MessageGroupID *string DelaySeconds *int64 RequestIDHeaderKey string }
Messenger sends an arbitrary message via SQS
func (*Messenger) SendSQSMessage ¶
func (m *Messenger) SendSQSMessage(headers map[string]string, body string, currentRequestID *string, sqsType string) (string, error)
SendSQSMessage sends a message to the queue associated with the messenger headers - string message attributes of the SQS message (see AWS SQS documentation) body - body of the SQS message (see AWS SQS documentation)
Click to show internal directories.
Click to hide internal directories.