conf

package
v1.1.1-0...-f7ff9f2 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	BackendServers []string `toml:"backend-servers"`
	User           string   `toml:"user"`
	Pass           string   `toml:"pass"`

	// typically us-west | us-east
	// prepended to metrics
	Region string `toml:"region"`

	// typically develop | beta | prod
	// prepended to metrics
	Environment string `toml:"env"`

	ReadTimeout int `toml:"read-timeout"`

	MqttStoreMysql MysqlConfiguration   `toml:"mqtt-store"`
	Mqtt           MqttConfiguration    `toml:"mqtt"`
	Influx         InfluxConfiguration  `toml:"influx"`
	Librato        LibratoConfiguration `toml:"librato"`
}

func LoadConfiguration

func LoadConfiguration(fileName string) *Configuration

func (*Configuration) GetReadTimeout

func (c *Configuration) GetReadTimeout() time.Duration

type InfluxConfiguration

type InfluxConfiguration struct {
	Host     string `toml:"host"`
	User     string `toml:"user"`
	Pass     string `toml:"pass"`
	Database string `toml:"database"`
}

type LibratoConfiguration

type LibratoConfiguration struct {
	Email string `toml:"email"`
	Token string `toml:"token"`
}

type MqttConfiguration

type MqttConfiguration struct {
	ListenAddress string `toml:"listen-address"`
	Cert          string `toml:"cert"`
	Key           string `toml:"key"`
}

type MysqlConfiguration

type MysqlConfiguration struct {
	ConnectionString string `toml:"connection-string"`
	Select           string `toml:"select"`
}

Jump to

Keyboard shortcuts

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