queue

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQSAdapter

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

SQSAdapter is an implementation of a QueueAdapter using AWS SQS

func NewSQSAdapter

func NewSQSAdapter(client *sqs.SQS) *SQSAdapter

NewSQSAdapter creates a new implementation of a SQSAdapter

func (*SQSAdapter) Listen

func (qa *SQSAdapter) Listen(service *types.Service) (<-chan *types.Response, error)

Listen listens for messages

func (*SQSAdapter) ListenWithOpts added in v1.0.0

func (qa *SQSAdapter) ListenWithOpts(service *types.Service, opts types.Options) (<-chan *types.Response, error)

ListenWithOpts listens for messages, with options

func (*SQSAdapter) Queue

func (qa *SQSAdapter) Queue(service *types.Service, request types.Request) (string, error)

Queue queues a message

func (*SQSAdapter) QueueWithOpts added in v1.0.0

func (qa *SQSAdapter) QueueWithOpts(service *types.Service, request types.Request, opts types.Options) (string, error)

QueueWithOpts queues a message, with options.

Jump to

Keyboard shortcuts

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