Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { CORS struct { AllowedOrigins []string `envconfig:"CORS_ALLOWED_ORIGINS"` } DB struct { Host string `envconfig:"DB_HOST"` Port int `envconfig:"DB_PORT"` User string `envconfig:"DB_USER"` Pass string `envconfig:"DB_PASS"` Name string `envconfig:"DB_NAME"` ConnLimit int `envconfig:"DB_CONN_LIMIT"` } JWT struct { Expiration time.Duration `envconfig:"JWT_EXPIRATION" default:"120m"` Secret string `envconfig:"JWT_SECRET"` TokenCookie string `envconfig:"JWT_TOKEN_COOKIE" default:"__b_a_T"` } Server struct { Port int `envconfig:"SERVER_PORT" default:"8080"` ShutdownPeriod time.Duration `envconfig:"SERVER_SHUTDOWN_PERIOD" default:"5s"` } }
Config is the configuration struct
Click to show internal directories.
Click to hide internal directories.