transporter

package
v0.0.0-...-ec26dd8 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TimeSource utils.TimeSource = utils.RealTime{}
)

Functions

func NewTransporter

func NewTransporter(shutdownHandler shutdown.ShutdownHandler,
	inputChan <-chan transport.Batch,
	txnsWritten chan<- *ordered_map.OrderedMap,
	statsChan chan stats.Stat,
	log logrus.Entry,
	id int,
	streamName string,
	retryPolicy backoff.BackOff,
	awsRegion *string,
	awsAccessKeyId *string,
	awsSecretAccessKey *string,
	endpoint *string) transport.Transporter

NewTransporter returns a kinesis transporter

func NewTransporterWithInterface

func NewTransporterWithInterface(shutdownHandler shutdown.ShutdownHandler,
	inputChan <-chan transport.Batch,
	txnsWritten chan<- *ordered_map.OrderedMap,
	statsChan chan stats.Stat,
	log logrus.Entry,
	id int,
	streamName string,
	client kinesisiface.KinesisAPI,
	retryPolicy backoff.BackOff) transport.Transporter

Types

type KinesisTransporter

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

func (*KinesisTransporter) StartTransporting

func (t *KinesisTransporter) StartTransporting()

StartTransporting reads in message batches, outputs its data to Kinesis and then sends a progress report on the batch

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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