Documentation
¶
Index ¶
- type KinesisClient
- type Writer
- type WriterConfigOption
- func WithBufferErrorHandler(handler func(err error, elements [][]byte)) WriterConfigOption
- func WithBufferFlushInterval(interval time.Duration) WriterConfigOption
- func WithBufferFlushTimeout(timeout time.Duration) WriterConfigOption
- func WithBufferRecordWindow(window uint32) WriterConfigOption
- func WithBufferWriteTimeout(timeout time.Duration) WriterConfigOption
- func WithKinesisClient(client KinesisClient) WriterConfigOption
- func WithSplitFunc(fn bufio.SplitFunc) WriterConfigOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KinesisClient ¶
type KinesisClient interface {
PutRecords(ctx context.Context, params *kinesis.PutRecordsInput, optFns ...func(*kinesis.Options)) (*kinesis.PutRecordsOutput, error)
}
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer writes records to a Kinesis stream.
type WriterConfigOption ¶
type WriterConfigOption func(*writerConfig)
WriterConfigOption is a configuration option for a Writer.
func WithBufferErrorHandler ¶
func WithBufferErrorHandler(handler func(err error, elements [][]byte)) WriterConfigOption
WithBufferErrorHandler sets the error handler for the buffer.
func WithBufferFlushInterval ¶
func WithBufferFlushInterval(interval time.Duration) WriterConfigOption
WithBufferFlushInterval sets the flush interval for the buffer.
func WithBufferFlushTimeout ¶
func WithBufferFlushTimeout(timeout time.Duration) WriterConfigOption
WithBufferFlushTimeout sets the flush timeout for the buffer.
func WithBufferRecordWindow ¶
func WithBufferRecordWindow(window uint32) WriterConfigOption
WithBufferRecordWindow sets the record window for the buffer.
func WithBufferWriteTimeout ¶
func WithBufferWriteTimeout(timeout time.Duration) WriterConfigOption
WithBufferWriteTimeout sets the write timeout for the buffer.
func WithKinesisClient ¶
func WithKinesisClient(client KinesisClient) WriterConfigOption
WithKinesisClient sets the Kinesis client.
func WithSplitFunc ¶
func WithSplitFunc(fn bufio.SplitFunc) WriterConfigOption
WithSeparator sets the separator between records.
Click to show internal directories.
Click to hide internal directories.