worker

package
v0.0.0-...-9c4ca7d Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2015 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Getenv

func Getenv(name, defaultVal string) string

func NewSQSQueue

func NewSQSQueue(s *sqs.SQS, name string) (*queue.Queue, error)

func Start

func Start(q *queue.Queue, h Handler)

Types

type Handler

type Handler interface {
	HandleMessage(msg *sqs.Message) error
}

type HandlerFunc

type HandlerFunc func(msg *sqs.Message) error

func (HandlerFunc) HandleMessage

func (f HandlerFunc) HandleMessage(msg *sqs.Message) error

Jump to

Keyboard shortcuts

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