Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { Application struct { Name string `toml:"name"` Port string `toml:"port"` PrintRoutes bool `toml:"print_routes"` } `toml:"application"` Security struct { Key string `toml:"key"` DebugMode bool `toml:"debug_mode"` Production bool `toml:"production"` } `toml:"security"` Database struct { Enabled bool `toml:"enabled"` Host string `toml:"host"` Port string `toml:"port"` Username string `toml:"username"` Password string `toml:"password"` Name string `toml:"name"` } `toml:"database"` Authentication struct { Enabled bool `toml:"enabled"` AuthenticationUrl string `toml:"authentication_url"` } `toml:"authentication"` Caching struct { Enabled bool `toml:"enabled"` } `toml:"caching"` }
Configuration ---
This struct is used to store the configuration for the framework
func NewConfiguration ¶
func NewConfiguration(fx.Lifecycle) (Configuration, error)
Click to show internal directories.
Click to hide internal directories.