streams

package
v0.0.0-...-41a83c1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MAX_RECORD_SIZE = 1024*1024 - 300

Functions

func New

func New(
	_ outputs.IndexManager,
	beat beat.Info,
	stats outputs.Observer,
	cfg *common.Config,
) (outputs.Group, error)

Types

type PartitionKeyProvider

type PartitionKeyProvider interface {
	PartitionKeyFor(event *publisher.Event) (string, error)
}

type StreamsConfig

type StreamsConfig struct {
	Region               string          `config:"region"`
	DeliveryStreamName   string          `config:"stream_name"`
	PartitionKey         string          `config:"partition_key"`
	PartitionKeyProvider string          `config:"partition_key_provider"`
	BatchSize            int             `config:"batch_size"`
	BatchSizeBytes       int             `config:"batch_size_bytes"`
	MaxRetries           int             `config:"max_retries"`
	Timeout              time.Duration   `config:"timeout"`
	Backoff              backoff.Backoff `config:"backoff"`
	GZip                 bool            `config:"gzip"`
}

func (*StreamsConfig) Validate

func (c *StreamsConfig) Validate() error

Jump to

Keyboard shortcuts

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