Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EmbeddedConfig []byte
Functions ¶
This section is empty.
Types ¶
type CORSConfig ¶
type CORSConfig struct {
AllowOrigins []string `mapstructure:"allowOrigins"`
AllowMethods []string `mapstructure:"allowMethods"`
AllowHeaders []string `mapstructure:"allowHeaders"`
ExposeHeaders []string `mapstructure:"exposeHeaders"`
AllowCredentials bool `mapstructure:"allowCredentials"`
MaxAge int `mapstructure:"maxAge"`
}
type Config ¶
type Config struct {
Server *ServerConfig `mapstructure:"server"`
DB *DBConfig `mapstructure:"db"`
CORS *CORSConfig `mapstructure:"cors"`
}
func LoadConfig ¶
Click to show internal directories.
Click to hide internal directories.