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

2 years ago
2 years ago
11 months ago
4 months ago
4 months ago
3 months ago
4 months ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. }
  40. MinioConf struct {
  41. Secret string
  42. AccessKey string
  43. Endpoint string
  44. }
  45. SnowflakeConf SnowflakeConf
  46. Monitoring Monitoring
  47. JcsMiddleware JcsMiddleware
  48. Participant Participant
  49. }
  50. type Monitoring struct {
  51. PromUrl string
  52. AlertUrl string
  53. }
  54. // SnowflakeConf 雪花算法机器id配置
  55. type SnowflakeConf struct {
  56. MachineId int64 `json:"machineId"`
  57. }
  58. type JcsMiddleware struct {
  59. JobStatusReportUrl string
  60. }
  61. type Participant struct {
  62. AdapterId string
  63. CloudAdapterId string
  64. }

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.