| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- syntax = "proto3";
- package protos;
- option go_package = ".;protos";
- //import "structs.proto";
- // 项目中配置文件定义
- message LogConf {
- string path = 1;
- string level = 2;
- }
- // zookeeper/etcd 连接配置
- message ConfConf {
- repeated string addrs = 1;
- string username = 2;
- string password = 3;
- int32 timeout = 4;
- }
- // redis 连接配置
- message RedisConf {
- repeated string addrs = 1;
- string password = 2;
- int32 db = 3;
- }
- // nats(-streaming) 连接配置
- message NatsConf {
- repeated string addrs = 1;
- string username = 2;
- string password = 3;
- string clusterId = 4;
- }
- // zk 中 login 配置
- message LoginConfConf {
- repeated string addrs = 1;
- string password = 2;
- }
- message AppConfConf {
- string namespace = 1;
- uint64 id = 2;
- string addr = 3;
- string rpcAddr = 5;
- string externalAddr = 6;
- int32 offline = 7;
- }
- message AppConf {
- ConfConf zoo = 1;
- string namespace = 2;
- uint64 id = 3;
- string addr = 4;
- string rpcAddr = 5;
- string profileAddr = 6;
- string externalAddr = 7;
- LogConf log = 8;
- string mode = 10;
- }
- message Message {
- string tplSubject = 1;
- string tplBody = 2;
- }
- // smtp 服务器配置
- message EmailConf {
- string smtp = 1;
- int32 port = 2;
- string username = 3;
- string password = 4;
- string crypto = 5;
- repeated Message msg= 6;
- }
- message SmsTpl {
- string tplCode = 1;
- string tplParam = 2;
- }
- message SmsConf {
- string type = 1;
- string signName = 2;
- string region = 3;
- string secretKey = 6;
- string accessKey = 10;
- repeated SmsTpl tpls= 11;
- }
|