Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Config ¶
type Config struct { MaxSize int64 `mapstructure:"max-size" json:"burst" yaml:"max-size"` System System `mapstructure:"system" json:"system" yaml:"system"` Mail Mail `mapstructure:"mail" json:"mail" yaml:"mail"` Limit Limit `mapstructure:"limit" json:"limit" yaml:"limit"` Zap myZap.Zap `mapstructure:"zap" json:"zap" yaml:"zap"` Redis Redis `mapstructure:"redis" json:"redis" yaml:"redis"` Mysql Mysql `mapstructure:"mysql" json:"mysql" yaml:"mysql"` Captcha Captcha `mapstructure:"captcha" json:"captcha" yaml:"captcha"` Ldap bool `mapstructure:"ldap" json:"ldap" yaml:"ldap"` ThirdParty ThirdParty `mapstructure:"third-party" json:"third-party" yaml:"third-party"` Mcs Mcs `mapstructure:"mcs" json:"mcs" yaml:"mcs"` Environment Environment `mapstructure:"environment" json:"environment" yaml:"environment"` Saas Saas `mapstructure:"saas" json:"saas" yaml:"saas"` OpenApi OpenApi `mapstructure:"openapi" json:"openapi" yaml:"openapi"` ChatChatUrl string `mapstructure:"chatChatUrl" json:"chatChatUrl" yaml:"chatChatUrl"` ChatChatControllerAddress string `mapstructure:"chatChatControllerAddress" json:"chatChatControllerAddress" yaml:"chatChatControllerAddress"` }
type Environment ¶
type Environment struct {
ServerHost string `mapstructure:"server-host" json:"serverHost" yaml:"server-host"`
}
type Mail ¶
type Mail struct { SmtpAddress string `mapstructure:"smtpAddress" json:"smtpAddress" yaml:"smtpAddress"` SmtpPort int `mapstructure:"smtpPort" json:"smtpPort" yaml:"smtpPort"` Account string `mapstructure:"account" json:"account" yaml:"account"` Password string `mapstructure:"password" json:"password" yaml:"password"` }
type Mysql ¶
type Mysql struct { Url string `mapstructure:"url" json:"url" yaml:"url"` Config string `mapstructure:"config" json:"config" yaml:"config"` Dbname string `mapstructure:"db-name" json:"dbname" yaml:"db-name"` Username string `mapstructure:"username" json:"username" yaml:"username"` Password string `mapstructure:"password" json:"password" yaml:"password"` MaxIdleConns int `mapstructure:"max-idle-conns" json:"maxIdleConns" yaml:"max-idle-conns"` MaxOpenConns int `mapstructure:"max-open-conns" json:"maxOpenConns" yaml:"max-open-conns"` LogMode bool `mapstructure:"log-mode" json:"logMode" yaml:"log-mode"` LogZap string `mapstructure:"log-zap" json:"logZap" yaml:"log-zap"` //silent,error,warn,info,zap }
type OpenApi ¶
type OpenApi struct {
AppSecret string `mapstructure:"appsecret" json:"appsecret" yaml:"appsecret"`
}
type Redis ¶
type Redis struct { DB int `mapstructure:"db" json:"db" yaml:"db"` Addr string `mapstructure:"addr" json:"addr" yaml:"addr"` Password string `mapstructure:"password" json:"password" yaml:"password"` PoolSize int `mapstructure:"pool-size" json:"poolSize" yaml:"pool-size"` Prefix string `mapstructure:"prefix" json:"prefix" yaml:"prefix"` }
type Saas ¶
type Saas struct { Switch bool `mapstructure:"switch" json:"switch" yaml:"switch"` Username string `mapstructure:"username" json:"username" yaml:"username"` Password string `mapstructure:"password" json:"password" yaml:"password"` Url string `mapstructure:"url" json:"url" yaml:"url"` ApiSign ApiSign `mapstructure:"apiSign" json:"apiSign" yaml:"apiSign"` Host string `mapstructure:"host" json:"host" yaml:"host"` }
type System ¶
type System struct { Name string `mapstructure:"name" json:"name" yaml:"name"` SupportMail string `mapstructure:"supportMail" json:"supportMail" yaml:"supportMail"` Website string `mapstructure:"website" json:"website" yaml:"website"` SysEnv string `mapstructure:"sysEnv" json:"sysEnv" yaml:"sysEnv"` // dev, thirdparty_test, deeptest_demo etc. Level string `mapstructure:"level" json:"level" yaml:"level"` // debug,release,test ServerAddress string `mapstructure:"serverAddress" json:"serverAddress" yaml:"serverAddress"` AgentAddress string `mapstructure:"agentAddress" json:"agentAddress" yaml:"agentAddress"` StaticPath string `mapstructure:"static-path" json:"staticPath" yaml:"static-path"` WebPath string `mapstructure:"web-path" json:"webPath" yaml:"web-path"` DbType string `mapstructure:"db-type" json:"dbType" yaml:"db-type"` CacheType string `mapstructure:"cache-type" json:"cacheType" yaml:"cache-type"` TimeFormat string `mapstructure:"time-format" json:"timeFormat" yaml:"time-format"` }
type ThirdParty ¶
type ThirdParty struct { Username string `mapstructure:"username" json:"username" yaml:"username"` Password string `mapstructure:"password" json:"password" yaml:"password"` Url string `mapstructure:"url" json:"url" yaml:"url"` ApiSign ApiSign `mapstructure:"apiSign" json:"apiSign" yaml:"apiSign"` Host string `mapstructure:"host" json:"host" yaml:"host"` Lcurl string `mapstructure:"lcurl" json:"lcurl" yaml:"lcurl"` }
Click to show internal directories.
Click to hide internal directories.