Correct respondd naming

This commit is contained in:
Julian Kornberger 2016-03-09 03:26:08 +01:00
parent a575c7132d
commit c759c2a051
3 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
---
responedd:
respondd:
enable: true
collectinterval: 15
webserver:

View File

@ -31,7 +31,7 @@ func main() {
flag.Parse()
config = models.ConfigReadFile(configFile)
collectInterval := time.Second * time.Duration(config.Responedd.CollectInterval)
collectInterval := time.Second * time.Duration(config.Respondd.CollectInterval)
if config.Nodes.Enable {
go nodes.Saver(config)
@ -49,7 +49,7 @@ func main() {
http.Handle("/", http.FileServer(http.Dir(config.Webserver.Webroot)))
}
if config.Responedd.Enable {
if config.Respondd.Enable {
respondDaemon = respond.NewDaemon(func(coll *respond.Collector, res *respond.Response) {
switch coll.CollectType {

View File

@ -9,12 +9,12 @@ import (
//Config the config File of this daemon
type Config struct {
Responedd struct {
Respondd struct {
Enable bool `yaml:"enable"`
Port string `yaml:"port"`
Address string `yaml:"address"`
CollectInterval int `yaml:"collectinterval"`
} `yaml:"responedd"`
} `yaml:"respondd"`
Webserver struct {
Enable bool `yaml:"enable"`
Port string `yaml:"port"`