Documentation
¶
Overview ¶
Package kinesis implements a batch producer built on top of the official AWS SDK.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrRecordSizeExceeded = errors.New("kinesis: record size exceeded")
)
Errors.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// StreamName is the Kinesis stream.
StreamName string
// FlushInterval is a regular interval for flushing the buffer. Defaults to 1s.
FlushInterval time.Duration
// BufferSize determines the batch request size. Must not exceed 500. Defaults to 500.
BufferSize int
// BacklogSize determines the channel capacity before Put() will begin blocking. Defaults to 500.
BacklogSize int
// Backoff determines the backoff strategy for record failures.
Backoff backoff.Backoff
// Logger is the logger used. Defaults to log.Log.
Logger log.Interface
// Client is the Kinesis API implementation.
Client kinesisiface.KinesisAPI
}
Click to show internal directories.
Click to hide internal directories.