Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Port int `envconfig:"PORT" default:"8000"` GracefulTimeout int `envconfig:"GRACEFUL_TIMEOUT" default:"30"` DebugMode bool `envconfig:"DEBUG_MODE" default:"false"` /// DB DatabaseUser string `envconfig:"DATABASE_USER" required:"true"` DatabasePassword string `envconfig:"DATABASE_PASSWORD" required:"true"` DatabaseHost string `envconfig:"DATABASE_HOST" required:"true"` DatabaseName string `envconfig:"DATABASE_NAME" required:"true"` DatabasePort int `envconfig:"DATABASE_PORT" default:"5432"` }
Config is the configuration for the API server.
func (*Config) DataSource ¶
Click to show internal directories.
Click to hide internal directories.