mirror of
https://github.com/go-kratos/kratos.git
synced 2026-05-16 09:48:28 +02:00
7dec80ccfd
* fix error code and regenerate proto
45 lines
980 B
Protocol Buffer
45 lines
980 B
Protocol Buffer
syntax = "proto3";
|
|
package kratos.internal.conf;
|
|
|
|
option go_package = "github.com/go-kratos/kratos/examples/blog/internal/conf;conf";
|
|
|
|
import "google/protobuf/duration.proto";
|
|
|
|
message Bootstrap {
|
|
Server server = 1;
|
|
Data data = 2;
|
|
}
|
|
|
|
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;
|
|
string password = 3;
|
|
int32 db = 4;
|
|
google.protobuf.Duration dial_timeout = 5;
|
|
google.protobuf.Duration read_timeout = 6;
|
|
google.protobuf.Duration write_timeout = 7;
|
|
}
|
|
Database database = 1;
|
|
Redis redis = 2;
|
|
}
|