watcher

package
v0.1.1-0...-718c826 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	Name string `json:"name"`
	// TODO: right now tags should be sent every time will fix it later for performance improvements
	Tags      []map[string]interface{} `json:"tags"`
	Log       string                   `json:"log"`
	Timestamp time.Time                `json:"time"`
}

type Watcher

type Watcher interface {
	Watch()
	Result() chan Result
	Close()
	String() string
}

func NewFileWatcher

func NewFileWatcher(files config.Watchers) Watcher

Jump to

Keyboard shortcuts

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