Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶ added in v0.0.8
AppConfig holds the configuration related to the application settings.
type AuthenticationConfig ¶ added in v0.0.3
type AuthenticationConfig struct {
Key string
}
type Config ¶
type Config struct { App AppConfig Server ServerConfig Database DatabaseConfig Authentication AuthenticationConfig Observability ObservabilityConfig JWT JWTConfig Redis RedisConfig }
func LoadConfig ¶
LoadConfig loads the configuration from the specified filename.
func LoadConfigPath ¶ added in v0.0.8
LoadConfigPath loads the configuration from the specified path.
type DatabaseConfig ¶
DatabaseConfig holds the configuration for the database connection.
type ObservabilityConfig ¶ added in v0.0.8
type ObservabilityConfig struct { Enable bool // Indicates if observability is enabled. Mode string // Specifies the observability mode. }
ObservabilityConfig holds the configuration for observability settings.
type RedisConfig ¶ added in v0.0.9
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.