firehose

package
v0.0.0-...-5ae846b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// AWS Firehose client
	Firehose *firehose.Firehose

	// Name of the firehose stream
	Stream string

	// Advanced: tweak the queue
	// Capacity: number of records before we start dropping
	Capacity int
	// Concurrency: number of records to write simulaneously
	Concurrency int
}

Config for firehose

type Handler

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

Handler for firehose

func New

func New(session *session.Session, stream string) *Handler

New firehose logger with the firehose client and the name of the stream

func NewConfig

func NewConfig(config *Config) *Handler

NewConfig fn

func (*Handler) Flush

func (h *Handler) Flush()

Flush manually and block until we've drained

func (*Handler) HandleLog

func (h *Handler) HandleLog(e *log.Entry) error

HandleLog buffers the logs then sends them to firehose

Jump to

Keyboard shortcuts

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