[🚀] mapstructure
This commit is contained in:
@@ -18,14 +18,14 @@ import (
|
||||
|
||||
// Config MinIO配置
|
||||
type Config struct {
|
||||
Endpoint string `yaml:"endpoint" json:"endpoint"` // MinIO地址
|
||||
AccessKeyID string `yaml:"access_key_id" json:"access_key_id"` // AccessKey
|
||||
SecretAccessKey string `yaml:"secret_access_key" json:"secret_access_key"` // SecretKey
|
||||
UseSSL bool `yaml:"use_ssl" json:"use_ssl"` // 是否使用SSL
|
||||
BucketName string `yaml:"bucket_name" json:"bucket_name"` // 默认桶名称
|
||||
Region string `yaml:"region" json:"region"` // 区域
|
||||
CDNDomain string `yaml:"cdn_domain" json:"cdn_domain"` // CDN域名(可选)
|
||||
PresignExpires time.Duration `yaml:"presign_expires" json:"presign_expires"` // 预签名URL过期时间,默认15分钟
|
||||
Endpoint string `yaml:"endpoint" json:"endpoint" mapstructure:"endpoint"`
|
||||
AccessKeyID string `yaml:"access_key_id" json:"access_key_id" mapstructure:"access_key_id"`
|
||||
SecretAccessKey string `yaml:"secret_access_key" json:"secret_access_key" mapstructure:"secret_access_key"`
|
||||
UseSSL bool `yaml:"use_ssl" json:"use_ssl" mapstructure:"use_ssl"`
|
||||
BucketName string `yaml:"bucket_name" json:"bucket_name" mapstructure:"bucket_name"`
|
||||
Region string `yaml:"region" json:"region" mapstructure:"region"`
|
||||
CDNDomain string `yaml:"cdn_domain" json:"cdn_domain" mapstructure:"cdn_domain"`
|
||||
PresignExpires time.Duration `yaml:"presign_expires" json:"presign_expires" mapstructure:"presign_expires"`
|
||||
}
|
||||
|
||||
// Client MinIO客户端
|
||||
|
||||
Reference in New Issue
Block a user