Remove `NewRedis` and `NewS3` factory functions from the config package to eliminate unused initialization logic and reduce dependency bloat.
13 lines
414 B
Go
13 lines
414 B
Go
package config
|
|
|
|
// S3Config S3 存储配置
|
|
type S3Config struct {
|
|
Endpoint string `mapstructure:"endpoint"`
|
|
AccessKey string `mapstructure:"access_key"`
|
|
SecretKey string `mapstructure:"secret_key"`
|
|
Bucket string `mapstructure:"bucket"`
|
|
UseSSL bool `mapstructure:"use_ssl"`
|
|
Region string `mapstructure:"region"`
|
|
Domain string `mapstructure:"domain"` // 自定义域名,如 s3.carrot.skin
|
|
}
|