Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { App AppConfig Database DatabaseConfig Server ServerConfig JWT JWTConfig }
func LoadConfig ¶
LoadConfig reads configuration from environment variables
type DatabaseConfig ¶
type DatabaseConfig struct { Host string Port int User string Password string DBName string SSLMode string }
func (*DatabaseConfig) GetDSN ¶
func (c *DatabaseConfig) GetDSN() string
GetDSN returns the database connection string
type ServerConfig ¶
type ServerConfig struct { Host string Port int ReadTimeout time.Duration WriteTimeout time.Duration RequestTimeout time.Duration MaxHeaderBytes int AllowedOrigins []string }
func (*ServerConfig) GetServerAddress ¶
func (c *ServerConfig) GetServerAddress() string
GetServerAddress returns the formatted server address
Click to show internal directories.
Click to hide internal directories.