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.6 kB

2 years ago
2 years ago
11 months ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*
  2. Copyright (c) [2023] [pcm]
  3. [pcm-coordinator] is licensed under Mulan PSL v2.
  4. You can use this software according to the terms and conditions of the Mulan PSL v2.
  5. You may obtain a copy of Mulan PSL v2 at:
  6. http://license.coscl.org.cn/MulanPSL2
  7. THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  8. EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  9. MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  10. See the Mulan PSL v2 for more details.
  11. */
  12. package config
  13. import (
  14. "github.com/zeromicro/go-zero/core/logx"
  15. "github.com/zeromicro/go-zero/core/stores/redis"
  16. "github.com/zeromicro/go-zero/rest"
  17. "github.com/zeromicro/go-zero/zrpc"
  18. )
  19. type Config struct {
  20. rest.RestConf
  21. DB struct {
  22. DataSource string
  23. }
  24. Redis redis.RedisConf
  25. LogConf logx.LogConf
  26. K8sNativeConf zrpc.RpcClientConf
  27. ACRpcConf zrpc.RpcClientConf
  28. THRpcConf zrpc.RpcClientConf
  29. ModelArtsRpcConf zrpc.RpcClientConf
  30. ModelArtsImgRpcConf zrpc.RpcClientConf
  31. OpenstackRpcConf zrpc.RpcClientConf
  32. OctopusRpcConf zrpc.RpcClientConf
  33. PcmCoreRpcConf zrpc.RpcClientConf
  34. BlockChain struct {
  35. ContractAddress string
  36. FunctionName string
  37. Url string
  38. Type string
  39. MemberName string
  40. }
  41. MinioConf struct {
  42. Secret string
  43. AccessKey string
  44. Endpoint string
  45. }
  46. SnowflakeConf SnowflakeConf
  47. Monitoring Monitoring
  48. }
  49. type Monitoring struct {
  50. PromUrl string
  51. AlertUrl string
  52. }
  53. // SnowflakeConf 雪花算法机器id配置
  54. type SnowflakeConf struct {
  55. MachineId int64 `json:"machineId"`
  56. }

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.