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, default=8081"` } Auth struct { JWTSecret string `env:"JWT_SECRET, default=CHANGE_ME"` } Log struct { Level string `env:"LOG_LEVEL, default=info"` Pretty bool `env:"LOG_PRETTY, default=false"` } Postgres Postgres `env:", prefix=POSTGRES_"` Redis Redis `env:", prefix=REDIS_"` }
type Postgres ¶
type Postgres struct { Host string `env:"HOST, default=localhost"` Port int `env:"PORT, default=5432"` User string `env:"USER, required"` Password string `env:"PASSWORD, required"` Database string `env:"DB, required"` SSLMode string `env:"SSLMODE, default=verify-full"` ConnTimeout int `env:"CONNTIMEOUT, default=5"` MaxConn int `env:"MAXCONN, default=8"` }
Click to show internal directories.
Click to hide internal directories.