| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 | syntax = "proto3";package kratos.api;option go_package = "github.com/go-kratos/kratos-layout/internal/conf;conf";import "google/protobuf/duration.proto";message Bootstrap {  Server server = 1;  Data data = 2;  JWT jwt = 3;  TraceConf traceConf = 4;}message TraceConf {  string endpoint = 1;  string env = 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;  }  message Registrar {    string namespace = 1;    string group = 2;  }  HTTP http = 1;  GRPC grpc = 2;  Registrar registrar = 3;}message Data {  message Database {    string driver = 1;    string source = 2;    int32 maxIdleConns = 3;    int32 maxOpenConns = 4;  }  message Redis {    string network = 1;    string addr = 2;    int32 db = 3;    google.protobuf.Duration dial_timeout = 4;    google.protobuf.Duration read_timeout = 5;    google.protobuf.Duration write_timeout = 6;    int32 poolSize = 7;    int32 minIdleConns = 8;  }  Database database = 1;  Redis redis = 2;}message JWT {  string secret = 1;  int64 expire = 2;}
 |