confs.proto 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. syntax = "proto3";
  2. package protos;
  3. // 项目中配置文件定义
  4. message ZkConf {
  5. repeated string addrs = 1;
  6. string username = 2;
  7. string password = 3;
  8. int timeout = 4;
  9. }
  10. message RedisConf {
  11. repeated string addrs = 1;
  12. string password = 2;
  13. int 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. int level = 9;
  31. string mode = 10;
  32. }
  33. message LoginConf {
  34. RedisConf redis = 1;
  35. NatsConf nats = 2;
  36. string addr = 3;
  37. string agentAddr = 4;
  38. }
  39. message ManagerConf {
  40. ZkConf zoo = 1;
  41. string namespace = 2;
  42. uint64 id = 3;
  43. string addr = 4;
  44. string profileAddr = 6;
  45. string logPath = 8;
  46. int level = 9;
  47. string mode = 10;
  48. }
  49. message LogicConf {
  50. ZkConf zoo = 1;
  51. string namespace = 2;
  52. uint64 id = 3;
  53. string addr = 4;
  54. string rpcAddr = 5;
  55. string profileAddr = 6;
  56. string agentAddr = 7;
  57. string logPath = 8;
  58. int level = 9;
  59. string mode = 10;
  60. }