Versions in this module Expand all Collapse all v1 v1.0.0 Jan 2, 2025 Changes in this version + const ProxyModeFix + const ProxyModePrefix + const RpcByGRpc + const RpcByHttp + const RpcRegByEtcd + const RpcRegByNone + var DefiConfigPath = ParseConfigPath + func LoadConfig[T interface{}](c *T, s ...string) *T + func ParseConfigPath(s ...string) string + type AccessKeyConfig struct + AccessKey string + AccessSecret string + type AdminAppConfig struct + ApiServer ServerConfig + AuthConfig AuthConfig + AutoCreateAdmin bool + DBConfig DBConfig + Debug bool + DocsEnable bool + I18nFiles map[string]string + LimitingApi LimitingConfig + LogLevel string + LogPath string + ModuleMode bool + Name string + PProfEnable bool + PasswordSalt string + PermissionFile string + RoutePrefix string + UserPasswordSalt string + type AuthConfig struct + AuthExpired int64 + Enable bool + SecretKey string + type BaseDataAppConfig struct + ApiServer ServerConfig + Debug bool + LogLevel string + LogPath string + ModuleMode bool + Name string + RoutePrefix string + type CommonExtendParams map[string]string + func (op CommonExtendParams) ExtendParamByBool(k string, def ...bool) bool + func (op CommonExtendParams) ExtendParamByFloat(k string, def ...float64) float64 + func (op CommonExtendParams) ExtendParamByInt(k string, def ...int) int + func (op CommonExtendParams) ExtendParamValue(key string, def ...string) string + type DBConfig struct + DbConn string + DbDsn string + DbHost string + DbName string + DbPassword string + DbPort string + DbUser string + MaxConcatLen string + MaxIdleConn int + MaxIdleTime int + MaxLifeTime int + MaxOpenConn int + TablePrefix string + TimeZone string + type EmailConfig struct + Enable bool + SmtpHost string + SmtpName string + SmtpPassword string + SmtpPort int + SmtpUserName string + type LimitingConfig struct + MaxRate int + PerRate int + type LogConfig struct + LCallerSkip int + LFilepath int + LLevel string + LPath string + func DefiLogConfig() *LogConfig + type MonitorReportConfig struct + Host string + Name string + Namespace string + Platform string + type PProfConfig struct + Enable bool + Port int64 + type ProxyRule struct + Forward string + Match string + Mode string + Replace string + type RpcClientConfig struct + RpcDisServer string + RpcDisWay string + RpcServer string + RpcTimeout int64 + type RpcServerConfig struct + RpcLisAddr string + RpcRegServer string + RpcRegWay string + RpcRequestAddr string + type ServerConfig struct + AllowOrigins []string + Enable bool + EndpointAddr string + EndpointPort int + Host string + Port int + ServerBindAddr string + Timeout int + func (c ServerConfig) Endpoint() string + func (c ServerConfig) HostAddr() string + func (c ServerConfig) ListenAddr() string + type ThirdConfig struct + AppKey string + AppSecret string + Enable bool + ExtendParams CommonExtendParams + type UserAppConfig struct + AdminAuthConfig AuthConfig + ApiServer ServerConfig + AuthConfig AuthConfig + DBConfig DBConfig + Debug bool + DocsEnable bool + EmailConfig EmailConfig + LimitingApi LimitingConfig + LogLevel string + LogPath string + ModuleMode bool + Name string + PProfEnable bool + PasswordSalt string + RoutePrefix string + RpcServer ServerConfig + SmsConfig ThirdConfig + WechatAuth ThirdConfig + type WebAppConfig struct + LogLevel string + LogPath string + ModuleMode bool + Name string + ProxyRules []ProxyRule + RoutePrefix string + StaticPath string + StaticRouter string + TemplatePath string + TemplateRouter string + WebServer ServerConfig + type WebHookConfig struct + AccessToken string + Url string + type WebsocketAppConfig struct + ApiServer ServerConfig + LogLevel string + LogPath string + Name string + RoutePrefix string