Documentation
¶
Overview ¶
Package config handles configuration via environment variables
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
PostgresURI string `env:"POSTGRES_URI,required" usage:"URI to MongoDB host. Example: postgresql://user:pass@localhost:5432/database"`
APIRootURL string `env:"API_URL,required" usage:"Root URL of Helldivers 2 API. Example: http://localhost:4000"`
WorkerInterval time.Duration `env:"WORKER_INTERVAL" default:"5m" usage:"Interval at which data will be queried from the API and written to the database."`
}
Config contains configuration values
Click to show internal directories.
Click to hide internal directories.