迁移公告,邮件
This commit is contained in:
Generated
+138
-18
@@ -193,6 +193,7 @@ type AdminBackend struct {
|
||||
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"`
|
||||
Email *AdminBackend_Email `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
@@ -255,6 +256,13 @@ func (x *AdminBackend) GetLocal() *AdminBackend_Local {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *AdminBackend) GetEmail() *AdminBackend_Email {
|
||||
if x != nil {
|
||||
return x.Email
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type Server_HTTP struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
|
||||
@@ -683,6 +691,106 @@ func (x *AdminBackend_Local) GetPathPrefix() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
type AdminBackend_Email struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
To string `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"`
|
||||
From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
|
||||
Host string `protobuf:"bytes,3,opt,name=host,proto3" json:"host,omitempty"`
|
||||
Secret string `protobuf:"bytes,4,opt,name=secret,proto3" json:"secret,omitempty"`
|
||||
Nickname string `protobuf:"bytes,5,opt,name=nickname,proto3" json:"nickname,omitempty"`
|
||||
Port int32 `protobuf:"varint,6,opt,name=port,proto3" json:"port,omitempty"`
|
||||
IsSsl bool `protobuf:"varint,7,opt,name=is_ssl,json=isSsl,proto3" json:"is_ssl,omitempty"`
|
||||
IsLoginAuth bool `protobuf:"varint,8,opt,name=is_login_auth,json=isLoginAuth,proto3" json:"is_login_auth,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *AdminBackend_Email) Reset() {
|
||||
*x = AdminBackend_Email{}
|
||||
mi := &file_conf_conf_proto_msgTypes[11]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *AdminBackend_Email) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*AdminBackend_Email) ProtoMessage() {}
|
||||
|
||||
func (x *AdminBackend_Email) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_conf_conf_proto_msgTypes[11]
|
||||
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_Email.ProtoReflect.Descriptor instead.
|
||||
func (*AdminBackend_Email) Descriptor() ([]byte, []int) {
|
||||
return file_conf_conf_proto_rawDescGZIP(), []int{3, 3}
|
||||
}
|
||||
|
||||
func (x *AdminBackend_Email) GetTo() string {
|
||||
if x != nil {
|
||||
return x.To
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *AdminBackend_Email) GetFrom() string {
|
||||
if x != nil {
|
||||
return x.From
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *AdminBackend_Email) GetHost() string {
|
||||
if x != nil {
|
||||
return x.Host
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *AdminBackend_Email) GetSecret() string {
|
||||
if x != nil {
|
||||
return x.Secret
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *AdminBackend_Email) GetNickname() string {
|
||||
if x != nil {
|
||||
return x.Nickname
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *AdminBackend_Email) GetPort() int32 {
|
||||
if x != nil {
|
||||
return x.Port
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *AdminBackend_Email) GetIsSsl() bool {
|
||||
if x != nil {
|
||||
return x.IsSsl
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *AdminBackend_Email) GetIsLoginAuth() bool {
|
||||
if x != nil {
|
||||
return x.IsLoginAuth
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
var File_conf_conf_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_conf_conf_proto_rawDesc = "" +
|
||||
@@ -714,12 +822,13 @@ 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\fwriteTimeout\"\x82\x05\n" +
|
||||
"\rwrite_timeout\x18\x04 \x01(\v2\x19.google.protobuf.DurationR\fwriteTimeout\"\xfd\x06\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" +
|
||||
"\x05local\x18\x04 \x01(\v2\x1e.kratos.api.AdminBackend.LocalR\x05local\x124\n" +
|
||||
"\x05email\x18\x05 \x01(\v2\x1e.kratos.api.AdminBackend.EmailR\x05email\x1a\xb8\x01\n" +
|
||||
"\x03JWT\x12\x1f\n" +
|
||||
"\vsigning_key\x18\x01 \x01(\tR\n" +
|
||||
"signingKey\x12<\n" +
|
||||
@@ -737,7 +846,16 @@ const file_conf_conf_proto_rawDesc = "" +
|
||||
"\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"
|
||||
"pathPrefix\x1a\xc2\x01\n" +
|
||||
"\x05Email\x12\x0e\n" +
|
||||
"\x02to\x18\x01 \x01(\tR\x02to\x12\x12\n" +
|
||||
"\x04from\x18\x02 \x01(\tR\x04from\x12\x12\n" +
|
||||
"\x04host\x18\x03 \x01(\tR\x04host\x12\x16\n" +
|
||||
"\x06secret\x18\x04 \x01(\tR\x06secret\x12\x1a\n" +
|
||||
"\bnickname\x18\x05 \x01(\tR\bnickname\x12\x12\n" +
|
||||
"\x04port\x18\x06 \x01(\x05R\x04port\x12\x15\n" +
|
||||
"\x06is_ssl\x18\a \x01(\bR\x05isSsl\x12\"\n" +
|
||||
"\ris_login_auth\x18\b \x01(\bR\visLoginAuthB\x18Z\x16kra/internal/conf;confb\x06proto3"
|
||||
|
||||
var (
|
||||
file_conf_conf_proto_rawDescOnce sync.Once
|
||||
@@ -751,7 +869,7 @@ func file_conf_conf_proto_rawDescGZIP() []byte {
|
||||
return file_conf_conf_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_conf_conf_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
|
||||
var file_conf_conf_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
|
||||
var file_conf_conf_proto_goTypes = []any{
|
||||
(*Bootstrap)(nil), // 0: kratos.api.Bootstrap
|
||||
(*Server)(nil), // 1: kratos.api.Server
|
||||
@@ -764,7 +882,8 @@ var file_conf_conf_proto_goTypes = []any{
|
||||
(*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
|
||||
(*AdminBackend_Email)(nil), // 11: kratos.api.AdminBackend.Email
|
||||
(*durationpb.Duration)(nil), // 12: google.protobuf.Duration
|
||||
}
|
||||
var file_conf_conf_proto_depIdxs = []int32{
|
||||
1, // 0: kratos.api.Bootstrap.server:type_name -> kratos.api.Server
|
||||
@@ -777,18 +896,19 @@ var file_conf_conf_proto_depIdxs = []int32{
|
||||
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
|
||||
11, // 10: kratos.api.AdminBackend.email:type_name -> kratos.api.AdminBackend.Email
|
||||
12, // 11: kratos.api.Server.HTTP.timeout:type_name -> google.protobuf.Duration
|
||||
12, // 12: kratos.api.Server.GRPC.timeout:type_name -> google.protobuf.Duration
|
||||
12, // 13: kratos.api.Data.Redis.read_timeout:type_name -> google.protobuf.Duration
|
||||
12, // 14: kratos.api.Data.Redis.write_timeout:type_name -> google.protobuf.Duration
|
||||
12, // 15: kratos.api.AdminBackend.JWT.expires_time:type_name -> google.protobuf.Duration
|
||||
12, // 16: kratos.api.AdminBackend.JWT.buffer_time:type_name -> google.protobuf.Duration
|
||||
12, // 17: kratos.api.AdminBackend.Captcha.store_expiration:type_name -> google.protobuf.Duration
|
||||
18, // [18:18] is the sub-list for method output_type
|
||||
18, // [18:18] is the sub-list for method input_type
|
||||
18, // [18:18] is the sub-list for extension type_name
|
||||
18, // [18:18] is the sub-list for extension extendee
|
||||
0, // [0:18] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_conf_conf_proto_init() }
|
||||
@@ -802,7 +922,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: 11,
|
||||
NumMessages: 12,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
|
||||
@@ -47,6 +47,7 @@ message AdminBackend {
|
||||
JWT jwt = 2;
|
||||
Captcha captcha = 3;
|
||||
Local local = 4;
|
||||
Email email = 5;
|
||||
|
||||
message JWT {
|
||||
string signing_key = 1;
|
||||
@@ -66,4 +67,15 @@ message AdminBackend {
|
||||
string store_path = 1;
|
||||
string path_prefix = 2;
|
||||
}
|
||||
|
||||
message Email {
|
||||
string to = 1;
|
||||
string from = 2;
|
||||
string host = 3;
|
||||
string secret = 4;
|
||||
string nickname = 5;
|
||||
int32 port = 6;
|
||||
bool is_ssl = 7;
|
||||
bool is_login_auth = 8;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user