2016-12-02 11:51:44 +01:00
|
|
|
// Config is put into a different package to prevent cyclic imports in case
|
|
|
|
// it is needed in several locations
|
|
|
|
|
|
|
|
package config
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
2016-12-08 17:19:25 +01:00
|
|
|
// Config options
|
2016-12-02 11:51:44 +01:00
|
|
|
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 {
|
2016-12-30 16:00:50 +01:00
|
|
|
Types []string `config:"types"`
|
|
|
|
Filter string `config:"filter"`
|
2016-12-02 11:51:44 +01:00
|
|
|
}
|
|
|
|
|
2016-12-08 17:19:25 +01:00
|
|
|
// DefaultConfig values
|
2016-12-02 11:51:44 +01:00
|
|
|
var DefaultConfig = Config{
|
2016-12-30 13:37:43 +01:00
|
|
|
RetryInterval: 1 * time.Second,
|
|
|
|
Host: "localhost",
|
|
|
|
Port: 5665,
|
2016-12-02 11:51:44 +01:00
|
|
|
}
|