unit

package
v0.0.0-...-2662bf7 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogEntry

type LogEntry struct {
	Timestamp int64
	// contains filtered or unexported fields
}

func (*LogEntry) Log

func (entry *LogEntry) Log() string

type LogFile

type LogFile struct {
	Path string
	Info os.FileInfo
}

func (*LogFile) GetATime

func (li *LogFile) GetATime() int64

func (*LogFile) GetCTime

func (li *LogFile) GetCTime() int64

type LogUnit

type LogUnit struct {
	Id   string
	Glob string
}

func (*LogUnit) StreamLines

func (lu *LogUnit) StreamLines(ctx context.Context) (<-chan string, <-chan error)

func (*LogUnit) StreamLogs

func (lu *LogUnit) StreamLogs(ctx context.Context, dateTimeLayout string, logPattern *regexp.Regexp) (chan *LogEntry, chan error)

type LogUnits

type LogUnits map[string]*LogUnit

func NewLogUnits

func NewLogUnits(logUnits []config.LogUnit) (LogUnits, error)

func (LogUnits) GetLogUnitIds

func (lu LogUnits) GetLogUnitIds() []string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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