queue

package
v0.0.0-...-bc6c5c1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(k context.Kontext, sqsApi *sqs.SQS, queueUrl *string, fn HandleFunc, opts ...Option) <-chan struct{}

func Subscribe

func Subscribe(w io.Writer, snsApi *sns.SNS, sqsApi *sqs.SQS, topicName, queueName string) (*string, error)

Types

type Envelope

type Envelope struct {
	Message *sqs.Message
	Err     error
}

type HandleFunc

type HandleFunc func(k context.Kontext, message *sqs.Message) error

type Option

type Option func(*config)

func Workers

func Workers(n int) Option

Jump to

Keyboard shortcuts

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