Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FirehoseAPI ¶ added in v0.0.8
type FirehoseAPI interface {
PutRecordBatch(ctx context.Context, params *firehose.PutRecordBatchInput, optFns ...func(*firehose.Options)) (*firehose.PutRecordBatchOutput, error)
}
FirehoseAPI is the part of *firehose.Client that Queue uses.
type Option ¶
type Option func(*Queue)
Option is a type for constructor options
func BatchInterval ¶ added in v0.0.6
BatchInterval is an option to specify batch interval
func ErrorHandler ¶
ErrorHandler is an option to specify the error handler
func MaxQueueLength ¶
MaxQueueLength is an option to specify max length of in-memory queue
type Queue ¶
type Queue struct {
DeliveryStreamName *string
// contains filtered or unexported fields
}
Queue manages a sending list for firehose
func New ¶
func New(fh FirehoseAPI, DeliveryStreamName string, opts ...Option) *Queue
New return new Queue