watch

package
v0.0.0-...-7cc1611 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2016 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Watch

type Watch struct {
	*L.Life
	Files     []string
	Timer     *time.Timer
	OutputDir string
	Year      int
	Month     int
	Day       int
	Regexs    []*regexp.Regexp
	BadLines  []string
	Duration  time.Duration
}

Watch watches audit files and alerts if there are errors

func NewWatch

func NewWatch(c CONF.Conf) (newWatch *Watch, err error)

NewWatch creates a new watch object

func (Watch) Close

func (w Watch) Close() error

Close satisfies the io.Closer interface for Life and Death

func (Watch) ReadFiles

func (w Watch) ReadFiles()

ReadFiles reads all the specified files and parses them

Jump to

Keyboard shortcuts

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