package config // Config our service configuration type Config struct { //port of the http server Port int `yaml:"port"` //port of the https server Sslport int `yaml:"sslport"` //this is the url how to connect to this service from outside ServiceURL string `yaml:"serviceURL"` //this is the url where to register this service RegistryURL string `yaml:"registryURL"` SecretFile string `yaml:"secretfile"` Logging Logging `yaml:"logging"` Backup Backup `yaml:"backup"` HealthCheck HealthCheck `yaml:"healthcheck"` MongoDB MongoDB `yaml: "mongodb"` } type Backup struct { Path string `yaml:"path"` Period string `yaml:"period"` } type Logging struct { Gelfurl string `yaml:"gelf-url"` Gelfport int `yaml:"gelf-port"` } type HealthCheck struct { Period int `yaml:"period"` } type MongoDB struct { Host string `yaml:"host"` Port int `yaml:"port"` Username string `yaml:"username"` Password string `yaml:"password"` AuthDB string `yaml:"authdb"` Database string `yaml:"database"` }