sqsHelper

package
v0.0.0-...-d40419c Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultWaitTime = 1 // Default polling SQS interval in seconds

Variables

This section is empty.

Functions

This section is empty.

Types

type SQS

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

func NewSQS

func NewSQS(session *session.Session, timeout time.Duration) SQS

func (SQS) Delete

func (s SQS) Delete(ctx context.Context, url, handle string) error

func (SQS) Poll

func (s SQS) Poll(ctx context.Context, chn chan<- *sqs.Message, sqsQueueUrl string, maxMessages int64)

func (SQS) Receive

func (s SQS) Receive(ctx context.Context, url string, maxMsg int64) ([]*sqs.Message, error)

Jump to

Keyboard shortcuts

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