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
func InitConfigFromString ¶ added in v0.2.1
func InitConfigFromString(configString string)
InitConfigFromString creates a config object from the give configstring primary for testing
Types ¶
type Config ¶
type Config struct { Main struct { NagiosSpoolfileFolder string NagiosSpoolfileWorker int InfluxWorker int MaxInfluxWorker int DumpFile string NagfluxSpoolfileFolder string FieldSeparator string BufferSize int } ModGearman struct { Enabled bool Address string Queue string Secret string SecretFile string Worker int } Log struct { LogFile string MinSeverity string } Monitoring struct { WebserverPort string } Influx struct { Enabled bool Address string Arguments string Version string CreateDatabaseIfNotExists bool NastyString string NastyStringToReplace string HostcheckAlias string } Livestatus struct { Type string Address string } Elasticsearch struct { Enabled bool Address string Index string Version string HostcheckAlias string NumberOfShards int NumberOfReplicas int IndexRotation string } }
Config Represents the config file.
Click to show internal directories.
Click to hide internal directories.