Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RewriteConfig ¶ added in v0.3.0
RewriteConfig rewrite config file path
Types ¶
type AllConfig ¶
type AllConfig struct { Debug bool `json:"debug" mapstructure:"debug" yaml:"debug"` Server *Server `json:"server" mapstructure:"server" yaml:"server"` Data *Data `json:"data" mapstructure:"data" yaml:"data"` I18n *translator.I18n `json:"i18n" mapstructure:"i18n" yaml:"i18n"` ServiceConfig *service_config.ServiceConfig `json:"service_config" mapstructure:"service_config" yaml:"service_config"` Swaggerui *router.SwaggerConfig `json:"swaggerui" mapstructure:"swaggerui" yaml:"swaggerui"` }
AllConfig all config
func ReadConfig ¶ added in v0.3.0
ReadConfig read config
type Data ¶
type Data struct { Database *data.Database `json:"database" mapstructure:"database" yaml:"database"` Cache *data.CacheConf `json:"cache" mapstructure:"cache" yaml:"cache"` }
Data data config
type PathIgnore ¶ added in v1.0.0
type PathIgnore struct {
Users []string `yaml:"users"`
}
Click to show internal directories.
Click to hide internal directories.