sqs

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQS

type SQS interface {
	Poll(handler func(wg *sync.WaitGroup, msg *sqs.Message))
	Delete(msg *sqs.Message) error
}

SQS An interface for SQS operations

func NewSQS

func NewSQS(opts SQSConfig) (SQS, error)

NewSQS Initialise a SQS instance

type SQSConfig

type SQSConfig struct {
	AWSKey            string
	AWSSecret         string
	AWSRegion         string
	URL               string
	BatchSize         int64
	WaitSeconds       int64
	VisibilityTimeout int64
	RunOnce           bool
	RunInterval       int
	Verbosity         int
	MaxRetries        int
	// contains filtered or unexported fields
}

SQSConfig Wrapper for SQSConfig methods

func (*SQSConfig) Delete

func (s *SQSConfig) Delete(msg *sqs.Message) error

Delete a SQS message from the queue

func (*SQSConfig) Poll

func (s *SQSConfig) Poll(handler func(wg *sync.WaitGroup, msg *sqs.Message))

Poll Poll for messages in the SQS

Jump to

Keyboard shortcuts

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