collection

package
v0.0.0-...-bb75541 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2016 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsumerCollection

type ConsumerCollection struct {
	Consumers []consumer.MessageConsumer
	// contains filtered or unexported fields
}

ConsumerCollection controls the MessageConsumers

func New

New creates a ConsumerCollection.

func (*ConsumerCollection) Start

func (cc *ConsumerCollection) Start(input <-chan *sqs.Message) error

Start makes all consumers start to work. They will compete for sqs.Message from the input channel.

func (*ConsumerCollection) Wait

func (cc *ConsumerCollection) Wait()

Wait blocks until all consumers stop.

Jump to

Keyboard shortcuts

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