file

package
v3.1.6+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(pollInterval time.Duration) types.ConfigSource

New makes a new fileConfigSource with the given config

Types

type Config

type Config struct {
	// How often to poll files (in seconds) to test for changes.  There are so
	// many edge cases that break inotify that it is more robust to simply poll
	// files than rely on that.
	// This option is not subject to watching and changes to it will require an
	// agent restart.
	PollRateSeconds int `yaml:"pollRateSeconds" default:"5"`
}

Config for the file-based config source

Jump to

Keyboard shortcuts

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