迁移
This commit is contained in:
Generated
+335
-35
@@ -1,7 +1,7 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.11
|
||||
// protoc (unknown)
|
||||
// protoc v7.35.1
|
||||
// source: conf/conf.proto
|
||||
|
||||
package conf
|
||||
@@ -26,6 +26,7 @@ type Bootstrap struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Server *Server `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
|
||||
Data *Data `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
|
||||
Admin *AdminBackend `protobuf:"bytes,3,opt,name=admin,proto3" json:"admin,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
@@ -74,6 +75,13 @@ func (x *Bootstrap) GetData() *Data {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Bootstrap) GetAdmin() *AdminBackend {
|
||||
if x != nil {
|
||||
return x.Admin
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type Server struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Http *Server_HTTP `protobuf:"bytes,1,opt,name=http,proto3" json:"http,omitempty"`
|
||||
@@ -178,6 +186,75 @@ func (x *Data) GetRedis() *Data_Redis {
|
||||
return nil
|
||||
}
|
||||
|
||||
// AdminBackend contains settings for the administration HTTP transport.
|
||||
type AdminBackend struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
RouterPrefix string `protobuf:"bytes,1,opt,name=router_prefix,json=routerPrefix,proto3" json:"router_prefix,omitempty"`
|
||||
Jwt *AdminBackend_JWT `protobuf:"bytes,2,opt,name=jwt,proto3" json:"jwt,omitempty"`
|
||||
Captcha *AdminBackend_Captcha `protobuf:"bytes,3,opt,name=captcha,proto3" json:"captcha,omitempty"`
|
||||
Local *AdminBackend_Local `protobuf:"bytes,4,opt,name=local,proto3" json:"local,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *AdminBackend) Reset() {
|
||||
*x = AdminBackend{}
|
||||
mi := &file_conf_conf_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *AdminBackend) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*AdminBackend) ProtoMessage() {}
|
||||
|
||||
func (x *AdminBackend) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_conf_conf_proto_msgTypes[3]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use AdminBackend.ProtoReflect.Descriptor instead.
|
||||
func (*AdminBackend) Descriptor() ([]byte, []int) {
|
||||
return file_conf_conf_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *AdminBackend) GetRouterPrefix() string {
|
||||
if x != nil {
|
||||
return x.RouterPrefix
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *AdminBackend) GetJwt() *AdminBackend_JWT {
|
||||
if x != nil {
|
||||
return x.Jwt
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *AdminBackend) GetCaptcha() *AdminBackend_Captcha {
|
||||
if x != nil {
|
||||
return x.Captcha
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *AdminBackend) GetLocal() *AdminBackend_Local {
|
||||
if x != nil {
|
||||
return x.Local
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type Server_HTTP struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
|
||||
@@ -189,7 +266,7 @@ type Server_HTTP struct {
|
||||
|
||||
func (x *Server_HTTP) Reset() {
|
||||
*x = Server_HTTP{}
|
||||
mi := &file_conf_conf_proto_msgTypes[3]
|
||||
mi := &file_conf_conf_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -201,7 +278,7 @@ func (x *Server_HTTP) String() string {
|
||||
func (*Server_HTTP) ProtoMessage() {}
|
||||
|
||||
func (x *Server_HTTP) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_conf_conf_proto_msgTypes[3]
|
||||
mi := &file_conf_conf_proto_msgTypes[4]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -249,7 +326,7 @@ type Server_GRPC struct {
|
||||
|
||||
func (x *Server_GRPC) Reset() {
|
||||
*x = Server_GRPC{}
|
||||
mi := &file_conf_conf_proto_msgTypes[4]
|
||||
mi := &file_conf_conf_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -261,7 +338,7 @@ func (x *Server_GRPC) String() string {
|
||||
func (*Server_GRPC) ProtoMessage() {}
|
||||
|
||||
func (x *Server_GRPC) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_conf_conf_proto_msgTypes[4]
|
||||
mi := &file_conf_conf_proto_msgTypes[5]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -308,7 +385,7 @@ type Data_Database struct {
|
||||
|
||||
func (x *Data_Database) Reset() {
|
||||
*x = Data_Database{}
|
||||
mi := &file_conf_conf_proto_msgTypes[5]
|
||||
mi := &file_conf_conf_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -320,7 +397,7 @@ func (x *Data_Database) String() string {
|
||||
func (*Data_Database) ProtoMessage() {}
|
||||
|
||||
func (x *Data_Database) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_conf_conf_proto_msgTypes[5]
|
||||
mi := &file_conf_conf_proto_msgTypes[6]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -362,7 +439,7 @@ type Data_Redis struct {
|
||||
|
||||
func (x *Data_Redis) Reset() {
|
||||
*x = Data_Redis{}
|
||||
mi := &file_conf_conf_proto_msgTypes[6]
|
||||
mi := &file_conf_conf_proto_msgTypes[7]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -374,7 +451,7 @@ func (x *Data_Redis) String() string {
|
||||
func (*Data_Redis) ProtoMessage() {}
|
||||
|
||||
func (x *Data_Redis) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_conf_conf_proto_msgTypes[6]
|
||||
mi := &file_conf_conf_proto_msgTypes[7]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -418,15 +495,204 @@ func (x *Data_Redis) GetWriteTimeout() *durationpb.Duration {
|
||||
return nil
|
||||
}
|
||||
|
||||
type AdminBackend_JWT struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
SigningKey string `protobuf:"bytes,1,opt,name=signing_key,json=signingKey,proto3" json:"signing_key,omitempty"`
|
||||
ExpiresTime *durationpb.Duration `protobuf:"bytes,2,opt,name=expires_time,json=expiresTime,proto3" json:"expires_time,omitempty"`
|
||||
BufferTime *durationpb.Duration `protobuf:"bytes,3,opt,name=buffer_time,json=bufferTime,proto3" json:"buffer_time,omitempty"`
|
||||
Issuer string `protobuf:"bytes,4,opt,name=issuer,proto3" json:"issuer,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *AdminBackend_JWT) Reset() {
|
||||
*x = AdminBackend_JWT{}
|
||||
mi := &file_conf_conf_proto_msgTypes[8]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *AdminBackend_JWT) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*AdminBackend_JWT) ProtoMessage() {}
|
||||
|
||||
func (x *AdminBackend_JWT) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_conf_conf_proto_msgTypes[8]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use AdminBackend_JWT.ProtoReflect.Descriptor instead.
|
||||
func (*AdminBackend_JWT) Descriptor() ([]byte, []int) {
|
||||
return file_conf_conf_proto_rawDescGZIP(), []int{3, 0}
|
||||
}
|
||||
|
||||
func (x *AdminBackend_JWT) GetSigningKey() string {
|
||||
if x != nil {
|
||||
return x.SigningKey
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *AdminBackend_JWT) GetExpiresTime() *durationpb.Duration {
|
||||
if x != nil {
|
||||
return x.ExpiresTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *AdminBackend_JWT) GetBufferTime() *durationpb.Duration {
|
||||
if x != nil {
|
||||
return x.BufferTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *AdminBackend_JWT) GetIssuer() string {
|
||||
if x != nil {
|
||||
return x.Issuer
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type AdminBackend_Captcha struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
KeyLong int32 `protobuf:"varint,1,opt,name=key_long,json=keyLong,proto3" json:"key_long,omitempty"`
|
||||
ImgWidth int32 `protobuf:"varint,2,opt,name=img_width,json=imgWidth,proto3" json:"img_width,omitempty"`
|
||||
ImgHeight int32 `protobuf:"varint,3,opt,name=img_height,json=imgHeight,proto3" json:"img_height,omitempty"`
|
||||
StoreExpiration *durationpb.Duration `protobuf:"bytes,4,opt,name=store_expiration,json=storeExpiration,proto3" json:"store_expiration,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *AdminBackend_Captcha) Reset() {
|
||||
*x = AdminBackend_Captcha{}
|
||||
mi := &file_conf_conf_proto_msgTypes[9]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *AdminBackend_Captcha) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*AdminBackend_Captcha) ProtoMessage() {}
|
||||
|
||||
func (x *AdminBackend_Captcha) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_conf_conf_proto_msgTypes[9]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use AdminBackend_Captcha.ProtoReflect.Descriptor instead.
|
||||
func (*AdminBackend_Captcha) Descriptor() ([]byte, []int) {
|
||||
return file_conf_conf_proto_rawDescGZIP(), []int{3, 1}
|
||||
}
|
||||
|
||||
func (x *AdminBackend_Captcha) GetKeyLong() int32 {
|
||||
if x != nil {
|
||||
return x.KeyLong
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *AdminBackend_Captcha) GetImgWidth() int32 {
|
||||
if x != nil {
|
||||
return x.ImgWidth
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *AdminBackend_Captcha) GetImgHeight() int32 {
|
||||
if x != nil {
|
||||
return x.ImgHeight
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *AdminBackend_Captcha) GetStoreExpiration() *durationpb.Duration {
|
||||
if x != nil {
|
||||
return x.StoreExpiration
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type AdminBackend_Local struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
StorePath string `protobuf:"bytes,1,opt,name=store_path,json=storePath,proto3" json:"store_path,omitempty"`
|
||||
PathPrefix string `protobuf:"bytes,2,opt,name=path_prefix,json=pathPrefix,proto3" json:"path_prefix,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *AdminBackend_Local) Reset() {
|
||||
*x = AdminBackend_Local{}
|
||||
mi := &file_conf_conf_proto_msgTypes[10]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *AdminBackend_Local) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*AdminBackend_Local) ProtoMessage() {}
|
||||
|
||||
func (x *AdminBackend_Local) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_conf_conf_proto_msgTypes[10]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use AdminBackend_Local.ProtoReflect.Descriptor instead.
|
||||
func (*AdminBackend_Local) Descriptor() ([]byte, []int) {
|
||||
return file_conf_conf_proto_rawDescGZIP(), []int{3, 2}
|
||||
}
|
||||
|
||||
func (x *AdminBackend_Local) GetStorePath() string {
|
||||
if x != nil {
|
||||
return x.StorePath
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *AdminBackend_Local) GetPathPrefix() string {
|
||||
if x != nil {
|
||||
return x.PathPrefix
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
var File_conf_conf_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_conf_conf_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x0fconf/conf.proto\x12\n" +
|
||||
"kratos.api\x1a\x1egoogle/protobuf/duration.proto\"]\n" +
|
||||
"kratos.api\x1a\x1egoogle/protobuf/duration.proto\"\x8d\x01\n" +
|
||||
"\tBootstrap\x12*\n" +
|
||||
"\x06server\x18\x01 \x01(\v2\x12.kratos.api.ServerR\x06server\x12$\n" +
|
||||
"\x04data\x18\x02 \x01(\v2\x10.kratos.api.DataR\x04data\"\xb8\x02\n" +
|
||||
"\x04data\x18\x02 \x01(\v2\x10.kratos.api.DataR\x04data\x12.\n" +
|
||||
"\x05admin\x18\x03 \x01(\v2\x18.kratos.api.AdminBackendR\x05admin\"\xb8\x02\n" +
|
||||
"\x06Server\x12+\n" +
|
||||
"\x04http\x18\x01 \x01(\v2\x17.kratos.api.Server.HTTPR\x04http\x12+\n" +
|
||||
"\x04grpc\x18\x02 \x01(\v2\x17.kratos.api.Server.GRPCR\x04grpc\x1ai\n" +
|
||||
@@ -448,7 +714,30 @@ const file_conf_conf_proto_rawDesc = "" +
|
||||
"\anetwork\x18\x01 \x01(\tR\anetwork\x12\x12\n" +
|
||||
"\x04addr\x18\x02 \x01(\tR\x04addr\x12<\n" +
|
||||
"\fread_timeout\x18\x03 \x01(\v2\x19.google.protobuf.DurationR\vreadTimeout\x12>\n" +
|
||||
"\rwrite_timeout\x18\x04 \x01(\v2\x19.google.protobuf.DurationR\fwriteTimeoutB6Z4kra/internal/conf;confb\x06proto3"
|
||||
"\rwrite_timeout\x18\x04 \x01(\v2\x19.google.protobuf.DurationR\fwriteTimeout\"\x82\x05\n" +
|
||||
"\fAdminBackend\x12#\n" +
|
||||
"\rrouter_prefix\x18\x01 \x01(\tR\frouterPrefix\x12.\n" +
|
||||
"\x03jwt\x18\x02 \x01(\v2\x1c.kratos.api.AdminBackend.JWTR\x03jwt\x12:\n" +
|
||||
"\acaptcha\x18\x03 \x01(\v2 .kratos.api.AdminBackend.CaptchaR\acaptcha\x124\n" +
|
||||
"\x05local\x18\x04 \x01(\v2\x1e.kratos.api.AdminBackend.LocalR\x05local\x1a\xb8\x01\n" +
|
||||
"\x03JWT\x12\x1f\n" +
|
||||
"\vsigning_key\x18\x01 \x01(\tR\n" +
|
||||
"signingKey\x12<\n" +
|
||||
"\fexpires_time\x18\x02 \x01(\v2\x19.google.protobuf.DurationR\vexpiresTime\x12:\n" +
|
||||
"\vbuffer_time\x18\x03 \x01(\v2\x19.google.protobuf.DurationR\n" +
|
||||
"bufferTime\x12\x16\n" +
|
||||
"\x06issuer\x18\x04 \x01(\tR\x06issuer\x1a\xa6\x01\n" +
|
||||
"\aCaptcha\x12\x19\n" +
|
||||
"\bkey_long\x18\x01 \x01(\x05R\akeyLong\x12\x1b\n" +
|
||||
"\timg_width\x18\x02 \x01(\x05R\bimgWidth\x12\x1d\n" +
|
||||
"\n" +
|
||||
"img_height\x18\x03 \x01(\x05R\timgHeight\x12D\n" +
|
||||
"\x10store_expiration\x18\x04 \x01(\v2\x19.google.protobuf.DurationR\x0fstoreExpiration\x1aG\n" +
|
||||
"\x05Local\x12\x1d\n" +
|
||||
"\n" +
|
||||
"store_path\x18\x01 \x01(\tR\tstorePath\x12\x1f\n" +
|
||||
"\vpath_prefix\x18\x02 \x01(\tR\n" +
|
||||
"pathPrefixB\x18Z\x16kra/internal/conf;confb\x06proto3"
|
||||
|
||||
var (
|
||||
file_conf_conf_proto_rawDescOnce sync.Once
|
||||
@@ -462,33 +751,44 @@ func file_conf_conf_proto_rawDescGZIP() []byte {
|
||||
return file_conf_conf_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_conf_conf_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
||||
var file_conf_conf_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
|
||||
var file_conf_conf_proto_goTypes = []any{
|
||||
(*Bootstrap)(nil), // 0: kratos.api.Bootstrap
|
||||
(*Server)(nil), // 1: kratos.api.Server
|
||||
(*Data)(nil), // 2: kratos.api.Data
|
||||
(*Server_HTTP)(nil), // 3: kratos.api.Server.HTTP
|
||||
(*Server_GRPC)(nil), // 4: kratos.api.Server.GRPC
|
||||
(*Data_Database)(nil), // 5: kratos.api.Data.Database
|
||||
(*Data_Redis)(nil), // 6: kratos.api.Data.Redis
|
||||
(*durationpb.Duration)(nil), // 7: google.protobuf.Duration
|
||||
(*Bootstrap)(nil), // 0: kratos.api.Bootstrap
|
||||
(*Server)(nil), // 1: kratos.api.Server
|
||||
(*Data)(nil), // 2: kratos.api.Data
|
||||
(*AdminBackend)(nil), // 3: kratos.api.AdminBackend
|
||||
(*Server_HTTP)(nil), // 4: kratos.api.Server.HTTP
|
||||
(*Server_GRPC)(nil), // 5: kratos.api.Server.GRPC
|
||||
(*Data_Database)(nil), // 6: kratos.api.Data.Database
|
||||
(*Data_Redis)(nil), // 7: kratos.api.Data.Redis
|
||||
(*AdminBackend_JWT)(nil), // 8: kratos.api.AdminBackend.JWT
|
||||
(*AdminBackend_Captcha)(nil), // 9: kratos.api.AdminBackend.Captcha
|
||||
(*AdminBackend_Local)(nil), // 10: kratos.api.AdminBackend.Local
|
||||
(*durationpb.Duration)(nil), // 11: google.protobuf.Duration
|
||||
}
|
||||
var file_conf_conf_proto_depIdxs = []int32{
|
||||
1, // 0: kratos.api.Bootstrap.server:type_name -> kratos.api.Server
|
||||
2, // 1: kratos.api.Bootstrap.data:type_name -> kratos.api.Data
|
||||
3, // 2: kratos.api.Server.http:type_name -> kratos.api.Server.HTTP
|
||||
4, // 3: kratos.api.Server.grpc:type_name -> kratos.api.Server.GRPC
|
||||
5, // 4: kratos.api.Data.database:type_name -> kratos.api.Data.Database
|
||||
6, // 5: kratos.api.Data.redis:type_name -> kratos.api.Data.Redis
|
||||
7, // 6: kratos.api.Server.HTTP.timeout:type_name -> google.protobuf.Duration
|
||||
7, // 7: kratos.api.Server.GRPC.timeout:type_name -> google.protobuf.Duration
|
||||
7, // 8: kratos.api.Data.Redis.read_timeout:type_name -> google.protobuf.Duration
|
||||
7, // 9: kratos.api.Data.Redis.write_timeout:type_name -> google.protobuf.Duration
|
||||
10, // [10:10] is the sub-list for method output_type
|
||||
10, // [10:10] is the sub-list for method input_type
|
||||
10, // [10:10] is the sub-list for extension type_name
|
||||
10, // [10:10] is the sub-list for extension extendee
|
||||
0, // [0:10] is the sub-list for field type_name
|
||||
3, // 2: kratos.api.Bootstrap.admin:type_name -> kratos.api.AdminBackend
|
||||
4, // 3: kratos.api.Server.http:type_name -> kratos.api.Server.HTTP
|
||||
5, // 4: kratos.api.Server.grpc:type_name -> kratos.api.Server.GRPC
|
||||
6, // 5: kratos.api.Data.database:type_name -> kratos.api.Data.Database
|
||||
7, // 6: kratos.api.Data.redis:type_name -> kratos.api.Data.Redis
|
||||
8, // 7: kratos.api.AdminBackend.jwt:type_name -> kratos.api.AdminBackend.JWT
|
||||
9, // 8: kratos.api.AdminBackend.captcha:type_name -> kratos.api.AdminBackend.Captcha
|
||||
10, // 9: kratos.api.AdminBackend.local:type_name -> kratos.api.AdminBackend.Local
|
||||
11, // 10: kratos.api.Server.HTTP.timeout:type_name -> google.protobuf.Duration
|
||||
11, // 11: kratos.api.Server.GRPC.timeout:type_name -> google.protobuf.Duration
|
||||
11, // 12: kratos.api.Data.Redis.read_timeout:type_name -> google.protobuf.Duration
|
||||
11, // 13: kratos.api.Data.Redis.write_timeout:type_name -> google.protobuf.Duration
|
||||
11, // 14: kratos.api.AdminBackend.JWT.expires_time:type_name -> google.protobuf.Duration
|
||||
11, // 15: kratos.api.AdminBackend.JWT.buffer_time:type_name -> google.protobuf.Duration
|
||||
11, // 16: kratos.api.AdminBackend.Captcha.store_expiration:type_name -> google.protobuf.Duration
|
||||
17, // [17:17] is the sub-list for method output_type
|
||||
17, // [17:17] is the sub-list for method input_type
|
||||
17, // [17:17] is the sub-list for extension type_name
|
||||
17, // [17:17] is the sub-list for extension extendee
|
||||
0, // [0:17] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_conf_conf_proto_init() }
|
||||
@@ -502,7 +802,7 @@ func file_conf_conf_proto_init() {
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_conf_conf_proto_rawDesc), len(file_conf_conf_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 7,
|
||||
NumMessages: 11,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
|
||||
@@ -8,6 +8,7 @@ import "google/protobuf/duration.proto";
|
||||
message Bootstrap {
|
||||
Server server = 1;
|
||||
Data data = 2;
|
||||
AdminBackend admin = 3;
|
||||
}
|
||||
|
||||
message Server {
|
||||
@@ -39,3 +40,30 @@ message Data {
|
||||
Database database = 1;
|
||||
Redis redis = 2;
|
||||
}
|
||||
|
||||
// AdminBackend contains settings for the administration HTTP transport.
|
||||
message AdminBackend {
|
||||
string router_prefix = 1;
|
||||
JWT jwt = 2;
|
||||
Captcha captcha = 3;
|
||||
Local local = 4;
|
||||
|
||||
message JWT {
|
||||
string signing_key = 1;
|
||||
google.protobuf.Duration expires_time = 2;
|
||||
google.protobuf.Duration buffer_time = 3;
|
||||
string issuer = 4;
|
||||
}
|
||||
|
||||
message Captcha {
|
||||
int32 key_long = 1;
|
||||
int32 img_width = 2;
|
||||
int32 img_height = 3;
|
||||
google.protobuf.Duration store_expiration = 4;
|
||||
}
|
||||
|
||||
message Local {
|
||||
string store_path = 1;
|
||||
string path_prefix = 2;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user