event

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2017 License: Apache-2.0 Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer

type Consumer interface {
	PollForEvents(ctx context.Context)
}

Consumer defines methods to consume events from a queue

func NewKinesisConsumer added in v0.2.0

func NewKinesisConsumer(kinesis kinesisiface.KinesisAPI, processor Processor, streamName string) (Consumer, error)

func NewSQSConsumer added in v0.2.0

func NewSQSConsumer(sqs sqsiface.SQSAPI, processor Processor, queueName string) (Consumer, error)

type Processor

type Processor interface {
	ProcessEvent(event string) error
}

Processor defines methods to process events

func NewProcessor

func NewProcessor(stores store.Stores) Processor

Jump to

Keyboard shortcuts

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