1 Star 0 Fork 0

h79/goutils

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
config.go 905 Bytes
一键复制 编辑 原始数据 按行查看 历史
huqiuyun 提交于 2022-11-03 18:39 . 改变变量
package config
type Access struct {
AccessKey string `json:"acsKey"`
SecretKey string `json:"secret"`
EndPoint string `json:"endpoint"`
Region string `json:"region"`
}
type Config struct {
Access
TokenCallbackUrl string `json:"tokenCallbackUrl"`
Expires int64 `json:"expires"` //TOKEN 过期秒
UseHTTPS bool `json:"useHttps"` //是否使用https域名
UseCdn bool `json:"useCdn"` //上传是否使用CDN上传加速
FileConfig FileConfig `json:"fileConfig"`
}
type FileConfig struct {
MinChunkSize int64 `json:"minChunkSize"`
Cdn string `json:"fileCdn"`
TmpPath string `json:"tmpPath"` //本地的临时文件
}
type BucketInfo struct {
Name string `json:"name"`
Host string `json:"host"`
DefaultUploadDir string `json:"defaultUploadDir"`
AllowExt string `json:"allowExt"`
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/h79/goutils.git
git@gitee.com:h79/goutils.git
h79
goutils
goutils
v1.8.29

搜索帮助