| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- syntax = "proto3";
- package protos;
- // 项目中配置文件定义
- message ZkConf {
- repeated string addrs = 1;
- string username = 2;
- string password = 3;
- int timeout = 4;
- }
- message RedisConf {
- repeated string addrs = 1;
- string password = 2;
- int db = 3;
- }
- message NatsConf {
- repeated string addrs = 1;
- string username = 2;
- string password = 3;
- string clusterId = 4;
- }
- message AgentConf {
- ZkConf zoo = 1;
- string namespace = 2;
- uint64 id = 3;
- string addr = 4;
- string rpcAddr = 5;
- string profileAddr = 6;
- string agentAddr = 7;
- string logPath = 8;
- int level = 9;
- string mode = 10;
- }
- message LoginConf {
- RedisConf redis = 1;
- NatsConf nats = 2;
- string addr = 3;
- string agentAddr = 4;
- }
- message ManagerConf {
- ZkConf zoo = 1;
- string namespace = 2;
- uint64 id = 3;
- string addr = 4;
- string profileAddr = 6;
- string logPath = 8;
- int level = 9;
- string mode = 10;
- }
- message LogicConf {
- ZkConf zoo = 1;
- string namespace = 2;
- uint64 id = 3;
- string addr = 4;
- string rpcAddr = 5;
- string profileAddr = 6;
- string agentAddr = 7;
- string logPath = 8;
- int level = 9;
- string mode = 10;
- }
|