106 lines
3.0 KiB
Protocol Buffer
106 lines
3.0 KiB
Protocol Buffer
syntax = "proto3";
|
||
package kratos.api;
|
||
|
||
option go_package = "sandc/app/eonline/internal/conf;conf";
|
||
|
||
import "google/protobuf/duration.proto";
|
||
|
||
message Bootstrap {
|
||
Server server = 1;
|
||
Data data = 2;
|
||
Queue queue = 3;
|
||
Pagsmile pagsmile = 4;
|
||
ConfigFiles configFiles = 5;
|
||
AppConfig appConfig = 7;
|
||
}
|
||
|
||
message Server {
|
||
message HTTP {
|
||
string network = 1;
|
||
string addr = 2;
|
||
google.protobuf.Duration timeout = 3;
|
||
}
|
||
message GRPC {
|
||
string network = 1;
|
||
string addr = 2;
|
||
google.protobuf.Duration timeout = 3;
|
||
}
|
||
message ETCD {
|
||
repeated string addr = 1;
|
||
string username = 2;
|
||
string password = 3;
|
||
}
|
||
HTTP http = 1;
|
||
GRPC grpc = 2;
|
||
ETCD etcd = 3;
|
||
string trace_endpoint = 4;
|
||
string env = 6;
|
||
string geo_file = 7;
|
||
int32 svr_id = 8; // 当前服务器id
|
||
int32 first_day = 9; // 开服首日,格式类似 20230906,表示2023.9.6
|
||
string ver_check = 10; // 版本号检查,最低版本号
|
||
int32 timeoutTimerPer10Second = 11; // 10秒timer执行超时时间纳秒
|
||
}
|
||
|
||
message Data {
|
||
message Database {
|
||
string driver = 1;
|
||
string source = 2;
|
||
}
|
||
message Redis {
|
||
string network = 1;
|
||
string addr = 2;
|
||
int32 db = 3;
|
||
string password = 4;
|
||
int32 pool = 5;
|
||
google.protobuf.Duration read_timeout = 6;
|
||
google.protobuf.Duration write_timeout = 7;
|
||
}
|
||
Database database = 1;
|
||
Redis redis = 2;
|
||
}
|
||
|
||
message Queue {
|
||
message Kafka {
|
||
repeated string addrs = 1;
|
||
string topic = 2;
|
||
string group = 3;
|
||
string username = 4;
|
||
string password = 5;
|
||
}
|
||
message Asynq {
|
||
string network = 1;
|
||
string addr = 2;
|
||
int32 db = 3;
|
||
string password = 4;
|
||
int32 pool = 5;
|
||
google.protobuf.Duration read_timeout = 6;
|
||
google.protobuf.Duration write_timeout = 7;
|
||
int32 concurrency = 8;
|
||
}
|
||
Kafka kafka = 1;
|
||
Asynq asynq = 2;
|
||
}
|
||
|
||
message Pagsmile {
|
||
message Payout {
|
||
string app_id = 1;
|
||
string app_key = 2;
|
||
string api_url = 3;
|
||
string notify_url = 4;
|
||
}
|
||
Payout payout = 1;
|
||
}
|
||
|
||
message ConfigFiles {
|
||
string path = 1;
|
||
}
|
||
|
||
message AppConfig {
|
||
string adjustAppToken = 1;
|
||
string adjustS2SToken = 2;
|
||
string adjustEventTokenSuccess = 3;
|
||
string adjustEventTokenFail = 4;
|
||
string ssAppId = 5;
|
||
}
|