firehosebatch

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BatchSend added in v1.14.0

func BatchSend(ctx context.Context,
	client firehoseiface.FirehoseAPI,
	input firehose.PutRecordBatchInput,
	maxRetries int) ([]*firehose.Record, error)

BatchSend will break the input up into smaller requests based on the firehose size constraints, then call Send to forward those batches. Returns an error for non-retryable errors, and returns a list of records that are too big to send so the caller can handle those records as desired.

func Send

func Send(ctx context.Context, client firehoseiface.FirehoseAPI, input firehose.PutRecordBatchInput, maxRetries int) error

Send will call PutRecordBatch, retrying individual record failures.

Types

This section is empty.

Jump to

Keyboard shortcuts

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