firehose

package
v0.0.0-...-56ddd06 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultBufferFlushLimit = 500
	DefaultFlushInterval    = time.Second * 1

	FirehoseMaxRecords    = 500
	FirehoseMaxRecordSize = 1000 * 1024 // 1000 kb
	FirehoseMaxBatchSize  = 4 * 1024 * 1024
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(conf Config) *Client

func (*Client) Start

func (c *Client) Start(records <-chan *types.Record, progress chan<- types.Cursor)

type Config

type Config struct {
	EC2MetadataEndpoint string
	FirehoseStream      string
	BufferFlushLimit    int
	FlushInterval       time.Duration
}

Jump to

Keyboard shortcuts

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