s3

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Key

func Key(prefix, firstSeq, lastSeq string) string

Types

type Emitter

type Emitter struct {
	Bucket string
	Region string
}

Emitter stores data in S3 bucket.

The use of this struct requires the configuration of an S3 bucket/endpoint. When the buffer is full, this struct's Emit method adds the contents of the buffer to S3 as one file. The filename is generated from the first and last sequence numbers of the records contained in that file separated by a dash. This struct requires the configuration of an S3 bucket and endpoint.

func (Emitter) Emit

func (e Emitter) Emit(s3Key string, b io.ReadSeeker) error

Emit is invoked when the buffer is full. This method emits the set of filtered records.

type ManifestEmitter

type ManifestEmitter struct {
	OutputStream string
	Bucket       string
	Prefix       string
}

An implementation of Emitter that puts event data on S3 file, and then puts the S3 file path onto the output stream for processing by manifest application.

func (ManifestEmitter) Emit

func (e ManifestEmitter) Emit(s3Key string, b io.ReadSeeker) error

Jump to

Keyboard shortcuts

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