config

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2014 License: Apache-2.0 Imports: 2 Imported by: 72

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = &Config{
	Apibase: "https://mackerel.io",
	Root:    "/var/lib/mackerel-agent",
	Pidfile: "/var/run/mackerel-agent.pid",
	Roles:   []string{},
	Verbose: false,
}

Functions

This section is empty.

Types

type Config

type Config struct {
	Apibase         string
	Apikey          string
	Root            string
	Pidfile         string
	Roles           []string
	Verbose         bool
	Plugin          map[string]PluginConfigs
	DeprecatedSensu map[string]PluginConfigs `toml:"sensu"` // DEPRECATED this is for backward compatibility
}

func LoadConfig

func LoadConfig(conffile string) (Config, error)

func LoadConfigFile

func LoadConfigFile(file string) (Config, error)

type PluginConfig

type PluginConfig struct {
	Command string
}

type PluginConfigs

type PluginConfigs map[string]PluginConfig

Jump to

Keyboard shortcuts

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