kinesis

package
v0.0.0-...-dad4d3c Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: MIT Imports: 10 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 = k.Config

Config of for this handler

type Handler

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

Handler implementation.

func New

func New(stream string) *Handler

New handler sending logs to Kinesis. To configure producer options or pass your own AWS Kinesis client use NewConfig instead.

func NewConfig

func NewConfig(config Config) *Handler

NewConfig handler sending logs to Kinesis. The `config` given is passed to the batch Kinesis producer, and a random value is used as the partition key for even distribution.

func (*Handler) Handle

func (h *Handler) Handle(e *log.Entry)

Handle implements log.Handler.

Jump to

Keyboard shortcuts

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