config.go 527 B

123456789101112131415161718192021222324
  1. package config
  2. import (
  3. "github.com/zeromicro/go-zero/rest"
  4. "github.com/zeromicro/go-zero/zrpc"
  5. )
  6. type Config struct {
  7. rest.RestConf
  8. Auth struct {
  9. AccessSecret string
  10. AccessExpire int64
  11. }
  12. SlowwildRpc zrpc.RpcClientConf
  13. TencentCos struct {
  14. // 访问 bucket, object 相关 API 的基础 URL(不包含 path 部分): https://examplebucket-1250000000.cos.<Region>.myqcloud.com
  15. BucketUrl string
  16. PrivateBucketUrl string
  17. SecretId string
  18. SecretKey string
  19. ServiceUrl string
  20. }
  21. }