handler

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnknownDestination = errors.New("unknown destination type")

Functions

This section is empty.

Types

type Handler

type Handler interface {
	Handler(*io.PipeReader, time.Time) (func() error, error)
	LastRun() (time.Time, error)
}

func NewHandler

func NewHandler(destination config.Destination) (Handler, error)

type S3Handler

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

func (S3Handler) Handler

func (h S3Handler) Handler(reader *io.PipeReader, timestamp time.Time) (func() error, error)

func (S3Handler) LastRun

func (h S3Handler) LastRun() (time.Time, error)

Jump to

Keyboard shortcuts

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