Versions in this module Expand all Collapse all v0 v0.0.1 Jun 17, 2021 Changes in this version + var Conf = &Config + func LoadConfig(confPath string) (*viper.Viper, error) + type AppConfig struct + CSRF bool + CtxDefaultTimeout time.Duration + Debug bool + JwtSecret string + JwtTimeout int + Mode string + Name string + PprofPort string + SSL bool + URL string + Version string + type Config struct + App AppConfig + Grpc ServerConfig + Http ServerConfig + Logger log.Config + MySQL orm.Config + Trace trace.Config + Web WebConfig + func Init(configPath string) (*Config, error) + func ParseConfig(v *viper.Viper) (*Config, error) + type ServerConfig struct + Addr string + ReadTimeout time.Duration + WriteTimeout time.Duration + type WebConfig struct + Domain string + Name string + Secret string + Static string