beater

package
v0.0.0-...-9c91439 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2020 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildFileList2

func BuildFileList2(input config.Input) (list []string)

Performance enhanced version of the subroutine to build the filelist. No more costly filewalk.

func GetAge

func GetAge(path string, attribute string) (val time.Time)

func New

func New(b *beat.Beat, cfg *common.Config) (beat.Beater, error)

New creates an instance of fileagebeat.

func SpawnCrawler

func SpawnCrawler(input config.Input, bt *Fileagebeat, b *beat.Beat)

Types

type Fileagebeat

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

Fileagebeat configuration.

func (*Fileagebeat) Run

func (bt *Fileagebeat) Run(b *beat.Beat) error

Run starts fileagebeat.

func (*Fileagebeat) Stop

func (bt *Fileagebeat) Stop()

Stop stops fileagebeat.

Jump to

Keyboard shortcuts

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