s3

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2016 License: MIT Imports: 16 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AwsKeyId    string `json:"awsKeyId"`
	AwsSecKey   string `json:"awsSecKey"`
	AwsS3Bucket string `json:"awsS3Bucket"`
	AwsS3Region string `json:"awsS3Region"`

	LocalPath       string `json:"localPath"`
	Path            string `json:"path"`
	TimeSliceFormat string `json:"timeSliceFormat"`
	AwsS3OutputKey  string `json:"awsS3OutputKey"`
}

type FileSaver

type FileSaver struct {
	Config      Config
	Writer      *gzip.Writer
	FileInfo    OutputFileInfo
	RateCounter *ratecounter.RateCounter
}

func (*FileSaver) WriteToFile

func (fileSaver *FileSaver) WriteToFile(event *buffer.Event) error

type OutputFileInfo

type OutputFileInfo struct {
	Filename string
	Count    int
}

type S3Writer

type S3Writer struct {
	Config     Config
	Sender     buffer.Sender
	S3Uploader *s3manager.Uploader
	// contains filtered or unexported fields
}

func (*S3Writer) Init

func (s3Writer *S3Writer) Init(config json.RawMessage, sender buffer.Sender) error

func (*S3Writer) InitiateUploadToS3

func (s3Writer *S3Writer) InitiateUploadToS3(fileSaver *FileSaver)

func (*S3Writer) Start

func (s3Writer *S3Writer) Start() error

func (*S3Writer) Stop

func (s *S3Writer) Stop() error

func (*S3Writer) WaitForUpload

func (s3Writer *S3Writer) WaitForUpload()

Jump to

Keyboard shortcuts

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