confs.proto 1.6 KB

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