input

package
v0.0.0-...-828de9f Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

type Input interface {
	Ingest(model.S3Objects, *sync.WaitGroup)
	List(*regexp.Regexp) (model.S3Objects, error)
	ToParser() *chan []byte
}

type Local

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

func NewLocal

func NewLocal(directory string) (*Local, error)

func (*Local) Ingest

func (l *Local) Ingest(list model.S3Objects, wgp *sync.WaitGroup)

func (*Local) List

func (l *Local) List(match *regexp.Regexp) (model.S3Objects, error)

func (*Local) ToParser

func (l *Local) ToParser() *chan []byte

type S3

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

func NewS3

func NewS3(profile, region, bucket, key_prefix string, workers int) (*S3, error)

NewS3

...

func (*S3) Ingest

func (s *S3) Ingest(list model.S3Objects, wgp *sync.WaitGroup)

Ingest

...

func (*S3) List

func (s *S3) List(match *regexp.Regexp) (model.S3Objects, error)

List

Lists all log files under the configured keyPrefix and scoped to two range values

func (*S3) ToParser

func (s *S3) ToParser() *chan []byte

Jump to

Keyboard shortcuts

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