tailing

package
v0.0.0-...-97dfe3f Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitTailsFromDir

func InitTailsFromDir(dir string) []*tail.Tail

Starts tailing all files in provided directory

func TailAndPublish

func TailAndPublish(lines chan *tail.Line, publisher observer.Publisher)

Routine tailing a file and sending lines to logs channel

func TailNewFiles

func TailNewFiles(watcher *fsnotify.Watcher, logsPublisher observer.Publisher, sigChan chan os.Signal)

Monitors and tails new files, returns on signal interruption

Types

This section is empty.

Jump to

Keyboard shortcuts

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