streams

package
v0.0.0-...-f92c0a4 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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"`
	MaxRetries           int           `config:"max_retries"`
	Timeout              time.Duration `config:"timeout"`
	Backoff              backoff       `config:"backoff"`
}

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