confs.proto 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. message LoginConf {
  34. uint64 id = 1;
  35. RedisConf redis = 2;
  36. NatsConf nats = 3;
  37. string addr = 4;
  38. string agentAddr = 5;
  39. string logPath = 6;
  40. int32 level = 7;
  41. string mode = 8;
  42. }
  43. message ManagerConf {
  44. ZkConf zoo = 1;
  45. string namespace = 2;
  46. uint64 id = 3;
  47. string addr = 4;
  48. string profileAddr = 6;
  49. string logPath = 8;
  50. int32 level = 9;
  51. string mode = 10;
  52. }
  53. message LogicConf {
  54. ZkConf zoo = 1;
  55. string namespace = 2;
  56. uint64 id = 3;
  57. string addr = 4;
  58. string rpcAddr = 5;
  59. string profileAddr = 6;
  60. string agentAddr = 7;
  61. string logPath = 8;
  62. int32 level = 9;
  63. string mode = 10;
  64. }