1 Star 0 Fork 0

h79/goutils

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
api
auth
common
algorithm
app
attributes
banner
bus
coder
compress
config
daemon
data
debug
file
filemgr
alyoss
config
config.go
qnyoss
tools
git
http
images
json
list
logger
mapper
perf
queue
random
result
scheduler
secret
server
ssh
stringutil
svc
system
template
timer
trie
version
xml
bit_flag.go
common.go
common_test.go
integer.go
recover.go
dao
discovery
loader
mq
pay
plugins
report
request
rpc
sensitive
thrift
.gitignore
LICENSE
Makefile
README.md
doc.go
error.md
go.mod
go.sum
goutils.go
goutils_test.go
version.go
克隆/下载
config.go 905 Bytes
一键复制 编辑 原始数据 按行查看 历史
huqiuyun 提交于 2年前 . 改变变量
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"`
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/h79/goutils.git
git@gitee.com:h79/goutils.git
h79
goutils
goutils
v1.4.14

搜索帮助