package
Version:
v0.0.0-...-9d48049
Opens a new window with list of versions in this module.
Published: Feb 25, 2024
License: Unlicense
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
HTTP HTTP
DB DB
}
New constructs the config.
variables are populated using the envars and default values.
type DB struct {
Path string `env:"DB_PATH, default=data/agg.db"`
}
type HTTP struct {
Port int `env:"HTTP_PORT, default=3000"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.