config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2015 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfig

func InitConfig(configPath string)

InitConfig creates a config object from the give configpath

Types

type Config

type Config struct {
	Main struct {
		NagiosSpoolfileFolder  string
		NagiosSpoolfileWorker  int
		InfluxWorker           int
		MaxInfluxWorker        int
		DumpFile               string
		NagfluxSpoolfileFolder string
	}
	Log struct {
		LogFile     string
		MinSeverity string
	}
	Monitoring struct {
		WebserverPort string
	}
	Influx struct {
		Address                   string
		Arguments                 string
		Version                   float32
		CreateDatabaseIfNotExists bool
		NastyString               string
		NastyStringToReplace      string
	}
	Grafana struct {
		FieldSeperator string
	}
	Livestatus struct {
		Type    string
		Address string
	}
}

Config Represents the config file.

func GetConfig

func GetConfig() Config

GetConfig returns the static config object

Jump to

Keyboard shortcuts

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