validator

package
v0.0.0-...-d42865c Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateFile

func ValidateFile(filename string) error

ValidateFile validates a single file and returns

Types

type Validator

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

func New

func New(patterns []string, logger log.Logger, stats prometheus.Registerer) *Validator

New Validator monitoring paths, which is a list of file globs.

func (*Validator) Shutdown

func (v *Validator) Shutdown()

Shutdown should be called before process shutdown

Jump to

Keyboard shortcuts

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