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.
55 lines
944 B
55 lines
944 B
syntax = "proto3";
|
|
package kratos.api;
|
|
|
|
option go_package = "valuation/internal/conf;conf";
|
|
|
|
import "google/protobuf/duration.proto";
|
|
|
|
message Bootstrap {
|
|
Server server = 1;
|
|
Data data = 2;
|
|
Service service = 3;
|
|
}
|
|
|
|
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;
|
|
}
|
|
HTTP http = 1;
|
|
GRPC grpc = 2;
|
|
}
|
|
|
|
message Data {
|
|
message Database {
|
|
string driver = 1;
|
|
string source = 2;
|
|
}
|
|
message Redis {
|
|
string network = 1;
|
|
string addr = 2;
|
|
google.protobuf.Duration read_timeout = 3;
|
|
google.protobuf.Duration write_timeout = 4;
|
|
}
|
|
Database database = 1;
|
|
Redis redis = 2;
|
|
}
|
|
|
|
message Service {
|
|
message Consul {
|
|
string address = 1;
|
|
}
|
|
message Jaeger {
|
|
string tracer_url = 1;
|
|
}
|
|
Consul consul = 1;
|
|
Jaeger jaeger = 2;
|
|
}
|
|
|