优化结构
This commit is contained in:
Generated
+303
-46
@@ -212,13 +212,15 @@ type AdminBackend struct {
|
||||
Email *AdminBackend_Email `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"`
|
||||
Storage *AdminBackend_Storage `protobuf:"bytes,6,opt,name=storage,proto3" json:"storage,omitempty"`
|
||||
// ConfigPath is populated by the entrypoint and is not required in YAML.
|
||||
ConfigPath string `protobuf:"bytes,7,opt,name=config_path,json=configPath,proto3" json:"config_path,omitempty"`
|
||||
Media *AdminBackend_Media `protobuf:"bytes,8,opt,name=media,proto3" json:"media,omitempty"`
|
||||
DiskList []*AdminBackend_Disk `protobuf:"bytes,9,rep,name=disk_list,json=diskList,proto3" json:"disk_list,omitempty"`
|
||||
System *AdminBackend_System `protobuf:"bytes,10,opt,name=system,proto3" json:"system,omitempty"`
|
||||
Zap *AdminBackend_Zap `protobuf:"bytes,11,opt,name=zap,proto3" json:"zap,omitempty"`
|
||||
Cors *AdminBackend_CORS `protobuf:"bytes,12,opt,name=cors,proto3" json:"cors,omitempty"`
|
||||
App *AdminBackend_App `protobuf:"bytes,13,opt,name=app,proto3" json:"app,omitempty"`
|
||||
ConfigPath string `protobuf:"bytes,7,opt,name=config_path,json=configPath,proto3" json:"config_path,omitempty"`
|
||||
Media *AdminBackend_Media `protobuf:"bytes,8,opt,name=media,proto3" json:"media,omitempty"`
|
||||
DiskList []*AdminBackend_Disk `protobuf:"bytes,9,rep,name=disk_list,json=diskList,proto3" json:"disk_list,omitempty"`
|
||||
System *AdminBackend_System `protobuf:"bytes,10,opt,name=system,proto3" json:"system,omitempty"`
|
||||
Zap *AdminBackend_Zap `protobuf:"bytes,11,opt,name=zap,proto3" json:"zap,omitempty"`
|
||||
Cors *AdminBackend_CORS `protobuf:"bytes,12,opt,name=cors,proto3" json:"cors,omitempty"`
|
||||
App *AdminBackend_App `protobuf:"bytes,13,opt,name=app,proto3" json:"app,omitempty"`
|
||||
Websocket *AdminBackend_WebSocket `protobuf:"bytes,14,opt,name=websocket,proto3" json:"websocket,omitempty"`
|
||||
Mq *AdminBackend_MQ `protobuf:"bytes,15,opt,name=mq,proto3" json:"mq,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
@@ -344,6 +346,20 @@ func (x *AdminBackend) GetApp() *AdminBackend_App {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *AdminBackend) GetWebsocket() *AdminBackend_WebSocket {
|
||||
if x != nil {
|
||||
return x.Websocket
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *AdminBackend) GetMq() *AdminBackend_MQ {
|
||||
if x != nil {
|
||||
return x.Mq
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type Server_HTTP struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
|
||||
@@ -1704,6 +1720,216 @@ func (x *AdminBackend_App) GetEnv() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
type AdminBackend_WebSocket struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
|
||||
Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
|
||||
AllowOrigins []string `protobuf:"bytes,3,rep,name=allow_origins,json=allowOrigins,proto3" json:"allow_origins,omitempty"`
|
||||
MaxMessageSize int64 `protobuf:"varint,4,opt,name=max_message_size,json=maxMessageSize,proto3" json:"max_message_size,omitempty"`
|
||||
WriteWait *durationpb.Duration `protobuf:"bytes,5,opt,name=write_wait,json=writeWait,proto3" json:"write_wait,omitempty"`
|
||||
PongWait *durationpb.Duration `protobuf:"bytes,6,opt,name=pong_wait,json=pongWait,proto3" json:"pong_wait,omitempty"`
|
||||
PingPeriod *durationpb.Duration `protobuf:"bytes,7,opt,name=ping_period,json=pingPeriod,proto3" json:"ping_period,omitempty"`
|
||||
MessageBufferSize int32 `protobuf:"varint,8,opt,name=message_buffer_size,json=messageBufferSize,proto3" json:"message_buffer_size,omitempty"`
|
||||
ConcurrentMessageHandling bool `protobuf:"varint,9,opt,name=concurrent_message_handling,json=concurrentMessageHandling,proto3" json:"concurrent_message_handling,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *AdminBackend_WebSocket) Reset() {
|
||||
*x = AdminBackend_WebSocket{}
|
||||
mi := &file_conf_conf_proto_msgTypes[20]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *AdminBackend_WebSocket) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*AdminBackend_WebSocket) ProtoMessage() {}
|
||||
|
||||
func (x *AdminBackend_WebSocket) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_conf_conf_proto_msgTypes[20]
|
||||
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_WebSocket.ProtoReflect.Descriptor instead.
|
||||
func (*AdminBackend_WebSocket) Descriptor() ([]byte, []int) {
|
||||
return file_conf_conf_proto_rawDescGZIP(), []int{3, 11}
|
||||
}
|
||||
|
||||
func (x *AdminBackend_WebSocket) GetEnabled() bool {
|
||||
if x != nil {
|
||||
return x.Enabled
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *AdminBackend_WebSocket) GetPath() string {
|
||||
if x != nil {
|
||||
return x.Path
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *AdminBackend_WebSocket) GetAllowOrigins() []string {
|
||||
if x != nil {
|
||||
return x.AllowOrigins
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *AdminBackend_WebSocket) GetMaxMessageSize() int64 {
|
||||
if x != nil {
|
||||
return x.MaxMessageSize
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *AdminBackend_WebSocket) GetWriteWait() *durationpb.Duration {
|
||||
if x != nil {
|
||||
return x.WriteWait
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *AdminBackend_WebSocket) GetPongWait() *durationpb.Duration {
|
||||
if x != nil {
|
||||
return x.PongWait
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *AdminBackend_WebSocket) GetPingPeriod() *durationpb.Duration {
|
||||
if x != nil {
|
||||
return x.PingPeriod
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *AdminBackend_WebSocket) GetMessageBufferSize() int32 {
|
||||
if x != nil {
|
||||
return x.MessageBufferSize
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *AdminBackend_WebSocket) GetConcurrentMessageHandling() bool {
|
||||
if x != nil {
|
||||
return x.ConcurrentMessageHandling
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// MQ config is persisted in sys_integration_configs (kind=mq/provider=emqx).
|
||||
// The bootstrap fields are retained as a one-time migration source.
|
||||
type AdminBackend_MQ struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
|
||||
Broker string `protobuf:"bytes,2,opt,name=broker,proto3" json:"broker,omitempty"`
|
||||
ClientId string `protobuf:"bytes,3,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
|
||||
Username string `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"`
|
||||
Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"`
|
||||
KeepAlive int32 `protobuf:"varint,6,opt,name=keep_alive,json=keepAlive,proto3" json:"keep_alive,omitempty"`
|
||||
CleanSession bool `protobuf:"varint,7,opt,name=clean_session,json=cleanSession,proto3" json:"clean_session,omitempty"`
|
||||
ConnectTimeout int32 `protobuf:"varint,8,opt,name=connect_timeout,json=connectTimeout,proto3" json:"connect_timeout,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *AdminBackend_MQ) Reset() {
|
||||
*x = AdminBackend_MQ{}
|
||||
mi := &file_conf_conf_proto_msgTypes[21]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *AdminBackend_MQ) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*AdminBackend_MQ) ProtoMessage() {}
|
||||
|
||||
func (x *AdminBackend_MQ) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_conf_conf_proto_msgTypes[21]
|
||||
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_MQ.ProtoReflect.Descriptor instead.
|
||||
func (*AdminBackend_MQ) Descriptor() ([]byte, []int) {
|
||||
return file_conf_conf_proto_rawDescGZIP(), []int{3, 12}
|
||||
}
|
||||
|
||||
func (x *AdminBackend_MQ) GetEnabled() bool {
|
||||
if x != nil {
|
||||
return x.Enabled
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *AdminBackend_MQ) GetBroker() string {
|
||||
if x != nil {
|
||||
return x.Broker
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *AdminBackend_MQ) GetClientId() string {
|
||||
if x != nil {
|
||||
return x.ClientId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *AdminBackend_MQ) GetUsername() string {
|
||||
if x != nil {
|
||||
return x.Username
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *AdminBackend_MQ) GetPassword() string {
|
||||
if x != nil {
|
||||
return x.Password
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *AdminBackend_MQ) GetKeepAlive() int32 {
|
||||
if x != nil {
|
||||
return x.KeepAlive
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *AdminBackend_MQ) GetCleanSession() bool {
|
||||
if x != nil {
|
||||
return x.CleanSession
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *AdminBackend_MQ) GetConnectTimeout() int32 {
|
||||
if x != nil {
|
||||
return x.ConnectTimeout
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type AdminBackend_Storage struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
|
||||
@@ -1720,7 +1946,7 @@ type AdminBackend_Storage struct {
|
||||
|
||||
func (x *AdminBackend_Storage) Reset() {
|
||||
*x = AdminBackend_Storage{}
|
||||
mi := &file_conf_conf_proto_msgTypes[20]
|
||||
mi := &file_conf_conf_proto_msgTypes[22]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -1732,7 +1958,7 @@ func (x *AdminBackend_Storage) String() string {
|
||||
func (*AdminBackend_Storage) ProtoMessage() {}
|
||||
|
||||
func (x *AdminBackend_Storage) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_conf_conf_proto_msgTypes[20]
|
||||
mi := &file_conf_conf_proto_msgTypes[22]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -1745,7 +1971,7 @@ func (x *AdminBackend_Storage) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use AdminBackend_Storage.ProtoReflect.Descriptor instead.
|
||||
func (*AdminBackend_Storage) Descriptor() ([]byte, []int) {
|
||||
return file_conf_conf_proto_rawDescGZIP(), []int{3, 11}
|
||||
return file_conf_conf_proto_rawDescGZIP(), []int{3, 13}
|
||||
}
|
||||
|
||||
func (x *AdminBackend_Storage) GetType() string {
|
||||
@@ -1819,7 +2045,7 @@ type AdminBackend_Qiniu struct {
|
||||
|
||||
func (x *AdminBackend_Qiniu) Reset() {
|
||||
*x = AdminBackend_Qiniu{}
|
||||
mi := &file_conf_conf_proto_msgTypes[21]
|
||||
mi := &file_conf_conf_proto_msgTypes[23]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -1831,7 +2057,7 @@ func (x *AdminBackend_Qiniu) String() string {
|
||||
func (*AdminBackend_Qiniu) ProtoMessage() {}
|
||||
|
||||
func (x *AdminBackend_Qiniu) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_conf_conf_proto_msgTypes[21]
|
||||
mi := &file_conf_conf_proto_msgTypes[23]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -1844,7 +2070,7 @@ func (x *AdminBackend_Qiniu) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use AdminBackend_Qiniu.ProtoReflect.Descriptor instead.
|
||||
func (*AdminBackend_Qiniu) Descriptor() ([]byte, []int) {
|
||||
return file_conf_conf_proto_rawDescGZIP(), []int{3, 12}
|
||||
return file_conf_conf_proto_rawDescGZIP(), []int{3, 14}
|
||||
}
|
||||
|
||||
func (x *AdminBackend_Qiniu) GetZone() string {
|
||||
@@ -1916,7 +2142,7 @@ type AdminBackend_ObjectStore struct {
|
||||
|
||||
func (x *AdminBackend_ObjectStore) Reset() {
|
||||
*x = AdminBackend_ObjectStore{}
|
||||
mi := &file_conf_conf_proto_msgTypes[22]
|
||||
mi := &file_conf_conf_proto_msgTypes[24]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -1928,7 +2154,7 @@ func (x *AdminBackend_ObjectStore) String() string {
|
||||
func (*AdminBackend_ObjectStore) ProtoMessage() {}
|
||||
|
||||
func (x *AdminBackend_ObjectStore) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_conf_conf_proto_msgTypes[22]
|
||||
mi := &file_conf_conf_proto_msgTypes[24]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -1941,7 +2167,7 @@ func (x *AdminBackend_ObjectStore) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use AdminBackend_ObjectStore.ProtoReflect.Descriptor instead.
|
||||
func (*AdminBackend_ObjectStore) Descriptor() ([]byte, []int) {
|
||||
return file_conf_conf_proto_rawDescGZIP(), []int{3, 13}
|
||||
return file_conf_conf_proto_rawDescGZIP(), []int{3, 15}
|
||||
}
|
||||
|
||||
func (x *AdminBackend_ObjectStore) GetEndpoint() string {
|
||||
@@ -2086,7 +2312,7 @@ const file_conf_conf_proto_rawDesc = "" +
|
||||
"\x12connect_timeout_ms\x18\n" +
|
||||
" \x01(\x03R\x10connectTimeoutMs\x12\x15\n" +
|
||||
"\x06is_zap\x18\v \x01(\bR\x05isZap\x120\n" +
|
||||
"\x05hosts\x18\f \x03(\v2\x1a.kratos.api.Data.MongoHostR\x05hosts\"\xad\x1c\n" +
|
||||
"\x05hosts\x18\f \x03(\v2\x1a.kratos.api.Data.MongoHostR\x05hosts\"\xc0\"\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" +
|
||||
@@ -2102,7 +2328,9 @@ const file_conf_conf_proto_rawDesc = "" +
|
||||
" \x01(\v2\x1f.kratos.api.AdminBackend.SystemR\x06system\x12.\n" +
|
||||
"\x03zap\x18\v \x01(\v2\x1c.kratos.api.AdminBackend.ZapR\x03zap\x121\n" +
|
||||
"\x04cors\x18\f \x01(\v2\x1d.kratos.api.AdminBackend.CORSR\x04cors\x12.\n" +
|
||||
"\x03app\x18\r \x01(\v2\x1c.kratos.api.AdminBackend.AppR\x03app\x1a\xb8\x01\n" +
|
||||
"\x03app\x18\r \x01(\v2\x1c.kratos.api.AdminBackend.AppR\x03app\x12@\n" +
|
||||
"\twebsocket\x18\x0e \x01(\v2\".kratos.api.AdminBackend.WebSocketR\twebsocket\x12+\n" +
|
||||
"\x02mq\x18\x0f \x01(\v2\x1b.kratos.api.AdminBackend.MQR\x02mq\x1a\xb8\x01\n" +
|
||||
"\x03JWT\x12\x1f\n" +
|
||||
"\vsigning_key\x18\x01 \x01(\tR\n" +
|
||||
"signingKey\x12<\n" +
|
||||
@@ -2175,7 +2403,29 @@ const file_conf_conf_proto_rawDesc = "" +
|
||||
"\x03App\x12\x12\n" +
|
||||
"\x04node\x18\x01 \x01(\tR\x04node\x12\x15\n" +
|
||||
"\x06app_id\x18\x02 \x01(\tR\x05appId\x12\x10\n" +
|
||||
"\x03env\x18\x03 \x01(\tR\x03env\x1a\xe8\x03\n" +
|
||||
"\x03env\x18\x03 \x01(\tR\x03env\x1a\xa6\x03\n" +
|
||||
"\tWebSocket\x12\x18\n" +
|
||||
"\aenabled\x18\x01 \x01(\bR\aenabled\x12\x12\n" +
|
||||
"\x04path\x18\x02 \x01(\tR\x04path\x12#\n" +
|
||||
"\rallow_origins\x18\x03 \x03(\tR\fallowOrigins\x12(\n" +
|
||||
"\x10max_message_size\x18\x04 \x01(\x03R\x0emaxMessageSize\x128\n" +
|
||||
"\n" +
|
||||
"write_wait\x18\x05 \x01(\v2\x19.google.protobuf.DurationR\twriteWait\x126\n" +
|
||||
"\tpong_wait\x18\x06 \x01(\v2\x19.google.protobuf.DurationR\bpongWait\x12:\n" +
|
||||
"\vping_period\x18\a \x01(\v2\x19.google.protobuf.DurationR\n" +
|
||||
"pingPeriod\x12.\n" +
|
||||
"\x13message_buffer_size\x18\b \x01(\x05R\x11messageBufferSize\x12>\n" +
|
||||
"\x1bconcurrent_message_handling\x18\t \x01(\bR\x19concurrentMessageHandling\x1a\xf8\x01\n" +
|
||||
"\x02MQ\x12\x18\n" +
|
||||
"\aenabled\x18\x01 \x01(\bR\aenabled\x12\x16\n" +
|
||||
"\x06broker\x18\x02 \x01(\tR\x06broker\x12\x1b\n" +
|
||||
"\tclient_id\x18\x03 \x01(\tR\bclientId\x12\x1a\n" +
|
||||
"\busername\x18\x04 \x01(\tR\busername\x12\x1a\n" +
|
||||
"\bpassword\x18\x05 \x01(\tR\bpassword\x12\x1d\n" +
|
||||
"\n" +
|
||||
"keep_alive\x18\x06 \x01(\x05R\tkeepAlive\x12#\n" +
|
||||
"\rclean_session\x18\a \x01(\bR\fcleanSession\x12'\n" +
|
||||
"\x0fconnect_timeout\x18\b \x01(\x05R\x0econnectTimeout\x1a\xe8\x03\n" +
|
||||
"\aStorage\x12\x12\n" +
|
||||
"\x04type\x18\x01 \x01(\tR\x04type\x124\n" +
|
||||
"\x05qiniu\x18\x02 \x01(\v2\x1e.kratos.api.AdminBackend.QiniuR\x05qiniu\x12C\n" +
|
||||
@@ -2227,7 +2477,7 @@ func file_conf_conf_proto_rawDescGZIP() []byte {
|
||||
return file_conf_conf_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_conf_conf_proto_msgTypes = make([]protoimpl.MessageInfo, 23)
|
||||
var file_conf_conf_proto_msgTypes = make([]protoimpl.MessageInfo, 25)
|
||||
var file_conf_conf_proto_goTypes = []any{
|
||||
(*Bootstrap)(nil), // 0: kratos.api.Bootstrap
|
||||
(*Server)(nil), // 1: kratos.api.Server
|
||||
@@ -2249,10 +2499,12 @@ var file_conf_conf_proto_goTypes = []any{
|
||||
(*AdminBackend_CORS)(nil), // 17: kratos.api.AdminBackend.CORS
|
||||
(*AdminBackend_CORSRule)(nil), // 18: kratos.api.AdminBackend.CORSRule
|
||||
(*AdminBackend_App)(nil), // 19: kratos.api.AdminBackend.App
|
||||
(*AdminBackend_Storage)(nil), // 20: kratos.api.AdminBackend.Storage
|
||||
(*AdminBackend_Qiniu)(nil), // 21: kratos.api.AdminBackend.Qiniu
|
||||
(*AdminBackend_ObjectStore)(nil), // 22: kratos.api.AdminBackend.ObjectStore
|
||||
(*durationpb.Duration)(nil), // 23: google.protobuf.Duration
|
||||
(*AdminBackend_WebSocket)(nil), // 20: kratos.api.AdminBackend.WebSocket
|
||||
(*AdminBackend_MQ)(nil), // 21: kratos.api.AdminBackend.MQ
|
||||
(*AdminBackend_Storage)(nil), // 22: kratos.api.AdminBackend.Storage
|
||||
(*AdminBackend_Qiniu)(nil), // 23: kratos.api.AdminBackend.Qiniu
|
||||
(*AdminBackend_ObjectStore)(nil), // 24: kratos.api.AdminBackend.ObjectStore
|
||||
(*durationpb.Duration)(nil), // 25: google.protobuf.Duration
|
||||
}
|
||||
var file_conf_conf_proto_depIdxs = []int32{
|
||||
1, // 0: kratos.api.Bootstrap.server:type_name -> kratos.api.Server
|
||||
@@ -2268,33 +2520,38 @@ var file_conf_conf_proto_depIdxs = []int32{
|
||||
10, // 10: kratos.api.AdminBackend.captcha:type_name -> kratos.api.AdminBackend.Captcha
|
||||
11, // 11: kratos.api.AdminBackend.local:type_name -> kratos.api.AdminBackend.Local
|
||||
12, // 12: kratos.api.AdminBackend.email:type_name -> kratos.api.AdminBackend.Email
|
||||
20, // 13: kratos.api.AdminBackend.storage:type_name -> kratos.api.AdminBackend.Storage
|
||||
22, // 13: kratos.api.AdminBackend.storage:type_name -> kratos.api.AdminBackend.Storage
|
||||
13, // 14: kratos.api.AdminBackend.media:type_name -> kratos.api.AdminBackend.Media
|
||||
14, // 15: kratos.api.AdminBackend.disk_list:type_name -> kratos.api.AdminBackend.Disk
|
||||
15, // 16: kratos.api.AdminBackend.system:type_name -> kratos.api.AdminBackend.System
|
||||
16, // 17: kratos.api.AdminBackend.zap:type_name -> kratos.api.AdminBackend.Zap
|
||||
17, // 18: kratos.api.AdminBackend.cors:type_name -> kratos.api.AdminBackend.CORS
|
||||
19, // 19: kratos.api.AdminBackend.app:type_name -> kratos.api.AdminBackend.App
|
||||
23, // 20: kratos.api.Server.HTTP.timeout:type_name -> google.protobuf.Duration
|
||||
23, // 21: kratos.api.Data.Redis.read_timeout:type_name -> google.protobuf.Duration
|
||||
23, // 22: kratos.api.Data.Redis.write_timeout:type_name -> google.protobuf.Duration
|
||||
7, // 23: kratos.api.Data.Mongo.hosts:type_name -> kratos.api.Data.MongoHost
|
||||
23, // 24: kratos.api.AdminBackend.JWT.expires_time:type_name -> google.protobuf.Duration
|
||||
23, // 25: kratos.api.AdminBackend.JWT.buffer_time:type_name -> google.protobuf.Duration
|
||||
23, // 26: kratos.api.AdminBackend.Captcha.store_expiration:type_name -> google.protobuf.Duration
|
||||
18, // 27: kratos.api.AdminBackend.CORS.whitelist:type_name -> kratos.api.AdminBackend.CORSRule
|
||||
21, // 28: kratos.api.AdminBackend.Storage.qiniu:type_name -> kratos.api.AdminBackend.Qiniu
|
||||
22, // 29: kratos.api.AdminBackend.Storage.aliyun_oss:type_name -> kratos.api.AdminBackend.ObjectStore
|
||||
22, // 30: kratos.api.AdminBackend.Storage.huawei_obs:type_name -> kratos.api.AdminBackend.ObjectStore
|
||||
22, // 31: kratos.api.AdminBackend.Storage.tencent_cos:type_name -> kratos.api.AdminBackend.ObjectStore
|
||||
22, // 32: kratos.api.AdminBackend.Storage.aws_s3:type_name -> kratos.api.AdminBackend.ObjectStore
|
||||
22, // 33: kratos.api.AdminBackend.Storage.cloudflare_r2:type_name -> kratos.api.AdminBackend.ObjectStore
|
||||
22, // 34: kratos.api.AdminBackend.Storage.minio:type_name -> kratos.api.AdminBackend.ObjectStore
|
||||
35, // [35:35] is the sub-list for method output_type
|
||||
35, // [35:35] is the sub-list for method input_type
|
||||
35, // [35:35] is the sub-list for extension type_name
|
||||
35, // [35:35] is the sub-list for extension extendee
|
||||
0, // [0:35] is the sub-list for field type_name
|
||||
20, // 20: kratos.api.AdminBackend.websocket:type_name -> kratos.api.AdminBackend.WebSocket
|
||||
21, // 21: kratos.api.AdminBackend.mq:type_name -> kratos.api.AdminBackend.MQ
|
||||
25, // 22: kratos.api.Server.HTTP.timeout:type_name -> google.protobuf.Duration
|
||||
25, // 23: kratos.api.Data.Redis.read_timeout:type_name -> google.protobuf.Duration
|
||||
25, // 24: kratos.api.Data.Redis.write_timeout:type_name -> google.protobuf.Duration
|
||||
7, // 25: kratos.api.Data.Mongo.hosts:type_name -> kratos.api.Data.MongoHost
|
||||
25, // 26: kratos.api.AdminBackend.JWT.expires_time:type_name -> google.protobuf.Duration
|
||||
25, // 27: kratos.api.AdminBackend.JWT.buffer_time:type_name -> google.protobuf.Duration
|
||||
25, // 28: kratos.api.AdminBackend.Captcha.store_expiration:type_name -> google.protobuf.Duration
|
||||
18, // 29: kratos.api.AdminBackend.CORS.whitelist:type_name -> kratos.api.AdminBackend.CORSRule
|
||||
25, // 30: kratos.api.AdminBackend.WebSocket.write_wait:type_name -> google.protobuf.Duration
|
||||
25, // 31: kratos.api.AdminBackend.WebSocket.pong_wait:type_name -> google.protobuf.Duration
|
||||
25, // 32: kratos.api.AdminBackend.WebSocket.ping_period:type_name -> google.protobuf.Duration
|
||||
23, // 33: kratos.api.AdminBackend.Storage.qiniu:type_name -> kratos.api.AdminBackend.Qiniu
|
||||
24, // 34: kratos.api.AdminBackend.Storage.aliyun_oss:type_name -> kratos.api.AdminBackend.ObjectStore
|
||||
24, // 35: kratos.api.AdminBackend.Storage.huawei_obs:type_name -> kratos.api.AdminBackend.ObjectStore
|
||||
24, // 36: kratos.api.AdminBackend.Storage.tencent_cos:type_name -> kratos.api.AdminBackend.ObjectStore
|
||||
24, // 37: kratos.api.AdminBackend.Storage.aws_s3:type_name -> kratos.api.AdminBackend.ObjectStore
|
||||
24, // 38: kratos.api.AdminBackend.Storage.cloudflare_r2:type_name -> kratos.api.AdminBackend.ObjectStore
|
||||
24, // 39: kratos.api.AdminBackend.Storage.minio:type_name -> kratos.api.AdminBackend.ObjectStore
|
||||
40, // [40:40] is the sub-list for method output_type
|
||||
40, // [40:40] is the sub-list for method input_type
|
||||
40, // [40:40] is the sub-list for extension type_name
|
||||
40, // [40:40] is the sub-list for extension extendee
|
||||
0, // [0:40] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_conf_conf_proto_init() }
|
||||
@@ -2308,7 +2565,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: 23,
|
||||
NumMessages: 25,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
|
||||
@@ -93,6 +93,8 @@ message AdminBackend {
|
||||
Zap zap = 11;
|
||||
CORS cors = 12;
|
||||
App app = 13;
|
||||
WebSocket websocket = 14;
|
||||
MQ mq = 15;
|
||||
|
||||
message JWT {
|
||||
string signing_key = 1;
|
||||
@@ -179,6 +181,31 @@ message AdminBackend {
|
||||
string env = 3;
|
||||
}
|
||||
|
||||
message WebSocket {
|
||||
bool enabled = 1;
|
||||
string path = 2;
|
||||
repeated string allow_origins = 3;
|
||||
int64 max_message_size = 4;
|
||||
google.protobuf.Duration write_wait = 5;
|
||||
google.protobuf.Duration pong_wait = 6;
|
||||
google.protobuf.Duration ping_period = 7;
|
||||
int32 message_buffer_size = 8;
|
||||
bool concurrent_message_handling = 9;
|
||||
}
|
||||
|
||||
// MQ config is persisted in sys_integration_configs (kind=mq/provider=emqx).
|
||||
// The bootstrap fields are retained as a one-time migration source.
|
||||
message MQ {
|
||||
bool enabled = 1;
|
||||
string broker = 2;
|
||||
string client_id = 3;
|
||||
string username = 4;
|
||||
string password = 5;
|
||||
int32 keep_alive = 6;
|
||||
bool clean_session = 7;
|
||||
int32 connect_timeout = 8;
|
||||
}
|
||||
|
||||
message Storage {
|
||||
string type = 1;
|
||||
Qiniu qiniu = 2;
|
||||
|
||||
Reference in New Issue
Block a user