| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- syntax = "proto3";
- package cproto;
- option go_package = "./;cproto";
- // net address
- message Address {
- string ip = 1;
- int32 port = 2;
- }
- message Scope {
- int32 min = 1;
- int32 max = 2;
- }
- // support MySQL, Postgresql, redis etc.
- message StoreConf {
- string type = 1;
- string addr = 2; // host:port
- string username = 3;
- string password = 4;
- int32 timeout = 5;
- string db = 6; // to int32 if db refer a redis db.
- }
- message ClusterConf {
- repeated string addrs = 1;
- string username = 2;
- string password = 3;
- string cluster_id = 4;
- int32 timeout = 5;
- string db = 6;
- }
- message LogConf {
- string path = 1;
- string level = 2;
- int32 max_size = 3;
- int32 max_age = 4;
- int32 max_backups = 5;
- int32 compress = 6;
- }
- message MessageTemplate {
- string subject = 1;
- string body = 2;
- }
- message SmtpConf {
- string server = 1;
- int32 port = 2;
- string username = 3;
- string password = 4;
- string crypto = 5;
- int32 enabled = 6;
- }
- message SmsTemplate {
- string code = 1;
- string params = 2;
- }
- message SmsConf {
- string provider = 1;
- string sign_name = 2;
- string region = 3; // needed sometimes
- string access_key = 4;
- string secret_key = 5;
- int32 enabled = 6;
- }
|