Documentation ¶
Overview ¶
Package config defines the configuration structs used by the application. The values of these structs are retrieved from environment variables. The config package provides a simple and consistent way to access and manage the configuration of the application.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Cors PostgreSQL Redis RequestTimeout ServerConfig Session }
Config is the container struct for all configuration values.
type Cors ¶
type Cors struct { AllowOrigin string AllowMethods string AllowHeaders string AllowCredentials string }
Cors contains configuration values for the CORS middleware.
type PostgreSQL ¶
type PostgreSQL struct { Dbname string User string Password string Host string Port int Sslmode string AppName string }
PostgreSQL contains configuration values for the PostgreSQL database.
type RequestTimeout ¶
type RequestTimeout int
RequestTimeout contains configuration value for http request timeout.
type ServerConfig ¶
type ServerConfig struct {
Port string
}
ServerConfig contains configuration values for the server listening port.
Click to show internal directories.
Click to hide internal directories.