collector

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(l *loggerpkg.Logger, a *alarm.Alarm)

Types

type Collector

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

func New

func New(path, name string, outputMaker func(*loggerpkg.Logger) outputs.Output) *Collector

func (*Collector) NotifyClose

func (c *Collector) NotifyClose()

func (*Collector) NotifyWrite

func (c *Collector) NotifyWrite()

func (*Collector) OpenedSameFile

func (c *Collector) OpenedSameFile(fi os.FileInfo) bool

func (*Collector) Printf

func (c *Collector) Printf(format string, v ...interface{})

type Reader

type Reader interface {
	Read() (rows []map[string]interface{}, drain bool)
	SaveOffset() string
	SameFile(os.FileInfo) bool
	Close()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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