You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
903 B
54 lines
903 B
syntax = "proto3";
|
|
package kratos.api;
|
|
|
|
option go_package = "matchmaking-system/internal/conf;conf";
|
|
|
|
message Bootstrap {
|
|
Server server = 1;
|
|
Data data = 2;
|
|
}
|
|
|
|
message Server {
|
|
message HTTP {
|
|
string network = 1;
|
|
string addr = 2;
|
|
}
|
|
message GRPC {
|
|
string network = 1;
|
|
string addr = 2;
|
|
}
|
|
HTTP http = 1;
|
|
GRPC grpc = 2;
|
|
string check = 3;
|
|
}
|
|
|
|
message Data {
|
|
message Database {
|
|
string driver = 1;
|
|
string source = 2;
|
|
}
|
|
message Redis {
|
|
string network = 1;
|
|
string addr = 2;
|
|
int64 db = 3;
|
|
string password = 4;
|
|
}
|
|
message Mongodb{
|
|
string network = 1;
|
|
string addr = 2;
|
|
string user = 3;
|
|
string password = 4;
|
|
string db = 5;
|
|
}
|
|
message Mq{
|
|
string address =1;
|
|
string type=2;
|
|
string position=3;
|
|
string entrust=4;
|
|
string start=5;
|
|
}
|
|
Database database = 1;
|
|
Redis redis = 2;
|
|
Mongodb mongodb =3;
|
|
Mq mq =4;
|
|
}
|
|
|