Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Providers       []MetricsProvider `yaml:"providers"`
	MinPollInterval int64             `yaml:"min_poll_interval"`
	CoolDownPeriod  int64             `yaml:"cool_down_period"`
}

Config defines the autopilot configuration structure

func ReadFile

func ReadFile(f string) (*Config, error)

ReadFile reads a configuration file

type MetricsProvider

type MetricsProvider struct {
	Name   string `yaml:"name"`
	Type   string `yaml:"type"`
	Params string `yaml:"params"`
}

MetricsProvider provides metrics data to autopilot

Jump to

Keyboard shortcuts

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