Versions in this module Expand all Collapse all v0 v0.3.0 Mar 15, 2020 Changes in this version + var ErrStreamSeek = errors.New("cannot seek to this position in stream") + type CompressorSeekWrapper struct + func NewCompressorSeekWrapper(backend ReadSeekCloser, compression string) *CompressorSeekWrapper + func (c *CompressorSeekWrapper) Close() error + func (c *CompressorSeekWrapper) Read(p []byte) (n int, err error) + func (c *CompressorSeekWrapper) Seek(offset int64, whence int) (ret int64, err error) + type Logfile struct + func NewLogFile(r ReadSeekCloser, start int64) *Logfile + func (l *Logfile) AddPattern(level MonitoringResult, pattern string) error + func (l *Logfile) AddPatterns(level MonitoringResult, patterns []string) error + func (l *Logfile) Close() (err error) + func (l *Logfile) Offset() int64 + func (l *Logfile) Scan() (res MonitoringResult, counts [MonitorCount]int64, err error) + type MonitoringResult int + const MonitorCount + const MonitorCritical + const MonitorOk + const MonitorUnknown + const MonitorWarning + func (m MonitoringResult) String() string + type ReadSeekCloser interface