Versions in this module Expand all Collapse all v0 v0.1.3 Jul 8, 2026 Changes in this version + func CORSCfg() cors + func CacheCfg() map[string]cache + func CaptchaCfg() captcha + func Custom[T any]() (T, error) + func DBCfg() map[string]DB + func FileCfg() map[string]File + func Get(path string) any + func LogCfg() log + func ServerCfg() server + func SetConfigPath(path string) + type AliyunOSS struct + AccessKeyId string + AccessKeySecret string + BasePath string + BucketName string + BucketUrl string + Endpoint string + type AwsS3 struct + BaseURL string + Bucket string + DisableSSL bool + Endpoint string + PathPrefix string + Region string + S3ForcePathStyle bool + SecretID string + SecretKey string + type CORSWhitelist struct + AllowCredentials bool + AllowHeaders string + AllowMethods string + AllowOrigin string + ExposeHeaders string + type DB struct + Config string + Dbname string + Driver string + LogMode int + MaxIdleConns int + MaxOpenConns int + Password string + Path string + Port string + Prefix string + Singular bool + Username string + type File struct + Bucket string + CdnURL string + Driver string + ID string + Key string + Limit float64 + Name string + PrefixPath string + Region string + StorePath string + Style string + type JWT struct + BufferTime string + ExpiresTime string + Issuer string + SigningKey string + func JwtCfg() JWT + type Local struct + Path string + StorePath string + type Qiniu struct + AccessKey string + Bucket string + ImgPath string + SecretKey string + UseCdnDomains bool + UseHTTPS bool + Zone string + type TencentCOS struct + BaseURL string + Bucket string + Region string + SecretID string + SecretKey string