sqs

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Queue

type Queue struct {
	URL             string `mapstructure:"url"`
	AccessKeyId     string `mapstructure:"access_key_id"`
	SecretAccessKey string `mapstructure:"secret_access_key"`
	Region          string `mapstructure:"region"`
	// contains filtered or unexported fields
}

Queue implements queue.QueueBackend using SQS

func NewQueue

func NewQueue(c map[string]any) (*Queue, error)

NewQueue returns a new initialized Queue

func (*Queue) Dequeue

func (q *Queue) Dequeue() ([]byte, bool)

Dequeue implememnts queue.QueueBackend.Dequeue

func (*Queue) Enqueue

func (q *Queue) Enqueue(message []byte) error

Enqueue implements queue.QueueBackend.Enqueue

Jump to

Keyboard shortcuts

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