You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
864 B

3 years ago
  1. package config
  2. type Qiniu struct {
  3. Zone string `mapstructure:"zone" json:"zone" yaml:"zone"` // 存储区域
  4. Bucket string `mapstructure:"bucket" json:"bucket" yaml:"bucket"` // 空间名称
  5. ImgPath string `mapstructure:"img-path" json:"imgPath" yaml:"img-path"` // CDN加速域名
  6. UseHTTPS bool `mapstructure:"use-https" json:"useHttps" yaml:"use-https"` // 是否使用https
  7. AccessKey string `mapstructure:"access-key" json:"accessKey" yaml:"access-key"` // 秘钥AK
  8. SecretKey string `mapstructure:"secret-key" json:"secretKey" yaml:"secret-key"` // 秘钥SK
  9. UseCdnDomains bool `mapstructure:"use-cdn-domains" json:"useCdnDomains" yaml:"use-cdn-domains"` // 上传是否使用CDN上传加速
  10. }