Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { HTTP struct { Port int `env:"HTTP_PORT" env-default:"8080"` } Database struct { Host string `env:"DATABASE_HOST" env-default:"db"` Port int `env:"DATABASE_PORT" env-default:"5432"` Database string `env:"DATABASE_DBNAME" env-default:"postgres"` Username string `env:"DATABASE_USERNAME" env-default:"postgres"` Password string `env:"DATABASE_PASSWORD" env-default:"postgres"` DisableTLS bool `env:"DATABASE_DISABLE_TLS" env-default:"true"` CetrPath string `env:"DATABASE_CERT_PATH"` } Consul struct { Address string `env:"CONSUL_ADDR" env-default:"consul:8500"` ServiceHost string `env:"CONSUL_SERVICE_HOST"` ServiceID UUID `env:"CONSUL_ID" env-default:""` ServiceName string `env:"CONSUL_NAME" env-default:"api"` } Influx struct { Host string `env:"INFLUX_HOST" env-default:"influxdb:8086"` Token string `env:"INFLUX_TOKEN" env-required:""` Org string `env:"INFLUX_ORG" env-required:""` Bucket string `env:"INFLUX_BUCKET" env-required:""` } }
Click to show internal directories.
Click to hide internal directories.