streamer

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2018 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetRecordsEntry

type GetRecordsEntry struct {
	Created time.Time
	Shard   string
	Records []*kinesis.Record
	Err     error
}

GetRecordsEntry returns the results of the last get records request

type KinesisStreamer

type KinesisStreamer struct {
	// contains filtered or unexported fields
}

KinesisStreamer this manages streaming data from a number of shards asynchronously

func New

func New(svc kinesisiface.KinesisAPI, iterators map[string]*string, pollFreqMs int64, logger *logrus.Logger) *KinesisStreamer

New return a new configured streamer

func (*KinesisStreamer) StartGetRecords

func (ks *KinesisStreamer) StartGetRecords() chan *GetRecordsEntry

StartGetRecords intiate the streaming of records using the configured iterators

Jump to

Keyboard shortcuts

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