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 Server ServerConfig Database DatabaseConfig Security SecurityConfig Redis RedisConfig }
func LoadConfig ¶
LoadConfig loads the configuration from the specified filename.
func LoadConfigPath ¶
LoadConfigPath loads the configuration from the specified path.
type DatabaseConfig ¶
type DatabaseConfig struct { Host string // The host address of the database. Port string // The port number of the database. DBName string // The name of the database. UserName string // The username for connecting to the database. Password string // The password for connecting to the database. Debug bool // The Debug for debugging when query executed. }
DatabaseConfig holds the configuration for the database connection.
type RedisConfig ¶
type SecurityConfig ¶
type SecurityConfig struct {
JWT JWTConfig
}
type ServerConfig ¶
type ServerConfig struct { Port string // The port on which the server will listen. Debug bool // Indicates if debug mode is enabled. TimeZone string // The time zone setting for the server. }
ServerConfig holds the configuration for the server settings.
Click to show internal directories.
Click to hide internal directories.