Documentation ¶
Index ¶
- func Load(inputLoader *viper.Viper) bool
- func LoadEnv(inputLoader *viper.Viper, inputAppConfig *AppConfig) bool
- func Merge(inputLoader *viper.Viper) bool
- func NewLoader() *viper.Viper
- func Watch(inputLoader *viper.Viper, inputAppConfig *AppConfig) bool
- type AppConfig
- type CorsConfig
- type GzipConfig
- type LoaderConfig
- type LogConfig
- type MiddlewareConfig
- type StaticConfig
- type WebConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppConfig ¶
type AppConfig struct { Mode string Web *WebConfig Log *LogConfig Loader *LoaderConfig }
AppConfig is the app configuration.
type LoaderConfig ¶
LoaderConfig is the loader configuration.
type MiddlewareConfig ¶
type MiddlewareConfig struct { Cors *CorsConfig Gzip *GzipConfig Static *StaticConfig }
MiddlewareConfig is the middleware configuration.
type StaticConfig ¶
type StaticConfig struct {
Enable bool
}
StaticConfig is the static configuration.
type WebConfig ¶
type WebConfig struct { ServerAddress string StaticPath string Middleware *MiddlewareConfig }
WebConfig is the web configuration.
Click to show internal directories.
Click to hide internal directories.