| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- syntax = "proto3";
- package protos;
- import "structs.proto";
- // 项目中配置文件定义
- message ZkConf {
- repeated string addrs = 1;
- string username = 2;
- string password = 3;
- int32 timeout = 4;
- }
- message RedisConf {
- repeated string addrs = 1;
- string password = 2;
- int32 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;
- int32 level = 9;
- string mode = 10;
- }
- // zk 中 login 配置
- message LoginZkConf {
- repeated string addrs = 1;
- string password = 2;
- }
- message LoginConf {
- uint64 id = 1;
- RedisConf redis = 2;
- NatsConf nats = 3;
- string addr = 4;
- string agentAddr = 5;
- string rpcAddr = 6;
- string logPath = 10;
- int32 level = 11;
- string mode = 12;
- }
- message ManagerConf {
- ZkConf zoo = 1;
- string namespace = 2;
- uint64 id = 3;
- string addr = 4;
- string profileAddr = 6;
- string logPath = 8;
- int32 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;
- int32 level = 9;
- string mode = 10;
- }
- message RouteRule_ {
- uint64 funcId = 1;
- Int32Scope scope = 2;
- }
- // 路由规则配置
- message RouteRules {
- repeated RouteRule_ rules = 1;
- }
|