file

package
v4.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2019 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

func (*Config) New

func (c *Config) New() (types.ConfigSource, error)

New creates a new file remote config source from the target config

func (*Config) Validate

func (c *Config) Validate() error

Validate the config

Jump to

Keyboard shortcuts

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