icingabeat/config/config.go

31 lines
833 B
Go
Raw Normal View History

// Config is put into a different package to prevent cyclic imports in case
// it is needed in several locations
package config
import "time"
// Config options
type Config struct {
2016-12-30 14:44:23 +01:00
Host string `config:"host"`
Port int `config:"port"`
User string `config:"user"`
Password string `config:"password"`
RetryInterval time.Duration `config:"retry_interval"`
2017-01-03 09:34:48 +01:00
SkipSSLVerify bool `config:"skip_ssl_verify"`
2016-12-30 14:44:23 +01:00
Eventstream EventstreamConfig `config:"eventstream"`
}
// EventstreamConfig optoins
type EventstreamConfig struct {
Types []string `config:"types"`
Filter string `config:"filter"`
}
// DefaultConfig values
var DefaultConfig = Config{
RetryInterval: 1 * time.Second,
Host: "localhost",
Port: 5665,
}