event

package
Version: v0.0.0-...-abfb793 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

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

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

func NewSQSConsumer

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
t or T : Toggle theme light dark auto
y or Y : Canonical URL