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

config.go 1.1 kB

2 years ago
2 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. package config
  2. import (
  3. "github.com/zeromicro/go-zero/core/logx"
  4. "github.com/zeromicro/go-zero/core/stores/cache"
  5. "github.com/zeromicro/go-zero/core/stores/redis"
  6. "github.com/zeromicro/go-zero/rest"
  7. "github.com/zeromicro/go-zero/zrpc"
  8. )
  9. type Config struct {
  10. rest.RestConf
  11. DB struct {
  12. DataSource string
  13. }
  14. Redis redis.RedisConf
  15. Cache cache.CacheConf
  16. LogConf logx.LogConf
  17. K8sNativeConf zrpc.RpcClientConf
  18. ACRpcConf zrpc.RpcClientConf
  19. THRpcConf zrpc.RpcClientConf
  20. ModelArtsRpcConf zrpc.RpcClientConf
  21. ModelArtsImgRpcConf zrpc.RpcClientConf
  22. CephRpcConf zrpc.RpcClientConf
  23. OpenstackRpcConf zrpc.RpcClientConf
  24. OctopusRpcConf zrpc.RpcClientConf
  25. NexusUrl string
  26. JccScheduleUrl string
  27. MinioConf struct {
  28. Secret string
  29. AccessKey string
  30. Endpoint string
  31. }
  32. RegistryConf struct {
  33. Username string
  34. Password string
  35. }
  36. SnowflakeConf SnowflakeConf
  37. }
  38. // SnowflakeConf 雪花算法机器id配置
  39. type SnowflakeConf struct {
  40. MachineId int64 `json:"machineId"`
  41. }

PCM is positioned as Software stack over Cloud, aiming to build the standards and ecology of heterogeneous cloud collaboration for JCC in a non intrusive and autonomous peer-to-peer manner.