confs.proto 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. syntax = "proto3";
  2. package protos;
  3. // 项目中配置文件定义
  4. message ZkConf {
  5. repeated string addrs = 1;
  6. string username = 2;
  7. string password = 3;
  8. int32 timeout = 4;
  9. }
  10. message RedisConf {
  11. repeated string addrs = 1;
  12. string password = 2;
  13. int32 db = 3;
  14. }
  15. message NatsConf {
  16. repeated string addrs = 1;
  17. string username = 2;
  18. string password = 3;
  19. string clusterId = 4;
  20. }
  21. message AgentConf {
  22. ZkConf zoo = 1;
  23. string namespace = 2;
  24. uint64 id = 3;
  25. string addr = 4;
  26. string rpcAddr = 5;
  27. string profileAddr = 6;
  28. string agentAddr = 7;
  29. string logPath = 8;
  30. int32 level = 9;
  31. string mode = 10;
  32. }
  33. // zk 中 login 配置
  34. message LoginZkConf {
  35. repeated string addrs = 1;
  36. string password = 2;
  37. }
  38. message LoginConf {
  39. uint64 id = 1;
  40. RedisConf redis = 2;
  41. NatsConf nats = 3;
  42. string addr = 4;
  43. string agentAddr = 5;
  44. string logPath = 6;
  45. int32 level = 7;
  46. string mode = 8;
  47. }
  48. message ManagerConf {
  49. ZkConf zoo = 1;
  50. string namespace = 2;
  51. uint64 id = 3;
  52. string addr = 4;
  53. string profileAddr = 6;
  54. string logPath = 8;
  55. int32 level = 9;
  56. string mode = 10;
  57. }
  58. message LogicConf {
  59. ZkConf zoo = 1;
  60. string namespace = 2;
  61. uint64 id = 3;
  62. string addr = 4;
  63. string rpcAddr = 5;
  64. string profileAddr = 6;
  65. string agentAddr = 7;
  66. string logPath = 8;
  67. int32 level = 9;
  68. string mode = 10;
  69. }