12345678910111213141516171819202122232425262728293031323334353637383940 |
- package config
- type Config struct {
-
- Port int `yaml:"port"`
-
- Sslport int `yaml:"sslport"`
-
- ServiceURL string `yaml:"serviceURL"`
-
- RegistryURL string `yaml:"registryURL"`
-
- SystemID string `yaml:"systemID"`
- SecretFile string `yaml:"secretfile"`
- Logging Logging `yaml:"logging"`
- HealthCheck HealthCheck `yaml:"healthcheck"`
- MongoDB MongoDB `yaml: "mongodb"`
- }
- 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"`
- }
|