Compare commits
3 Commits
api/v0.0.1
...
api/v0.0.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
03c605e139 | ||
|
|
00e2881172 | ||
|
|
5313e6862b |
@@ -1,6 +1,6 @@
|
|||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.35.2
|
// protoc-gen-go v1.36.5
|
||||||
// protoc (unknown)
|
// protoc (unknown)
|
||||||
// source: conf/v1/kratos_conf_authn.proto
|
// source: conf/v1/kratos_conf_authn.proto
|
||||||
|
|
||||||
@@ -12,6 +12,7 @@ import (
|
|||||||
_ "google.golang.org/protobuf/types/known/durationpb"
|
_ "google.golang.org/protobuf/types/known/durationpb"
|
||||||
reflect "reflect"
|
reflect "reflect"
|
||||||
sync "sync"
|
sync "sync"
|
||||||
|
unsafe "unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -23,11 +24,10 @@ const (
|
|||||||
|
|
||||||
// 认证
|
// 认证
|
||||||
type Authentication struct {
|
type Authentication struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Jwt *Authentication_Jwt `protobuf:"bytes,1,opt,name=jwt,proto3,oneof" json:"jwt,omitempty"`
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
Jwt *Authentication_Jwt `protobuf:"bytes,1,opt,name=jwt,proto3,oneof" json:"jwt,omitempty"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Authentication) Reset() {
|
func (x *Authentication) Reset() {
|
||||||
@@ -69,12 +69,11 @@ func (x *Authentication) GetJwt() *Authentication_Jwt {
|
|||||||
|
|
||||||
// JWT
|
// JWT
|
||||||
type Authentication_Jwt struct {
|
type Authentication_Jwt struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"` // JWT签名的算法,支持算法:HS256
|
||||||
|
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` // JWT 秘钥
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"` // JWT签名的算法,支持算法:HS256
|
|
||||||
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` // JWT 秘钥
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Authentication_Jwt) Reset() {
|
func (x *Authentication_Jwt) Reset() {
|
||||||
@@ -123,7 +122,7 @@ func (x *Authentication_Jwt) GetKey() string {
|
|||||||
|
|
||||||
var File_conf_v1_kratos_conf_authn_proto protoreflect.FileDescriptor
|
var File_conf_v1_kratos_conf_authn_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
var file_conf_v1_kratos_conf_authn_proto_rawDesc = []byte{
|
var file_conf_v1_kratos_conf_authn_proto_rawDesc = string([]byte{
|
||||||
0x0a, 0x1f, 0x63, 0x6f, 0x6e, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73,
|
0x0a, 0x1f, 0x63, 0x6f, 0x6e, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73,
|
||||||
0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
||||||
0x6f, 0x12, 0x04, 0x63, 0x6f, 0x6e, 0x66, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
|
0x6f, 0x12, 0x04, 0x63, 0x6f, 0x6e, 0x66, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
|
||||||
@@ -146,16 +145,16 @@ var file_conf_v1_kratos_conf_authn_proto_rawDesc = []byte{
|
|||||||
0x6e, 0x66, 0xe2, 0x02, 0x10, 0x43, 0x6f, 0x6e, 0x66, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74,
|
0x6e, 0x66, 0xe2, 0x02, 0x10, 0x43, 0x6f, 0x6e, 0x66, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74,
|
||||||
0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x04, 0x43, 0x6f, 0x6e, 0x66, 0x62, 0x06, 0x70, 0x72,
|
0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x04, 0x43, 0x6f, 0x6e, 0x66, 0x62, 0x06, 0x70, 0x72,
|
||||||
0x6f, 0x74, 0x6f, 0x33,
|
0x6f, 0x74, 0x6f, 0x33,
|
||||||
}
|
})
|
||||||
|
|
||||||
var (
|
var (
|
||||||
file_conf_v1_kratos_conf_authn_proto_rawDescOnce sync.Once
|
file_conf_v1_kratos_conf_authn_proto_rawDescOnce sync.Once
|
||||||
file_conf_v1_kratos_conf_authn_proto_rawDescData = file_conf_v1_kratos_conf_authn_proto_rawDesc
|
file_conf_v1_kratos_conf_authn_proto_rawDescData []byte
|
||||||
)
|
)
|
||||||
|
|
||||||
func file_conf_v1_kratos_conf_authn_proto_rawDescGZIP() []byte {
|
func file_conf_v1_kratos_conf_authn_proto_rawDescGZIP() []byte {
|
||||||
file_conf_v1_kratos_conf_authn_proto_rawDescOnce.Do(func() {
|
file_conf_v1_kratos_conf_authn_proto_rawDescOnce.Do(func() {
|
||||||
file_conf_v1_kratos_conf_authn_proto_rawDescData = protoimpl.X.CompressGZIP(file_conf_v1_kratos_conf_authn_proto_rawDescData)
|
file_conf_v1_kratos_conf_authn_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_conf_v1_kratos_conf_authn_proto_rawDesc), len(file_conf_v1_kratos_conf_authn_proto_rawDesc)))
|
||||||
})
|
})
|
||||||
return file_conf_v1_kratos_conf_authn_proto_rawDescData
|
return file_conf_v1_kratos_conf_authn_proto_rawDescData
|
||||||
}
|
}
|
||||||
@@ -184,7 +183,7 @@ func file_conf_v1_kratos_conf_authn_proto_init() {
|
|||||||
out := protoimpl.TypeBuilder{
|
out := protoimpl.TypeBuilder{
|
||||||
File: protoimpl.DescBuilder{
|
File: protoimpl.DescBuilder{
|
||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_conf_v1_kratos_conf_authn_proto_rawDesc,
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_conf_v1_kratos_conf_authn_proto_rawDesc), len(file_conf_v1_kratos_conf_authn_proto_rawDesc)),
|
||||||
NumEnums: 0,
|
NumEnums: 0,
|
||||||
NumMessages: 2,
|
NumMessages: 2,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
@@ -195,7 +194,6 @@ func file_conf_v1_kratos_conf_authn_proto_init() {
|
|||||||
MessageInfos: file_conf_v1_kratos_conf_authn_proto_msgTypes,
|
MessageInfos: file_conf_v1_kratos_conf_authn_proto_msgTypes,
|
||||||
}.Build()
|
}.Build()
|
||||||
File_conf_v1_kratos_conf_authn_proto = out.File
|
File_conf_v1_kratos_conf_authn_proto = out.File
|
||||||
file_conf_v1_kratos_conf_authn_proto_rawDesc = nil
|
|
||||||
file_conf_v1_kratos_conf_authn_proto_goTypes = nil
|
file_conf_v1_kratos_conf_authn_proto_goTypes = nil
|
||||||
file_conf_v1_kratos_conf_authn_proto_depIdxs = nil
|
file_conf_v1_kratos_conf_authn_proto_depIdxs = nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.35.2
|
// protoc-gen-go v1.36.5
|
||||||
// protoc (unknown)
|
// protoc (unknown)
|
||||||
// source: conf/v1/kratos_conf_authz.proto
|
// source: conf/v1/kratos_conf_authz.proto
|
||||||
|
|
||||||
@@ -12,6 +12,7 @@ import (
|
|||||||
_ "google.golang.org/protobuf/types/known/durationpb"
|
_ "google.golang.org/protobuf/types/known/durationpb"
|
||||||
reflect "reflect"
|
reflect "reflect"
|
||||||
sync "sync"
|
sync "sync"
|
||||||
|
unsafe "unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -23,9 +24,9 @@ const (
|
|||||||
|
|
||||||
// 授权
|
// 授权
|
||||||
type Authorization struct {
|
type Authorization struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Authorization) Reset() {
|
func (x *Authorization) Reset() {
|
||||||
@@ -60,7 +61,7 @@ func (*Authorization) Descriptor() ([]byte, []int) {
|
|||||||
|
|
||||||
var File_conf_v1_kratos_conf_authz_proto protoreflect.FileDescriptor
|
var File_conf_v1_kratos_conf_authz_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
var file_conf_v1_kratos_conf_authz_proto_rawDesc = []byte{
|
var file_conf_v1_kratos_conf_authz_proto_rawDesc = string([]byte{
|
||||||
0x0a, 0x1f, 0x63, 0x6f, 0x6e, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73,
|
0x0a, 0x1f, 0x63, 0x6f, 0x6e, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73,
|
||||||
0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x7a, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x7a, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
||||||
0x6f, 0x12, 0x04, 0x63, 0x6f, 0x6e, 0x66, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
|
0x6f, 0x12, 0x04, 0x63, 0x6f, 0x6e, 0x66, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
|
||||||
@@ -76,16 +77,16 @@ var file_conf_v1_kratos_conf_authz_proto_rawDesc = []byte{
|
|||||||
0xca, 0x02, 0x04, 0x43, 0x6f, 0x6e, 0x66, 0xe2, 0x02, 0x10, 0x43, 0x6f, 0x6e, 0x66, 0x5c, 0x47,
|
0xca, 0x02, 0x04, 0x43, 0x6f, 0x6e, 0x66, 0xe2, 0x02, 0x10, 0x43, 0x6f, 0x6e, 0x66, 0x5c, 0x47,
|
||||||
0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x04, 0x43, 0x6f, 0x6e,
|
0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x04, 0x43, 0x6f, 0x6e,
|
||||||
0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
}
|
})
|
||||||
|
|
||||||
var (
|
var (
|
||||||
file_conf_v1_kratos_conf_authz_proto_rawDescOnce sync.Once
|
file_conf_v1_kratos_conf_authz_proto_rawDescOnce sync.Once
|
||||||
file_conf_v1_kratos_conf_authz_proto_rawDescData = file_conf_v1_kratos_conf_authz_proto_rawDesc
|
file_conf_v1_kratos_conf_authz_proto_rawDescData []byte
|
||||||
)
|
)
|
||||||
|
|
||||||
func file_conf_v1_kratos_conf_authz_proto_rawDescGZIP() []byte {
|
func file_conf_v1_kratos_conf_authz_proto_rawDescGZIP() []byte {
|
||||||
file_conf_v1_kratos_conf_authz_proto_rawDescOnce.Do(func() {
|
file_conf_v1_kratos_conf_authz_proto_rawDescOnce.Do(func() {
|
||||||
file_conf_v1_kratos_conf_authz_proto_rawDescData = protoimpl.X.CompressGZIP(file_conf_v1_kratos_conf_authz_proto_rawDescData)
|
file_conf_v1_kratos_conf_authz_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_conf_v1_kratos_conf_authz_proto_rawDesc), len(file_conf_v1_kratos_conf_authz_proto_rawDesc)))
|
||||||
})
|
})
|
||||||
return file_conf_v1_kratos_conf_authz_proto_rawDescData
|
return file_conf_v1_kratos_conf_authz_proto_rawDescData
|
||||||
}
|
}
|
||||||
@@ -111,7 +112,7 @@ func file_conf_v1_kratos_conf_authz_proto_init() {
|
|||||||
out := protoimpl.TypeBuilder{
|
out := protoimpl.TypeBuilder{
|
||||||
File: protoimpl.DescBuilder{
|
File: protoimpl.DescBuilder{
|
||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_conf_v1_kratos_conf_authz_proto_rawDesc,
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_conf_v1_kratos_conf_authz_proto_rawDesc), len(file_conf_v1_kratos_conf_authz_proto_rawDesc)),
|
||||||
NumEnums: 0,
|
NumEnums: 0,
|
||||||
NumMessages: 1,
|
NumMessages: 1,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
@@ -122,7 +123,6 @@ func file_conf_v1_kratos_conf_authz_proto_init() {
|
|||||||
MessageInfos: file_conf_v1_kratos_conf_authz_proto_msgTypes,
|
MessageInfos: file_conf_v1_kratos_conf_authz_proto_msgTypes,
|
||||||
}.Build()
|
}.Build()
|
||||||
File_conf_v1_kratos_conf_authz_proto = out.File
|
File_conf_v1_kratos_conf_authz_proto = out.File
|
||||||
file_conf_v1_kratos_conf_authz_proto_rawDesc = nil
|
|
||||||
file_conf_v1_kratos_conf_authz_proto_goTypes = nil
|
file_conf_v1_kratos_conf_authz_proto_goTypes = nil
|
||||||
file_conf_v1_kratos_conf_authz_proto_depIdxs = nil
|
file_conf_v1_kratos_conf_authz_proto_depIdxs = nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.35.2
|
// protoc-gen-go v1.36.5
|
||||||
// protoc (unknown)
|
// protoc (unknown)
|
||||||
// source: conf/v1/kratos_conf_bootstrap.proto
|
// source: conf/v1/kratos_conf_bootstrap.proto
|
||||||
|
|
||||||
@@ -11,6 +11,7 @@ import (
|
|||||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||||
reflect "reflect"
|
reflect "reflect"
|
||||||
sync "sync"
|
sync "sync"
|
||||||
|
unsafe "unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -22,21 +23,20 @@ const (
|
|||||||
|
|
||||||
// 引导信息
|
// 引导信息
|
||||||
type Bootstrap struct {
|
type Bootstrap struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Server *Server `protobuf:"bytes,1,opt,name=server,proto3,oneof" json:"server,omitempty"`
|
||||||
|
Client *Client `protobuf:"bytes,2,opt,name=client,proto3,oneof" json:"client,omitempty"`
|
||||||
|
Data *Data `protobuf:"bytes,3,opt,name=data,proto3,oneof" json:"data,omitempty"`
|
||||||
|
Trace *Tracer `protobuf:"bytes,4,opt,name=trace,proto3,oneof" json:"trace,omitempty"`
|
||||||
|
Logger *Logger `protobuf:"bytes,5,opt,name=logger,proto3,oneof" json:"logger,omitempty"`
|
||||||
|
Registry *Registry `protobuf:"bytes,6,opt,name=registry,proto3,oneof" json:"registry,omitempty"`
|
||||||
|
Config *RemoteConfig `protobuf:"bytes,7,opt,name=config,proto3,oneof" json:"config,omitempty"`
|
||||||
|
Oss *OSS `protobuf:"bytes,8,opt,name=oss,proto3,oneof" json:"oss,omitempty"`
|
||||||
|
Notify *Notification `protobuf:"bytes,9,opt,name=notify,proto3,oneof" json:"notify,omitempty"`
|
||||||
|
Authn *Authentication `protobuf:"bytes,10,opt,name=authn,proto3,oneof" json:"authn,omitempty"`
|
||||||
|
Authz *Authorization `protobuf:"bytes,11,opt,name=authz,proto3,oneof" json:"authz,omitempty"`
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
Server *Server `protobuf:"bytes,1,opt,name=server,proto3,oneof" json:"server,omitempty"`
|
|
||||||
Client *Client `protobuf:"bytes,2,opt,name=client,proto3,oneof" json:"client,omitempty"`
|
|
||||||
Data *Data `protobuf:"bytes,3,opt,name=data,proto3,oneof" json:"data,omitempty"`
|
|
||||||
Trace *Tracer `protobuf:"bytes,4,opt,name=trace,proto3,oneof" json:"trace,omitempty"`
|
|
||||||
Logger *Logger `protobuf:"bytes,5,opt,name=logger,proto3,oneof" json:"logger,omitempty"`
|
|
||||||
Registry *Registry `protobuf:"bytes,6,opt,name=registry,proto3,oneof" json:"registry,omitempty"`
|
|
||||||
Config *RemoteConfig `protobuf:"bytes,7,opt,name=config,proto3,oneof" json:"config,omitempty"`
|
|
||||||
Oss *OSS `protobuf:"bytes,8,opt,name=oss,proto3,oneof" json:"oss,omitempty"`
|
|
||||||
Notify *Notification `protobuf:"bytes,9,opt,name=notify,proto3,oneof" json:"notify,omitempty"`
|
|
||||||
Authn *Authentication `protobuf:"bytes,10,opt,name=authn,proto3,oneof" json:"authn,omitempty"`
|
|
||||||
Authz *Authorization `protobuf:"bytes,11,opt,name=authz,proto3,oneof" json:"authz,omitempty"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Bootstrap) Reset() {
|
func (x *Bootstrap) Reset() {
|
||||||
@@ -148,7 +148,7 @@ func (x *Bootstrap) GetAuthz() *Authorization {
|
|||||||
|
|
||||||
var File_conf_v1_kratos_conf_bootstrap_proto protoreflect.FileDescriptor
|
var File_conf_v1_kratos_conf_bootstrap_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
var file_conf_v1_kratos_conf_bootstrap_proto_rawDesc = []byte{
|
var file_conf_v1_kratos_conf_bootstrap_proto_rawDesc = string([]byte{
|
||||||
0x0a, 0x23, 0x63, 0x6f, 0x6e, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73,
|
0x0a, 0x23, 0x63, 0x6f, 0x6e, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73,
|
||||||
0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x5f, 0x62, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x2e,
|
0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x5f, 0x62, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x2e,
|
||||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x63, 0x6f, 0x6e, 0x66, 0x1a, 0x20, 0x63, 0x6f, 0x6e,
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x63, 0x6f, 0x6e, 0x66, 0x1a, 0x20, 0x63, 0x6f, 0x6e,
|
||||||
@@ -223,16 +223,16 @@ var file_conf_v1_kratos_conf_bootstrap_proto_rawDesc = []byte{
|
|||||||
0x04, 0x43, 0x6f, 0x6e, 0x66, 0xe2, 0x02, 0x10, 0x43, 0x6f, 0x6e, 0x66, 0x5c, 0x47, 0x50, 0x42,
|
0x04, 0x43, 0x6f, 0x6e, 0x66, 0xe2, 0x02, 0x10, 0x43, 0x6f, 0x6e, 0x66, 0x5c, 0x47, 0x50, 0x42,
|
||||||
0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x04, 0x43, 0x6f, 0x6e, 0x66, 0x62,
|
0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x04, 0x43, 0x6f, 0x6e, 0x66, 0x62,
|
||||||
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
}
|
})
|
||||||
|
|
||||||
var (
|
var (
|
||||||
file_conf_v1_kratos_conf_bootstrap_proto_rawDescOnce sync.Once
|
file_conf_v1_kratos_conf_bootstrap_proto_rawDescOnce sync.Once
|
||||||
file_conf_v1_kratos_conf_bootstrap_proto_rawDescData = file_conf_v1_kratos_conf_bootstrap_proto_rawDesc
|
file_conf_v1_kratos_conf_bootstrap_proto_rawDescData []byte
|
||||||
)
|
)
|
||||||
|
|
||||||
func file_conf_v1_kratos_conf_bootstrap_proto_rawDescGZIP() []byte {
|
func file_conf_v1_kratos_conf_bootstrap_proto_rawDescGZIP() []byte {
|
||||||
file_conf_v1_kratos_conf_bootstrap_proto_rawDescOnce.Do(func() {
|
file_conf_v1_kratos_conf_bootstrap_proto_rawDescOnce.Do(func() {
|
||||||
file_conf_v1_kratos_conf_bootstrap_proto_rawDescData = protoimpl.X.CompressGZIP(file_conf_v1_kratos_conf_bootstrap_proto_rawDescData)
|
file_conf_v1_kratos_conf_bootstrap_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_conf_v1_kratos_conf_bootstrap_proto_rawDesc), len(file_conf_v1_kratos_conf_bootstrap_proto_rawDesc)))
|
||||||
})
|
})
|
||||||
return file_conf_v1_kratos_conf_bootstrap_proto_rawDescData
|
return file_conf_v1_kratos_conf_bootstrap_proto_rawDescData
|
||||||
}
|
}
|
||||||
@@ -292,7 +292,7 @@ func file_conf_v1_kratos_conf_bootstrap_proto_init() {
|
|||||||
out := protoimpl.TypeBuilder{
|
out := protoimpl.TypeBuilder{
|
||||||
File: protoimpl.DescBuilder{
|
File: protoimpl.DescBuilder{
|
||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_conf_v1_kratos_conf_bootstrap_proto_rawDesc,
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_conf_v1_kratos_conf_bootstrap_proto_rawDesc), len(file_conf_v1_kratos_conf_bootstrap_proto_rawDesc)),
|
||||||
NumEnums: 0,
|
NumEnums: 0,
|
||||||
NumMessages: 1,
|
NumMessages: 1,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
@@ -303,7 +303,6 @@ func file_conf_v1_kratos_conf_bootstrap_proto_init() {
|
|||||||
MessageInfos: file_conf_v1_kratos_conf_bootstrap_proto_msgTypes,
|
MessageInfos: file_conf_v1_kratos_conf_bootstrap_proto_msgTypes,
|
||||||
}.Build()
|
}.Build()
|
||||||
File_conf_v1_kratos_conf_bootstrap_proto = out.File
|
File_conf_v1_kratos_conf_bootstrap_proto = out.File
|
||||||
file_conf_v1_kratos_conf_bootstrap_proto_rawDesc = nil
|
|
||||||
file_conf_v1_kratos_conf_bootstrap_proto_goTypes = nil
|
file_conf_v1_kratos_conf_bootstrap_proto_goTypes = nil
|
||||||
file_conf_v1_kratos_conf_bootstrap_proto_depIdxs = nil
|
file_conf_v1_kratos_conf_bootstrap_proto_depIdxs = nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.35.2
|
// protoc-gen-go v1.36.5
|
||||||
// protoc (unknown)
|
// protoc (unknown)
|
||||||
// source: conf/v1/kratos_conf_client.proto
|
// source: conf/v1/kratos_conf_client.proto
|
||||||
|
|
||||||
@@ -12,6 +12,7 @@ import (
|
|||||||
durationpb "google.golang.org/protobuf/types/known/durationpb"
|
durationpb "google.golang.org/protobuf/types/known/durationpb"
|
||||||
reflect "reflect"
|
reflect "reflect"
|
||||||
sync "sync"
|
sync "sync"
|
||||||
|
unsafe "unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -23,12 +24,11 @@ const (
|
|||||||
|
|
||||||
// 客户端
|
// 客户端
|
||||||
type Client struct {
|
type Client struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Rest *Client_REST `protobuf:"bytes,1,opt,name=rest,proto3,oneof" json:"rest,omitempty"` // REST服务
|
||||||
|
Grpc *Client_GRPC `protobuf:"bytes,2,opt,name=grpc,proto3,oneof" json:"grpc,omitempty"` // gRPC服务
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
Rest *Client_REST `protobuf:"bytes,1,opt,name=rest,proto3,oneof" json:"rest,omitempty"` // REST服务
|
|
||||||
Grpc *Client_GRPC `protobuf:"bytes,2,opt,name=grpc,proto3,oneof" json:"grpc,omitempty"` // gRPC服务
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Client) Reset() {
|
func (x *Client) Reset() {
|
||||||
@@ -77,13 +77,12 @@ func (x *Client) GetGrpc() *Client_GRPC {
|
|||||||
|
|
||||||
// REST
|
// REST
|
||||||
type Client_REST struct {
|
type Client_REST struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Timeout *durationpb.Duration `protobuf:"bytes,1,opt,name=timeout,proto3" json:"timeout,omitempty"` // 超时时间
|
||||||
|
Middleware *Middleware `protobuf:"bytes,2,opt,name=middleware,proto3" json:"middleware,omitempty"` // 中间件
|
||||||
|
Tls *TLS `protobuf:"bytes,3,opt,name=tls,proto3" json:"tls,omitempty"` // TLS配置
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
Timeout *durationpb.Duration `protobuf:"bytes,1,opt,name=timeout,proto3" json:"timeout,omitempty"` // 超时时间
|
|
||||||
Middleware *Middleware `protobuf:"bytes,2,opt,name=middleware,proto3" json:"middleware,omitempty"` // 中间件
|
|
||||||
Tls *TLS `protobuf:"bytes,3,opt,name=tls,proto3" json:"tls,omitempty"` // TLS配置
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Client_REST) Reset() {
|
func (x *Client_REST) Reset() {
|
||||||
@@ -139,13 +138,12 @@ func (x *Client_REST) GetTls() *TLS {
|
|||||||
|
|
||||||
// gPRC
|
// gPRC
|
||||||
type Client_GRPC struct {
|
type Client_GRPC struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Timeout *durationpb.Duration `protobuf:"bytes,1,opt,name=timeout,proto3" json:"timeout,omitempty"` // 超时时间
|
||||||
|
Middleware *Middleware `protobuf:"bytes,2,opt,name=middleware,proto3" json:"middleware,omitempty"` // 中间件
|
||||||
|
Tls *TLS `protobuf:"bytes,3,opt,name=tls,proto3" json:"tls,omitempty"` // TLS配置
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
Timeout *durationpb.Duration `protobuf:"bytes,1,opt,name=timeout,proto3" json:"timeout,omitempty"` // 超时时间
|
|
||||||
Middleware *Middleware `protobuf:"bytes,2,opt,name=middleware,proto3" json:"middleware,omitempty"` // 中间件
|
|
||||||
Tls *TLS `protobuf:"bytes,3,opt,name=tls,proto3" json:"tls,omitempty"` // TLS配置
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Client_GRPC) Reset() {
|
func (x *Client_GRPC) Reset() {
|
||||||
@@ -201,7 +199,7 @@ func (x *Client_GRPC) GetTls() *TLS {
|
|||||||
|
|
||||||
var File_conf_v1_kratos_conf_client_proto protoreflect.FileDescriptor
|
var File_conf_v1_kratos_conf_client_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
var file_conf_v1_kratos_conf_client_proto_rawDesc = []byte{
|
var file_conf_v1_kratos_conf_client_proto_rawDesc = string([]byte{
|
||||||
0x0a, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73,
|
0x0a, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73,
|
||||||
0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f,
|
0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f,
|
||||||
0x74, 0x6f, 0x12, 0x04, 0x63, 0x6f, 0x6e, 0x66, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
|
0x74, 0x6f, 0x12, 0x04, 0x63, 0x6f, 0x6e, 0x66, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
|
||||||
@@ -245,16 +243,16 @@ var file_conf_v1_kratos_conf_client_proto_rawDesc = []byte{
|
|||||||
0x04, 0x43, 0x6f, 0x6e, 0x66, 0xca, 0x02, 0x04, 0x43, 0x6f, 0x6e, 0x66, 0xe2, 0x02, 0x10, 0x43,
|
0x04, 0x43, 0x6f, 0x6e, 0x66, 0xca, 0x02, 0x04, 0x43, 0x6f, 0x6e, 0x66, 0xe2, 0x02, 0x10, 0x43,
|
||||||
0x6f, 0x6e, 0x66, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea,
|
0x6f, 0x6e, 0x66, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea,
|
||||||
0x02, 0x04, 0x43, 0x6f, 0x6e, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
0x02, 0x04, 0x43, 0x6f, 0x6e, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
}
|
})
|
||||||
|
|
||||||
var (
|
var (
|
||||||
file_conf_v1_kratos_conf_client_proto_rawDescOnce sync.Once
|
file_conf_v1_kratos_conf_client_proto_rawDescOnce sync.Once
|
||||||
file_conf_v1_kratos_conf_client_proto_rawDescData = file_conf_v1_kratos_conf_client_proto_rawDesc
|
file_conf_v1_kratos_conf_client_proto_rawDescData []byte
|
||||||
)
|
)
|
||||||
|
|
||||||
func file_conf_v1_kratos_conf_client_proto_rawDescGZIP() []byte {
|
func file_conf_v1_kratos_conf_client_proto_rawDescGZIP() []byte {
|
||||||
file_conf_v1_kratos_conf_client_proto_rawDescOnce.Do(func() {
|
file_conf_v1_kratos_conf_client_proto_rawDescOnce.Do(func() {
|
||||||
file_conf_v1_kratos_conf_client_proto_rawDescData = protoimpl.X.CompressGZIP(file_conf_v1_kratos_conf_client_proto_rawDescData)
|
file_conf_v1_kratos_conf_client_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_conf_v1_kratos_conf_client_proto_rawDesc), len(file_conf_v1_kratos_conf_client_proto_rawDesc)))
|
||||||
})
|
})
|
||||||
return file_conf_v1_kratos_conf_client_proto_rawDescData
|
return file_conf_v1_kratos_conf_client_proto_rawDescData
|
||||||
}
|
}
|
||||||
@@ -296,7 +294,7 @@ func file_conf_v1_kratos_conf_client_proto_init() {
|
|||||||
out := protoimpl.TypeBuilder{
|
out := protoimpl.TypeBuilder{
|
||||||
File: protoimpl.DescBuilder{
|
File: protoimpl.DescBuilder{
|
||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_conf_v1_kratos_conf_client_proto_rawDesc,
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_conf_v1_kratos_conf_client_proto_rawDesc), len(file_conf_v1_kratos_conf_client_proto_rawDesc)),
|
||||||
NumEnums: 0,
|
NumEnums: 0,
|
||||||
NumMessages: 3,
|
NumMessages: 3,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
@@ -307,7 +305,6 @@ func file_conf_v1_kratos_conf_client_proto_init() {
|
|||||||
MessageInfos: file_conf_v1_kratos_conf_client_proto_msgTypes,
|
MessageInfos: file_conf_v1_kratos_conf_client_proto_msgTypes,
|
||||||
}.Build()
|
}.Build()
|
||||||
File_conf_v1_kratos_conf_client_proto = out.File
|
File_conf_v1_kratos_conf_client_proto = out.File
|
||||||
file_conf_v1_kratos_conf_client_proto_rawDesc = nil
|
|
||||||
file_conf_v1_kratos_conf_client_proto_goTypes = nil
|
file_conf_v1_kratos_conf_client_proto_goTypes = nil
|
||||||
file_conf_v1_kratos_conf_client_proto_depIdxs = nil
|
file_conf_v1_kratos_conf_client_proto_depIdxs = nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.35.2
|
// protoc-gen-go v1.36.5
|
||||||
// protoc (unknown)
|
// protoc (unknown)
|
||||||
// source: conf/v1/kratos_conf_config.proto
|
// source: conf/v1/kratos_conf_config.proto
|
||||||
|
|
||||||
@@ -12,6 +12,7 @@ import (
|
|||||||
durationpb "google.golang.org/protobuf/types/known/durationpb"
|
durationpb "google.golang.org/protobuf/types/known/durationpb"
|
||||||
reflect "reflect"
|
reflect "reflect"
|
||||||
sync "sync"
|
sync "sync"
|
||||||
|
unsafe "unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -23,17 +24,16 @@ const (
|
|||||||
|
|
||||||
// 配置服务
|
// 配置服务
|
||||||
type RemoteConfig struct {
|
type RemoteConfig struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // 配置类型
|
||||||
|
Etcd *RemoteConfig_Etcd `protobuf:"bytes,2,opt,name=etcd,proto3,oneof" json:"etcd,omitempty"`
|
||||||
|
Consul *RemoteConfig_Consul `protobuf:"bytes,3,opt,name=consul,proto3,oneof" json:"consul,omitempty"`
|
||||||
|
Nacos *RemoteConfig_Nacos `protobuf:"bytes,4,opt,name=nacos,proto3,oneof" json:"nacos,omitempty"`
|
||||||
|
Apollo *RemoteConfig_Apollo `protobuf:"bytes,6,opt,name=apollo,proto3,oneof" json:"apollo,omitempty"`
|
||||||
|
Kubernetes *RemoteConfig_Kubernetes `protobuf:"bytes,7,opt,name=kubernetes,proto3,oneof" json:"kubernetes,omitempty"`
|
||||||
|
Polaris *RemoteConfig_Polaris `protobuf:"bytes,8,opt,name=polaris,proto3,oneof" json:"polaris,omitempty"`
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // 配置类型
|
|
||||||
Etcd *RemoteConfig_Etcd `protobuf:"bytes,2,opt,name=etcd,proto3,oneof" json:"etcd,omitempty"`
|
|
||||||
Consul *RemoteConfig_Consul `protobuf:"bytes,3,opt,name=consul,proto3,oneof" json:"consul,omitempty"`
|
|
||||||
Nacos *RemoteConfig_Nacos `protobuf:"bytes,4,opt,name=nacos,proto3,oneof" json:"nacos,omitempty"`
|
|
||||||
Apollo *RemoteConfig_Apollo `protobuf:"bytes,6,opt,name=apollo,proto3,oneof" json:"apollo,omitempty"`
|
|
||||||
Kubernetes *RemoteConfig_Kubernetes `protobuf:"bytes,7,opt,name=kubernetes,proto3,oneof" json:"kubernetes,omitempty"`
|
|
||||||
Polaris *RemoteConfig_Polaris `protobuf:"bytes,8,opt,name=polaris,proto3,oneof" json:"polaris,omitempty"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *RemoteConfig) Reset() {
|
func (x *RemoteConfig) Reset() {
|
||||||
@@ -116,13 +116,12 @@ func (x *RemoteConfig) GetPolaris() *RemoteConfig_Polaris {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type RemoteConfig_Nacos struct {
|
type RemoteConfig_Nacos struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // 服务端地址
|
||||||
|
Port uint64 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` // 服务端端口
|
||||||
|
Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` // 配置键
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // 服务端地址
|
|
||||||
Port uint64 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` // 服务端端口
|
|
||||||
Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` // 配置键
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *RemoteConfig_Nacos) Reset() {
|
func (x *RemoteConfig_Nacos) Reset() {
|
||||||
@@ -177,13 +176,12 @@ func (x *RemoteConfig_Nacos) GetKey() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type RemoteConfig_Etcd struct {
|
type RemoteConfig_Etcd struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Endpoints []string `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"` // 服务端地址
|
||||||
|
Timeout *durationpb.Duration `protobuf:"bytes,2,opt,name=timeout,proto3" json:"timeout,omitempty"` // 超时时间
|
||||||
|
Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` // 配置键
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
Endpoints []string `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"` // 服务端地址
|
|
||||||
Timeout *durationpb.Duration `protobuf:"bytes,2,opt,name=timeout,proto3" json:"timeout,omitempty"` // 超时时间
|
|
||||||
Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` // 配置键
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *RemoteConfig_Etcd) Reset() {
|
func (x *RemoteConfig_Etcd) Reset() {
|
||||||
@@ -238,13 +236,12 @@ func (x *RemoteConfig_Etcd) GetKey() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type RemoteConfig_Consul struct {
|
type RemoteConfig_Consul struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Scheme string `protobuf:"bytes,1,opt,name=scheme,proto3" json:"scheme,omitempty"` // 网络样式
|
||||||
|
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` // 服务端地址
|
||||||
|
Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` // 配置键
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
Scheme string `protobuf:"bytes,1,opt,name=scheme,proto3" json:"scheme,omitempty"` // 网络样式
|
|
||||||
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` // 服务端地址
|
|
||||||
Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` // 配置键
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *RemoteConfig_Consul) Reset() {
|
func (x *RemoteConfig_Consul) Reset() {
|
||||||
@@ -299,15 +296,14 @@ func (x *RemoteConfig_Consul) GetKey() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type RemoteConfig_Apollo struct {
|
type RemoteConfig_Apollo struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // 服务端地址
|
||||||
|
AppId string `protobuf:"bytes,2,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"` // 应用ID
|
||||||
|
Cluster string `protobuf:"bytes,3,opt,name=cluster,proto3" json:"cluster,omitempty"` // 集群
|
||||||
|
Namespace string `protobuf:"bytes,4,opt,name=namespace,proto3" json:"namespace,omitempty"` // 命名空间
|
||||||
|
Secret string `protobuf:"bytes,5,opt,name=secret,proto3" json:"secret,omitempty"` // 密钥
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // 服务端地址
|
|
||||||
AppId string `protobuf:"bytes,2,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"` // 应用ID
|
|
||||||
Cluster string `protobuf:"bytes,3,opt,name=cluster,proto3" json:"cluster,omitempty"` // 集群
|
|
||||||
Namespace string `protobuf:"bytes,4,opt,name=namespace,proto3" json:"namespace,omitempty"` // 命名空间
|
|
||||||
Secret string `protobuf:"bytes,5,opt,name=secret,proto3" json:"secret,omitempty"` // 密钥
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *RemoteConfig_Apollo) Reset() {
|
func (x *RemoteConfig_Apollo) Reset() {
|
||||||
@@ -376,11 +372,10 @@ func (x *RemoteConfig_Apollo) GetSecret() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type RemoteConfig_Kubernetes struct {
|
type RemoteConfig_Kubernetes struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // 命名空间
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // 命名空间
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *RemoteConfig_Kubernetes) Reset() {
|
func (x *RemoteConfig_Kubernetes) Reset() {
|
||||||
@@ -421,9 +416,9 @@ func (x *RemoteConfig_Kubernetes) GetNamespace() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type RemoteConfig_Polaris struct {
|
type RemoteConfig_Polaris struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *RemoteConfig_Polaris) Reset() {
|
func (x *RemoteConfig_Polaris) Reset() {
|
||||||
@@ -458,7 +453,7 @@ func (*RemoteConfig_Polaris) Descriptor() ([]byte, []int) {
|
|||||||
|
|
||||||
var File_conf_v1_kratos_conf_config_proto protoreflect.FileDescriptor
|
var File_conf_v1_kratos_conf_config_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
var file_conf_v1_kratos_conf_config_proto_rawDesc = []byte{
|
var file_conf_v1_kratos_conf_config_proto_rawDesc = string([]byte{
|
||||||
0x0a, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73,
|
0x0a, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73,
|
||||||
0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f,
|
0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f,
|
||||||
0x74, 0x6f, 0x12, 0x04, 0x63, 0x6f, 0x6e, 0x66, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
|
0x74, 0x6f, 0x12, 0x04, 0x63, 0x6f, 0x6e, 0x66, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
|
||||||
@@ -530,16 +525,16 @@ var file_conf_v1_kratos_conf_config_proto_rawDesc = []byte{
|
|||||||
0xe2, 0x02, 0x10, 0x43, 0x6f, 0x6e, 0x66, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64,
|
0xe2, 0x02, 0x10, 0x43, 0x6f, 0x6e, 0x66, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64,
|
||||||
0x61, 0x74, 0x61, 0xea, 0x02, 0x04, 0x43, 0x6f, 0x6e, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
|
0x61, 0x74, 0x61, 0xea, 0x02, 0x04, 0x43, 0x6f, 0x6e, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
|
||||||
0x6f, 0x33,
|
0x6f, 0x33,
|
||||||
}
|
})
|
||||||
|
|
||||||
var (
|
var (
|
||||||
file_conf_v1_kratos_conf_config_proto_rawDescOnce sync.Once
|
file_conf_v1_kratos_conf_config_proto_rawDescOnce sync.Once
|
||||||
file_conf_v1_kratos_conf_config_proto_rawDescData = file_conf_v1_kratos_conf_config_proto_rawDesc
|
file_conf_v1_kratos_conf_config_proto_rawDescData []byte
|
||||||
)
|
)
|
||||||
|
|
||||||
func file_conf_v1_kratos_conf_config_proto_rawDescGZIP() []byte {
|
func file_conf_v1_kratos_conf_config_proto_rawDescGZIP() []byte {
|
||||||
file_conf_v1_kratos_conf_config_proto_rawDescOnce.Do(func() {
|
file_conf_v1_kratos_conf_config_proto_rawDescOnce.Do(func() {
|
||||||
file_conf_v1_kratos_conf_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_conf_v1_kratos_conf_config_proto_rawDescData)
|
file_conf_v1_kratos_conf_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_conf_v1_kratos_conf_config_proto_rawDesc), len(file_conf_v1_kratos_conf_config_proto_rawDesc)))
|
||||||
})
|
})
|
||||||
return file_conf_v1_kratos_conf_config_proto_rawDescData
|
return file_conf_v1_kratos_conf_config_proto_rawDescData
|
||||||
}
|
}
|
||||||
@@ -580,7 +575,7 @@ func file_conf_v1_kratos_conf_config_proto_init() {
|
|||||||
out := protoimpl.TypeBuilder{
|
out := protoimpl.TypeBuilder{
|
||||||
File: protoimpl.DescBuilder{
|
File: protoimpl.DescBuilder{
|
||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_conf_v1_kratos_conf_config_proto_rawDesc,
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_conf_v1_kratos_conf_config_proto_rawDesc), len(file_conf_v1_kratos_conf_config_proto_rawDesc)),
|
||||||
NumEnums: 0,
|
NumEnums: 0,
|
||||||
NumMessages: 7,
|
NumMessages: 7,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
@@ -591,7 +586,6 @@ func file_conf_v1_kratos_conf_config_proto_init() {
|
|||||||
MessageInfos: file_conf_v1_kratos_conf_config_proto_msgTypes,
|
MessageInfos: file_conf_v1_kratos_conf_config_proto_msgTypes,
|
||||||
}.Build()
|
}.Build()
|
||||||
File_conf_v1_kratos_conf_config_proto = out.File
|
File_conf_v1_kratos_conf_config_proto = out.File
|
||||||
file_conf_v1_kratos_conf_config_proto_rawDesc = nil
|
|
||||||
file_conf_v1_kratos_conf_config_proto_goTypes = nil
|
file_conf_v1_kratos_conf_config_proto_goTypes = nil
|
||||||
file_conf_v1_kratos_conf_config_proto_depIdxs = nil
|
file_conf_v1_kratos_conf_config_proto_depIdxs = nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.35.2
|
// protoc-gen-go v1.36.5
|
||||||
// protoc (unknown)
|
// protoc (unknown)
|
||||||
// source: conf/v1/kratos_conf_data.proto
|
// source: conf/v1/kratos_conf_data.proto
|
||||||
|
|
||||||
@@ -12,6 +12,7 @@ import (
|
|||||||
durationpb "google.golang.org/protobuf/types/known/durationpb"
|
durationpb "google.golang.org/protobuf/types/known/durationpb"
|
||||||
reflect "reflect"
|
reflect "reflect"
|
||||||
sync "sync"
|
sync "sync"
|
||||||
|
unsafe "unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -23,26 +24,25 @@ const (
|
|||||||
|
|
||||||
// 数据
|
// 数据
|
||||||
type Data struct {
|
type Data struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Database *Data_Database `protobuf:"bytes,1,opt,name=database,proto3,oneof" json:"database,omitempty"` // 数据库DSN
|
||||||
|
Redis *Data_Redis `protobuf:"bytes,10,opt,name=redis,proto3,oneof" json:"redis,omitempty"` // Redis
|
||||||
|
Mongodb *Data_MongoDB `protobuf:"bytes,11,opt,name=mongodb,proto3,oneof" json:"mongodb,omitempty"` // MongoDB数据库
|
||||||
|
ElasticSearch *Data_ElasticSearch `protobuf:"bytes,12,opt,name=elastic_search,json=elasticSearch,proto3,oneof" json:"elastic_search,omitempty"` // ElasticSearch数据库
|
||||||
|
Cassandra *Data_Cassandra `protobuf:"bytes,13,opt,name=cassandra,proto3,oneof" json:"cassandra,omitempty"` // Cassandra数据库
|
||||||
|
Clickhouse *Data_ClickHouse `protobuf:"bytes,20,opt,name=clickhouse,proto3,oneof" json:"clickhouse,omitempty"` // ClickHouse数据库
|
||||||
|
Influxdb *Data_InfluxDB `protobuf:"bytes,21,opt,name=influxdb,proto3,oneof" json:"influxdb,omitempty"` // InfluxDB数据库
|
||||||
|
Doris *Data_Doris `protobuf:"bytes,22,opt,name=doris,proto3,oneof" json:"doris,omitempty"` // Doris数据库
|
||||||
|
Kafka *Data_Kafka `protobuf:"bytes,30,opt,name=kafka,proto3,oneof" json:"kafka,omitempty"` // Kafka服务
|
||||||
|
Rabbitmq *Data_RabbitMQ `protobuf:"bytes,31,opt,name=rabbitmq,proto3,oneof" json:"rabbitmq,omitempty"` // RabbitMQ服务
|
||||||
|
Mqtt *Data_Mqtt `protobuf:"bytes,32,opt,name=mqtt,proto3,oneof" json:"mqtt,omitempty"` // MQTT服务
|
||||||
|
Activemq *Data_ActiveMQ `protobuf:"bytes,33,opt,name=activemq,proto3,oneof" json:"activemq,omitempty"` // ActiveMQ
|
||||||
|
Nats *Data_NATS `protobuf:"bytes,34,opt,name=nats,proto3,oneof" json:"nats,omitempty"` // NATS
|
||||||
|
Nsq *Data_NSQ `protobuf:"bytes,35,opt,name=nsq,proto3,oneof" json:"nsq,omitempty"` // NATS
|
||||||
|
Pulsar *Data_Pulsar `protobuf:"bytes,36,opt,name=pulsar,proto3,oneof" json:"pulsar,omitempty"` // Pulsar
|
||||||
|
Rocketmq *Data_RocketMQ `protobuf:"bytes,38,opt,name=rocketmq,proto3,oneof" json:"rocketmq,omitempty"` // RocketMQ
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
Database *Data_Database `protobuf:"bytes,1,opt,name=database,proto3,oneof" json:"database,omitempty"` // 数据库DSN
|
|
||||||
Redis *Data_Redis `protobuf:"bytes,10,opt,name=redis,proto3,oneof" json:"redis,omitempty"` // Redis
|
|
||||||
Mongodb *Data_MongoDB `protobuf:"bytes,11,opt,name=mongodb,proto3,oneof" json:"mongodb,omitempty"` // MongoDB数据库
|
|
||||||
ElasticSearch *Data_ElasticSearch `protobuf:"bytes,12,opt,name=elastic_search,json=elasticSearch,proto3,oneof" json:"elastic_search,omitempty"` // ElasticSearch数据库
|
|
||||||
Cassandra *Data_Cassandra `protobuf:"bytes,13,opt,name=cassandra,proto3,oneof" json:"cassandra,omitempty"` // Cassandra数据库
|
|
||||||
Clickhouse *Data_ClickHouse `protobuf:"bytes,20,opt,name=clickhouse,proto3,oneof" json:"clickhouse,omitempty"` // ClickHouse数据库
|
|
||||||
Influxdb *Data_InfluxDB `protobuf:"bytes,21,opt,name=influxdb,proto3,oneof" json:"influxdb,omitempty"` // InfluxDB数据库
|
|
||||||
Doris *Data_Doris `protobuf:"bytes,22,opt,name=doris,proto3,oneof" json:"doris,omitempty"` // Doris数据库
|
|
||||||
Kafka *Data_Kafka `protobuf:"bytes,30,opt,name=kafka,proto3,oneof" json:"kafka,omitempty"` // Kafka服务
|
|
||||||
Rabbitmq *Data_RabbitMQ `protobuf:"bytes,31,opt,name=rabbitmq,proto3,oneof" json:"rabbitmq,omitempty"` // RabbitMQ服务
|
|
||||||
Mqtt *Data_Mqtt `protobuf:"bytes,32,opt,name=mqtt,proto3,oneof" json:"mqtt,omitempty"` // MQTT服务
|
|
||||||
Activemq *Data_ActiveMQ `protobuf:"bytes,33,opt,name=activemq,proto3,oneof" json:"activemq,omitempty"` // ActiveMQ
|
|
||||||
Nats *Data_NATS `protobuf:"bytes,34,opt,name=nats,proto3,oneof" json:"nats,omitempty"` // NATS
|
|
||||||
Nsq *Data_NSQ `protobuf:"bytes,35,opt,name=nsq,proto3,oneof" json:"nsq,omitempty"` // NATS
|
|
||||||
Pulsar *Data_Pulsar `protobuf:"bytes,36,opt,name=pulsar,proto3,oneof" json:"pulsar,omitempty"` // Pulsar
|
|
||||||
Rocketmq *Data_RocketMQ `protobuf:"bytes,38,opt,name=rocketmq,proto3,oneof" json:"rocketmq,omitempty"` // RocketMQ
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Data) Reset() {
|
func (x *Data) Reset() {
|
||||||
@@ -189,22 +189,21 @@ func (x *Data) GetRocketmq() *Data_RocketMQ {
|
|||||||
|
|
||||||
// 数据库
|
// 数据库
|
||||||
type Data_Database struct {
|
type Data_Database struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Driver string `protobuf:"bytes,1,opt,name=driver,proto3" json:"driver,omitempty"` // 驱动名:mysql、postgresql、mongodb、sqlite……
|
||||||
unknownFields protoimpl.UnknownFields
|
Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` // 数据源(DSN字符串)
|
||||||
|
Migrate bool `protobuf:"varint,10,opt,name=migrate,proto3" json:"migrate,omitempty"` // 数据迁移开关
|
||||||
Driver string `protobuf:"bytes,1,opt,name=driver,proto3" json:"driver,omitempty"` // 驱动名:mysql、postgresql、mongodb、sqlite……
|
Debug bool `protobuf:"varint,11,opt,name=debug,proto3" json:"debug,omitempty"` // 调试开关
|
||||||
Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` // 数据源(DSN字符串)
|
EnableTrace bool `protobuf:"varint,12,opt,name=enable_trace,json=enableTrace,proto3" json:"enable_trace,omitempty"` // 链路追踪开关
|
||||||
Migrate bool `protobuf:"varint,10,opt,name=migrate,proto3" json:"migrate,omitempty"` // 数据迁移开关
|
EnableMetrics bool `protobuf:"varint,13,opt,name=enable_metrics,json=enableMetrics,proto3" json:"enable_metrics,omitempty"` // 性能分析开关
|
||||||
Debug bool `protobuf:"varint,11,opt,name=debug,proto3" json:"debug,omitempty"` // 调试开关
|
MaxIdleConnections *int32 `protobuf:"varint,20,opt,name=max_idle_connections,json=maxIdleConnections,proto3,oneof" json:"max_idle_connections,omitempty"` // 连接池最大空闲连接数
|
||||||
EnableTrace bool `protobuf:"varint,12,opt,name=enable_trace,json=enableTrace,proto3" json:"enable_trace,omitempty"` // 链路追踪开关
|
MaxOpenConnections *int32 `protobuf:"varint,21,opt,name=max_open_connections,json=maxOpenConnections,proto3,oneof" json:"max_open_connections,omitempty"` // 连接池最大打开连接数
|
||||||
EnableMetrics bool `protobuf:"varint,13,opt,name=enable_metrics,json=enableMetrics,proto3" json:"enable_metrics,omitempty"` // 性能分析开关
|
ConnectionMaxLifetime *durationpb.Duration `protobuf:"bytes,22,opt,name=connection_max_lifetime,json=connectionMaxLifetime,proto3,oneof" json:"connection_max_lifetime,omitempty"` // 连接可重用的最大时间长度
|
||||||
MaxIdleConnections *int32 `protobuf:"varint,20,opt,name=max_idle_connections,json=maxIdleConnections,proto3,oneof" json:"max_idle_connections,omitempty"` // 连接池最大空闲连接数
|
PrometheusPushAddr *string `protobuf:"bytes,30,opt,name=prometheus_push_addr,json=prometheusPushAddr,proto3,oneof" json:"prometheus_push_addr,omitempty"`
|
||||||
MaxOpenConnections *int32 `protobuf:"varint,21,opt,name=max_open_connections,json=maxOpenConnections,proto3,oneof" json:"max_open_connections,omitempty"` // 连接池最大打开连接数
|
PrometheusDbName *string `protobuf:"bytes,31,opt,name=prometheus_db_name,json=prometheusDbName,proto3,oneof" json:"prometheus_db_name,omitempty"`
|
||||||
ConnectionMaxLifetime *durationpb.Duration `protobuf:"bytes,22,opt,name=connection_max_lifetime,json=connectionMaxLifetime,proto3,oneof" json:"connection_max_lifetime,omitempty"` // 连接可重用的最大时间长度
|
PrometheusHttpPort *uint32 `protobuf:"varint,32,opt,name=prometheus_http_port,json=prometheusHttpPort,proto3,oneof" json:"prometheus_http_port,omitempty"`
|
||||||
PrometheusPushAddr *string `protobuf:"bytes,30,opt,name=prometheus_push_addr,json=prometheusPushAddr,proto3,oneof" json:"prometheus_push_addr,omitempty"`
|
unknownFields protoimpl.UnknownFields
|
||||||
PrometheusDbName *string `protobuf:"bytes,31,opt,name=prometheus_db_name,json=prometheusDbName,proto3,oneof" json:"prometheus_db_name,omitempty"`
|
sizeCache protoimpl.SizeCache
|
||||||
PrometheusHttpPort *uint32 `protobuf:"varint,32,opt,name=prometheus_http_port,json=prometheusHttpPort,proto3,oneof" json:"prometheus_http_port,omitempty"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Data_Database) Reset() {
|
func (x *Data_Database) Reset() {
|
||||||
@@ -323,19 +322,18 @@ func (x *Data_Database) GetPrometheusHttpPort() uint32 {
|
|||||||
|
|
||||||
// redis
|
// redis
|
||||||
type Data_Redis struct {
|
type Data_Redis struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"` // 网络
|
||||||
|
Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` // 服务端地址
|
||||||
|
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` // 密码
|
||||||
|
Db int32 `protobuf:"varint,4,opt,name=db,proto3" json:"db,omitempty"` // 数据库索引
|
||||||
|
DialTimeout *durationpb.Duration `protobuf:"bytes,5,opt,name=dial_timeout,json=dialTimeout,proto3" json:"dial_timeout,omitempty"` // 连接超时时间
|
||||||
|
ReadTimeout *durationpb.Duration `protobuf:"bytes,6,opt,name=read_timeout,json=readTimeout,proto3" json:"read_timeout,omitempty"` // 读取超时时间
|
||||||
|
WriteTimeout *durationpb.Duration `protobuf:"bytes,7,opt,name=write_timeout,json=writeTimeout,proto3" json:"write_timeout,omitempty"` // 写入超时时间
|
||||||
|
EnableTracing bool `protobuf:"varint,8,opt,name=enable_tracing,json=enableTracing,proto3" json:"enable_tracing,omitempty"` // 打开链路追踪
|
||||||
|
EnableMetrics bool `protobuf:"varint,9,opt,name=enable_metrics,json=enableMetrics,proto3" json:"enable_metrics,omitempty"` // 打开性能度量
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"` // 网络
|
|
||||||
Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` // 服务端地址
|
|
||||||
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` // 密码
|
|
||||||
Db int32 `protobuf:"varint,4,opt,name=db,proto3" json:"db,omitempty"` // 数据库索引
|
|
||||||
DialTimeout *durationpb.Duration `protobuf:"bytes,5,opt,name=dial_timeout,json=dialTimeout,proto3" json:"dial_timeout,omitempty"` // 连接超时时间
|
|
||||||
ReadTimeout *durationpb.Duration `protobuf:"bytes,6,opt,name=read_timeout,json=readTimeout,proto3" json:"read_timeout,omitempty"` // 读取超时时间
|
|
||||||
WriteTimeout *durationpb.Duration `protobuf:"bytes,7,opt,name=write_timeout,json=writeTimeout,proto3" json:"write_timeout,omitempty"` // 写入超时时间
|
|
||||||
EnableTracing bool `protobuf:"varint,8,opt,name=enable_tracing,json=enableTracing,proto3" json:"enable_tracing,omitempty"` // 打开链路追踪
|
|
||||||
EnableMetrics bool `protobuf:"varint,9,opt,name=enable_metrics,json=enableMetrics,proto3" json:"enable_metrics,omitempty"` // 打开性能度量
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Data_Redis) Reset() {
|
func (x *Data_Redis) Reset() {
|
||||||
@@ -433,13 +431,12 @@ func (x *Data_Redis) GetEnableMetrics() bool {
|
|||||||
|
|
||||||
// MongoDB
|
// MongoDB
|
||||||
type Data_MongoDB struct {
|
type Data_MongoDB struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
|
||||||
|
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
|
||||||
|
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
|
|
||||||
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
|
|
||||||
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Data_MongoDB) Reset() {
|
func (x *Data_MongoDB) Reset() {
|
||||||
@@ -495,29 +492,28 @@ func (x *Data_MongoDB) GetPassword() string {
|
|||||||
|
|
||||||
// ClickHouse
|
// ClickHouse
|
||||||
type Data_ClickHouse struct {
|
type Data_ClickHouse struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
|
||||||
unknownFields protoimpl.UnknownFields
|
Database string `protobuf:"bytes,2,opt,name=database,proto3" json:"database,omitempty"`
|
||||||
|
Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
|
||||||
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
|
Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
|
||||||
Database string `protobuf:"bytes,2,opt,name=database,proto3" json:"database,omitempty"`
|
Debug bool `protobuf:"varint,5,opt,name=debug,proto3" json:"debug,omitempty"`
|
||||||
Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
|
CompressionMethod string `protobuf:"bytes,6,opt,name=compression_method,json=compressionMethod,proto3" json:"compression_method,omitempty"`
|
||||||
Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
|
DialTimeout *durationpb.Duration `protobuf:"bytes,7,opt,name=dial_timeout,json=dialTimeout,proto3" json:"dial_timeout,omitempty"`
|
||||||
Debug bool `protobuf:"varint,5,opt,name=debug,proto3" json:"debug,omitempty"`
|
MaxExecutionTime int32 `protobuf:"varint,8,opt,name=max_execution_time,json=maxExecutionTime,proto3" json:"max_execution_time,omitempty"`
|
||||||
CompressionMethod string `protobuf:"bytes,6,opt,name=compression_method,json=compressionMethod,proto3" json:"compression_method,omitempty"`
|
MaxOpenConns int32 `protobuf:"varint,9,opt,name=max_open_conns,json=maxOpenConns,proto3" json:"max_open_conns,omitempty"`
|
||||||
DialTimeout *durationpb.Duration `protobuf:"bytes,7,opt,name=dial_timeout,json=dialTimeout,proto3" json:"dial_timeout,omitempty"`
|
MaxIdleConns int32 `protobuf:"varint,10,opt,name=max_idle_conns,json=maxIdleConns,proto3" json:"max_idle_conns,omitempty"`
|
||||||
MaxExecutionTime int32 `protobuf:"varint,8,opt,name=max_execution_time,json=maxExecutionTime,proto3" json:"max_execution_time,omitempty"`
|
ConnMaxLifeTime *durationpb.Duration `protobuf:"bytes,11,opt,name=conn_max_life_time,json=connMaxLifeTime,proto3" json:"conn_max_life_time,omitempty"`
|
||||||
MaxOpenConns int32 `protobuf:"varint,9,opt,name=max_open_conns,json=maxOpenConns,proto3" json:"max_open_conns,omitempty"`
|
BlockBufferSize int32 `protobuf:"varint,12,opt,name=block_buffer_size,json=blockBufferSize,proto3" json:"block_buffer_size,omitempty"`
|
||||||
MaxIdleConns int32 `protobuf:"varint,10,opt,name=max_idle_conns,json=maxIdleConns,proto3" json:"max_idle_conns,omitempty"`
|
MaxCompressionBuffer int32 `protobuf:"varint,13,opt,name=max_compression_buffer,json=maxCompressionBuffer,proto3" json:"max_compression_buffer,omitempty"`
|
||||||
ConnMaxLifeTime *durationpb.Duration `protobuf:"bytes,11,opt,name=conn_max_life_time,json=connMaxLifeTime,proto3" json:"conn_max_life_time,omitempty"`
|
ConnOpenStrategy string `protobuf:"bytes,14,opt,name=conn_open_strategy,json=connOpenStrategy,proto3" json:"conn_open_strategy,omitempty"`
|
||||||
BlockBufferSize int32 `protobuf:"varint,12,opt,name=block_buffer_size,json=blockBufferSize,proto3" json:"block_buffer_size,omitempty"`
|
MaxIdleConnections int32 `protobuf:"varint,15,opt,name=max_idle_connections,json=maxIdleConnections,proto3" json:"max_idle_connections,omitempty"` // 连接池最大空闲连接数
|
||||||
MaxCompressionBuffer int32 `protobuf:"varint,13,opt,name=max_compression_buffer,json=maxCompressionBuffer,proto3" json:"max_compression_buffer,omitempty"`
|
MaxOpenConnections int32 `protobuf:"varint,16,opt,name=max_open_connections,json=maxOpenConnections,proto3" json:"max_open_connections,omitempty"` // 连接池最大打开连接数
|
||||||
ConnOpenStrategy string `protobuf:"bytes,14,opt,name=conn_open_strategy,json=connOpenStrategy,proto3" json:"conn_open_strategy,omitempty"`
|
ConnectionMaxLifetime *durationpb.Duration `protobuf:"bytes,17,opt,name=connection_max_lifetime,json=connectionMaxLifetime,proto3" json:"connection_max_lifetime,omitempty"` // 连接可重用的最大时间长度
|
||||||
MaxIdleConnections int32 `protobuf:"varint,15,opt,name=max_idle_connections,json=maxIdleConnections,proto3" json:"max_idle_connections,omitempty"` // 连接池最大空闲连接数
|
Protocol string `protobuf:"bytes,18,opt,name=protocol,proto3" json:"protocol,omitempty"`
|
||||||
MaxOpenConnections int32 `protobuf:"varint,16,opt,name=max_open_connections,json=maxOpenConnections,proto3" json:"max_open_connections,omitempty"` // 连接池最大打开连接数
|
Tls *TLS `protobuf:"bytes,19,opt,name=tls,proto3" json:"tls,omitempty"` // TLS配置
|
||||||
ConnectionMaxLifetime *durationpb.Duration `protobuf:"bytes,17,opt,name=connection_max_lifetime,json=connectionMaxLifetime,proto3" json:"connection_max_lifetime,omitempty"` // 连接可重用的最大时间长度
|
unknownFields protoimpl.UnknownFields
|
||||||
Protocol string `protobuf:"bytes,18,opt,name=protocol,proto3" json:"protocol,omitempty"`
|
sizeCache protoimpl.SizeCache
|
||||||
Tls *TLS `protobuf:"bytes,19,opt,name=tls,proto3" json:"tls,omitempty"` // TLS配置
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Data_ClickHouse) Reset() {
|
func (x *Data_ClickHouse) Reset() {
|
||||||
@@ -685,14 +681,13 @@ func (x *Data_ClickHouse) GetTls() *TLS {
|
|||||||
|
|
||||||
// InfluxDB
|
// InfluxDB
|
||||||
type Data_InfluxDB struct {
|
type Data_InfluxDB struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
|
||||||
|
Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
|
||||||
|
Organization string `protobuf:"bytes,3,opt,name=organization,proto3" json:"organization,omitempty"`
|
||||||
|
Bucket string `protobuf:"bytes,4,opt,name=bucket,proto3" json:"bucket,omitempty"`
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
|
|
||||||
Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
|
|
||||||
Organization string `protobuf:"bytes,3,opt,name=organization,proto3" json:"organization,omitempty"`
|
|
||||||
Bucket string `protobuf:"bytes,4,opt,name=bucket,proto3" json:"bucket,omitempty"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Data_InfluxDB) Reset() {
|
func (x *Data_InfluxDB) Reset() {
|
||||||
@@ -754,11 +749,10 @@ func (x *Data_InfluxDB) GetBucket() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Data_Doris struct {
|
type Data_Doris struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Data_Doris) Reset() {
|
func (x *Data_Doris) Reset() {
|
||||||
@@ -799,16 +793,15 @@ func (x *Data_Doris) GetAddress() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Data_ElasticSearch struct {
|
type Data_ElasticSearch struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
|
||||||
unknownFields protoimpl.UnknownFields
|
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
|
||||||
|
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
|
||||||
Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
|
EnableSniffer bool `protobuf:"varint,4,opt,name=enable_sniffer,json=enableSniffer,proto3" json:"enable_sniffer,omitempty"`
|
||||||
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
|
EnableGzip bool `protobuf:"varint,5,opt,name=enable_gzip,json=enableGzip,proto3" json:"enable_gzip,omitempty"`
|
||||||
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
|
HealthCheckInterval *durationpb.Duration `protobuf:"bytes,6,opt,name=health_check_interval,json=healthCheckInterval,proto3" json:"health_check_interval,omitempty"`
|
||||||
EnableSniffer bool `protobuf:"varint,4,opt,name=enable_sniffer,json=enableSniffer,proto3" json:"enable_sniffer,omitempty"`
|
unknownFields protoimpl.UnknownFields
|
||||||
EnableGzip bool `protobuf:"varint,5,opt,name=enable_gzip,json=enableGzip,proto3" json:"enable_gzip,omitempty"`
|
sizeCache protoimpl.SizeCache
|
||||||
HealthCheckInterval *durationpb.Duration `protobuf:"bytes,6,opt,name=health_check_interval,json=healthCheckInterval,proto3" json:"health_check_interval,omitempty"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Data_ElasticSearch) Reset() {
|
func (x *Data_ElasticSearch) Reset() {
|
||||||
@@ -884,20 +877,19 @@ func (x *Data_ElasticSearch) GetHealthCheckInterval() *durationpb.Duration {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Data_Cassandra struct {
|
type Data_Cassandra struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
|
||||||
unknownFields protoimpl.UnknownFields
|
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
|
||||||
|
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
|
||||||
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
|
Keyspace string `protobuf:"bytes,5,opt,name=keyspace,proto3" json:"keyspace,omitempty"`
|
||||||
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
|
ConnectTimeout *durationpb.Duration `protobuf:"bytes,6,opt,name=connect_timeout,json=connectTimeout,proto3" json:"connect_timeout,omitempty"`
|
||||||
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
|
Timeout *durationpb.Duration `protobuf:"bytes,7,opt,name=timeout,proto3" json:"timeout,omitempty"`
|
||||||
Keyspace string `protobuf:"bytes,5,opt,name=keyspace,proto3" json:"keyspace,omitempty"`
|
Consistency uint32 `protobuf:"varint,8,opt,name=consistency,proto3" json:"consistency,omitempty"`
|
||||||
ConnectTimeout *durationpb.Duration `protobuf:"bytes,6,opt,name=connect_timeout,json=connectTimeout,proto3" json:"connect_timeout,omitempty"`
|
DisableInitialHostLookup bool `protobuf:"varint,9,opt,name=disable_initial_host_lookup,json=disableInitialHostLookup,proto3" json:"disable_initial_host_lookup,omitempty"`
|
||||||
Timeout *durationpb.Duration `protobuf:"bytes,7,opt,name=timeout,proto3" json:"timeout,omitempty"`
|
IgnorePeerAddr bool `protobuf:"varint,10,opt,name=ignore_peer_addr,json=ignorePeerAddr,proto3" json:"ignore_peer_addr,omitempty"`
|
||||||
Consistency uint32 `protobuf:"varint,8,opt,name=consistency,proto3" json:"consistency,omitempty"`
|
Tls *TLS `protobuf:"bytes,11,opt,name=tls,proto3" json:"tls,omitempty"` // TLS配置
|
||||||
DisableInitialHostLookup bool `protobuf:"varint,9,opt,name=disable_initial_host_lookup,json=disableInitialHostLookup,proto3" json:"disable_initial_host_lookup,omitempty"`
|
unknownFields protoimpl.UnknownFields
|
||||||
IgnorePeerAddr bool `protobuf:"varint,10,opt,name=ignore_peer_addr,json=ignorePeerAddr,proto3" json:"ignore_peer_addr,omitempty"`
|
sizeCache protoimpl.SizeCache
|
||||||
Tls *TLS `protobuf:"bytes,11,opt,name=tls,proto3" json:"tls,omitempty"` // TLS配置
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Data_Cassandra) Reset() {
|
func (x *Data_Cassandra) Reset() {
|
||||||
@@ -1001,9 +993,9 @@ func (x *Data_Cassandra) GetTls() *TLS {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Data_Snowflake struct {
|
type Data_Snowflake struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Data_Snowflake) Reset() {
|
func (x *Data_Snowflake) Reset() {
|
||||||
@@ -1038,19 +1030,18 @@ func (*Data_Snowflake) Descriptor() ([]byte, []int) {
|
|||||||
|
|
||||||
// Kafka
|
// Kafka
|
||||||
type Data_Kafka struct {
|
type Data_Kafka struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Endpoints []string `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"` // 对端网络地址
|
||||||
unknownFields protoimpl.UnknownFields
|
Codec string `protobuf:"bytes,2,opt,name=codec,proto3" json:"codec,omitempty"` // 编解码器
|
||||||
|
Async bool `protobuf:"varint,3,opt,name=async,proto3" json:"async,omitempty"` // 异步发送
|
||||||
Endpoints []string `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"` // 对端网络地址
|
AllowAutoTopicCreation bool `protobuf:"varint,4,opt,name=allow_auto_topic_creation,json=allowAutoTopicCreation,proto3" json:"allow_auto_topic_creation,omitempty"` // 允许发送的时候自动创建主题
|
||||||
Codec string `protobuf:"bytes,2,opt,name=codec,proto3" json:"codec,omitempty"` // 编解码器
|
BatchSize int32 `protobuf:"varint,5,opt,name=batch_size,json=batchSize,proto3" json:"batch_size,omitempty"` // 批量发送量
|
||||||
Async bool `protobuf:"varint,3,opt,name=async,proto3" json:"async,omitempty"` // 异步发送
|
BatchBytes int64 `protobuf:"varint,6,opt,name=batch_bytes,json=batchBytes,proto3" json:"batch_bytes,omitempty"` // 批量发送字节数
|
||||||
AllowAutoTopicCreation bool `protobuf:"varint,4,opt,name=allow_auto_topic_creation,json=allowAutoTopicCreation,proto3" json:"allow_auto_topic_creation,omitempty"` // 允许发送的时候自动创建主题
|
BatchTimeout *durationpb.Duration `protobuf:"bytes,7,opt,name=batch_timeout,json=batchTimeout,proto3" json:"batch_timeout,omitempty"` // 批量发送超时时间
|
||||||
BatchSize int32 `protobuf:"varint,5,opt,name=batch_size,json=batchSize,proto3" json:"batch_size,omitempty"` // 批量发送量
|
ReadTimeout *durationpb.Duration `protobuf:"bytes,8,opt,name=read_timeout,json=readTimeout,proto3" json:"read_timeout,omitempty"` // 读取超时时间
|
||||||
BatchBytes int64 `protobuf:"varint,6,opt,name=batch_bytes,json=batchBytes,proto3" json:"batch_bytes,omitempty"` // 批量发送字节数
|
WriteTimeout *durationpb.Duration `protobuf:"bytes,9,opt,name=write_timeout,json=writeTimeout,proto3" json:"write_timeout,omitempty"` // 发送超时时间
|
||||||
BatchTimeout *durationpb.Duration `protobuf:"bytes,7,opt,name=batch_timeout,json=batchTimeout,proto3" json:"batch_timeout,omitempty"` // 批量发送超时时间
|
unknownFields protoimpl.UnknownFields
|
||||||
ReadTimeout *durationpb.Duration `protobuf:"bytes,8,opt,name=read_timeout,json=readTimeout,proto3" json:"read_timeout,omitempty"` // 读取超时时间
|
sizeCache protoimpl.SizeCache
|
||||||
WriteTimeout *durationpb.Duration `protobuf:"bytes,9,opt,name=write_timeout,json=writeTimeout,proto3" json:"write_timeout,omitempty"` // 发送超时时间
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Data_Kafka) Reset() {
|
func (x *Data_Kafka) Reset() {
|
||||||
@@ -1148,11 +1139,10 @@ func (x *Data_Kafka) GetWriteTimeout() *durationpb.Duration {
|
|||||||
|
|
||||||
// RabbitMQ
|
// RabbitMQ
|
||||||
type Data_RabbitMQ struct {
|
type Data_RabbitMQ struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Endpoints []string `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"` // 对端网络地址
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
Endpoints []string `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"` // 对端网络地址
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Data_RabbitMQ) Reset() {
|
func (x *Data_RabbitMQ) Reset() {
|
||||||
@@ -1194,12 +1184,11 @@ func (x *Data_RabbitMQ) GetEndpoints() []string {
|
|||||||
|
|
||||||
// MQTT
|
// MQTT
|
||||||
type Data_Mqtt struct {
|
type Data_Mqtt struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // 对端网络地址
|
||||||
|
Codec string `protobuf:"bytes,2,opt,name=codec,proto3" json:"codec,omitempty"` // 编解码器: json,xml,yaml...
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // 对端网络地址
|
|
||||||
Codec string `protobuf:"bytes,2,opt,name=codec,proto3" json:"codec,omitempty"` // 编解码器: json,xml,yaml...
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Data_Mqtt) Reset() {
|
func (x *Data_Mqtt) Reset() {
|
||||||
@@ -1247,12 +1236,11 @@ func (x *Data_Mqtt) GetCodec() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Data_ActiveMQ struct {
|
type Data_ActiveMQ struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // 对端网络地址
|
||||||
|
Codec string `protobuf:"bytes,2,opt,name=codec,proto3" json:"codec,omitempty"` // 编解码器: json,xml,yaml...
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // 对端网络地址
|
|
||||||
Codec string `protobuf:"bytes,2,opt,name=codec,proto3" json:"codec,omitempty"` // 编解码器: json,xml,yaml...
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Data_ActiveMQ) Reset() {
|
func (x *Data_ActiveMQ) Reset() {
|
||||||
@@ -1300,12 +1288,11 @@ func (x *Data_ActiveMQ) GetCodec() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Data_NATS struct {
|
type Data_NATS struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // 对端网络地址
|
||||||
|
Codec string `protobuf:"bytes,2,opt,name=codec,proto3" json:"codec,omitempty"` // 编解码器: json,xml,yaml...
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // 对端网络地址
|
|
||||||
Codec string `protobuf:"bytes,2,opt,name=codec,proto3" json:"codec,omitempty"` // 编解码器: json,xml,yaml...
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Data_NATS) Reset() {
|
func (x *Data_NATS) Reset() {
|
||||||
@@ -1353,12 +1340,11 @@ func (x *Data_NATS) GetCodec() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Data_NSQ struct {
|
type Data_NSQ struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // 对端网络地址
|
||||||
|
Codec string `protobuf:"bytes,2,opt,name=codec,proto3" json:"codec,omitempty"` // 编解码器: json,xml,yaml...
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // 对端网络地址
|
|
||||||
Codec string `protobuf:"bytes,2,opt,name=codec,proto3" json:"codec,omitempty"` // 编解码器: json,xml,yaml...
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Data_NSQ) Reset() {
|
func (x *Data_NSQ) Reset() {
|
||||||
@@ -1406,12 +1392,11 @@ func (x *Data_NSQ) GetCodec() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Data_Pulsar struct {
|
type Data_Pulsar struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // 对端网络地址
|
||||||
|
Codec string `protobuf:"bytes,2,opt,name=codec,proto3" json:"codec,omitempty"` // 编解码器: json,xml,yaml...
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // 对端网络地址
|
|
||||||
Codec string `protobuf:"bytes,2,opt,name=codec,proto3" json:"codec,omitempty"` // 编解码器: json,xml,yaml...
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Data_Pulsar) Reset() {
|
func (x *Data_Pulsar) Reset() {
|
||||||
@@ -1459,21 +1444,20 @@ func (x *Data_Pulsar) GetCodec() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Data_RocketMQ struct {
|
type Data_RocketMQ struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // 驱动版本:aliyun、v2、v5
|
||||||
unknownFields protoimpl.UnknownFields
|
Codec string `protobuf:"bytes,2,opt,name=codec,proto3" json:"codec,omitempty"` // 编解码器: json,xml,yaml...
|
||||||
|
EnableTrace bool `protobuf:"varint,3,opt,name=enable_trace,json=enableTrace,proto3" json:"enable_trace,omitempty"`
|
||||||
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // 驱动版本:aliyun、v2、v5
|
NameServers []string `protobuf:"bytes,4,rep,name=name_servers,json=nameServers,proto3" json:"name_servers,omitempty"`
|
||||||
Codec string `protobuf:"bytes,2,opt,name=codec,proto3" json:"codec,omitempty"` // 编解码器: json,xml,yaml...
|
NameServerDomain string `protobuf:"bytes,5,opt,name=name_server_domain,json=nameServerDomain,proto3" json:"name_server_domain,omitempty"`
|
||||||
EnableTrace bool `protobuf:"varint,3,opt,name=enable_trace,json=enableTrace,proto3" json:"enable_trace,omitempty"`
|
AccessKey string `protobuf:"bytes,6,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"`
|
||||||
NameServers []string `protobuf:"bytes,4,rep,name=name_servers,json=nameServers,proto3" json:"name_servers,omitempty"`
|
SecretKey string `protobuf:"bytes,7,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"`
|
||||||
NameServerDomain string `protobuf:"bytes,5,opt,name=name_server_domain,json=nameServerDomain,proto3" json:"name_server_domain,omitempty"`
|
SecurityToken string `protobuf:"bytes,8,opt,name=security_token,json=securityToken,proto3" json:"security_token,omitempty"`
|
||||||
AccessKey string `protobuf:"bytes,6,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"`
|
Namespace string `protobuf:"bytes,9,opt,name=namespace,proto3" json:"namespace,omitempty"`
|
||||||
SecretKey string `protobuf:"bytes,7,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"`
|
InstanceName string `protobuf:"bytes,10,opt,name=instance_name,json=instanceName,proto3" json:"instance_name,omitempty"`
|
||||||
SecurityToken string `protobuf:"bytes,8,opt,name=security_token,json=securityToken,proto3" json:"security_token,omitempty"`
|
GroupName string `protobuf:"bytes,11,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"`
|
||||||
Namespace string `protobuf:"bytes,9,opt,name=namespace,proto3" json:"namespace,omitempty"`
|
unknownFields protoimpl.UnknownFields
|
||||||
InstanceName string `protobuf:"bytes,10,opt,name=instance_name,json=instanceName,proto3" json:"instance_name,omitempty"`
|
sizeCache protoimpl.SizeCache
|
||||||
GroupName string `protobuf:"bytes,11,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Data_RocketMQ) Reset() {
|
func (x *Data_RocketMQ) Reset() {
|
||||||
@@ -1585,7 +1569,7 @@ func (x *Data_RocketMQ) GetGroupName() string {
|
|||||||
|
|
||||||
var File_conf_v1_kratos_conf_data_proto protoreflect.FileDescriptor
|
var File_conf_v1_kratos_conf_data_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
var file_conf_v1_kratos_conf_data_proto_rawDesc = []byte{
|
var file_conf_v1_kratos_conf_data_proto_rawDesc = string([]byte{
|
||||||
0x0a, 0x1e, 0x63, 0x6f, 0x6e, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73,
|
0x0a, 0x1e, 0x63, 0x6f, 0x6e, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73,
|
||||||
0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||||
0x12, 0x04, 0x63, 0x6f, 0x6e, 0x66, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70,
|
0x12, 0x04, 0x63, 0x6f, 0x6e, 0x66, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70,
|
||||||
@@ -1911,16 +1895,16 @@ var file_conf_v1_kratos_conf_data_proto_rawDesc = []byte{
|
|||||||
0x02, 0x04, 0x43, 0x6f, 0x6e, 0x66, 0xe2, 0x02, 0x10, 0x43, 0x6f, 0x6e, 0x66, 0x5c, 0x47, 0x50,
|
0x02, 0x04, 0x43, 0x6f, 0x6e, 0x66, 0xe2, 0x02, 0x10, 0x43, 0x6f, 0x6e, 0x66, 0x5c, 0x47, 0x50,
|
||||||
0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x04, 0x43, 0x6f, 0x6e, 0x66,
|
0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x04, 0x43, 0x6f, 0x6e, 0x66,
|
||||||
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
}
|
})
|
||||||
|
|
||||||
var (
|
var (
|
||||||
file_conf_v1_kratos_conf_data_proto_rawDescOnce sync.Once
|
file_conf_v1_kratos_conf_data_proto_rawDescOnce sync.Once
|
||||||
file_conf_v1_kratos_conf_data_proto_rawDescData = file_conf_v1_kratos_conf_data_proto_rawDesc
|
file_conf_v1_kratos_conf_data_proto_rawDescData []byte
|
||||||
)
|
)
|
||||||
|
|
||||||
func file_conf_v1_kratos_conf_data_proto_rawDescGZIP() []byte {
|
func file_conf_v1_kratos_conf_data_proto_rawDescGZIP() []byte {
|
||||||
file_conf_v1_kratos_conf_data_proto_rawDescOnce.Do(func() {
|
file_conf_v1_kratos_conf_data_proto_rawDescOnce.Do(func() {
|
||||||
file_conf_v1_kratos_conf_data_proto_rawDescData = protoimpl.X.CompressGZIP(file_conf_v1_kratos_conf_data_proto_rawDescData)
|
file_conf_v1_kratos_conf_data_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_conf_v1_kratos_conf_data_proto_rawDesc), len(file_conf_v1_kratos_conf_data_proto_rawDesc)))
|
||||||
})
|
})
|
||||||
return file_conf_v1_kratos_conf_data_proto_rawDescData
|
return file_conf_v1_kratos_conf_data_proto_rawDescData
|
||||||
}
|
}
|
||||||
@@ -1999,7 +1983,7 @@ func file_conf_v1_kratos_conf_data_proto_init() {
|
|||||||
out := protoimpl.TypeBuilder{
|
out := protoimpl.TypeBuilder{
|
||||||
File: protoimpl.DescBuilder{
|
File: protoimpl.DescBuilder{
|
||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_conf_v1_kratos_conf_data_proto_rawDesc,
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_conf_v1_kratos_conf_data_proto_rawDesc), len(file_conf_v1_kratos_conf_data_proto_rawDesc)),
|
||||||
NumEnums: 0,
|
NumEnums: 0,
|
||||||
NumMessages: 18,
|
NumMessages: 18,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
@@ -2010,7 +1994,6 @@ func file_conf_v1_kratos_conf_data_proto_init() {
|
|||||||
MessageInfos: file_conf_v1_kratos_conf_data_proto_msgTypes,
|
MessageInfos: file_conf_v1_kratos_conf_data_proto_msgTypes,
|
||||||
}.Build()
|
}.Build()
|
||||||
File_conf_v1_kratos_conf_data_proto = out.File
|
File_conf_v1_kratos_conf_data_proto = out.File
|
||||||
file_conf_v1_kratos_conf_data_proto_rawDesc = nil
|
|
||||||
file_conf_v1_kratos_conf_data_proto_goTypes = nil
|
file_conf_v1_kratos_conf_data_proto_goTypes = nil
|
||||||
file_conf_v1_kratos_conf_data_proto_depIdxs = nil
|
file_conf_v1_kratos_conf_data_proto_depIdxs = nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.35.2
|
// protoc-gen-go v1.36.5
|
||||||
// protoc (unknown)
|
// protoc (unknown)
|
||||||
// source: conf/v1/kratos_conf_logger.proto
|
// source: conf/v1/kratos_conf_logger.proto
|
||||||
|
|
||||||
@@ -11,6 +11,7 @@ import (
|
|||||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||||
reflect "reflect"
|
reflect "reflect"
|
||||||
sync "sync"
|
sync "sync"
|
||||||
|
unsafe "unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -22,16 +23,15 @@ const (
|
|||||||
|
|
||||||
// 日志
|
// 日志
|
||||||
type Logger struct {
|
type Logger struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
|
||||||
|
Zap *Logger_Zap `protobuf:"bytes,2,opt,name=zap,proto3,oneof" json:"zap,omitempty"`
|
||||||
|
Logrus *Logger_Logrus `protobuf:"bytes,3,opt,name=logrus,proto3,oneof" json:"logrus,omitempty"`
|
||||||
|
Fluent *Logger_Fluent `protobuf:"bytes,4,opt,name=fluent,proto3,oneof" json:"fluent,omitempty"`
|
||||||
|
Aliyun *Logger_Aliyun `protobuf:"bytes,5,opt,name=aliyun,proto3,oneof" json:"aliyun,omitempty"`
|
||||||
|
Tencent *Logger_Tencent `protobuf:"bytes,6,opt,name=tencent,proto3,oneof" json:"tencent,omitempty"`
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
|
|
||||||
Zap *Logger_Zap `protobuf:"bytes,2,opt,name=zap,proto3,oneof" json:"zap,omitempty"`
|
|
||||||
Logrus *Logger_Logrus `protobuf:"bytes,3,opt,name=logrus,proto3,oneof" json:"logrus,omitempty"`
|
|
||||||
Fluent *Logger_Fluent `protobuf:"bytes,4,opt,name=fluent,proto3,oneof" json:"fluent,omitempty"`
|
|
||||||
Aliyun *Logger_Aliyun `protobuf:"bytes,5,opt,name=aliyun,proto3,oneof" json:"aliyun,omitempty"`
|
|
||||||
Tencent *Logger_Tencent `protobuf:"bytes,6,opt,name=tencent,proto3,oneof" json:"tencent,omitempty"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Logger) Reset() {
|
func (x *Logger) Reset() {
|
||||||
@@ -108,15 +108,14 @@ func (x *Logger) GetTencent() *Logger_Tencent {
|
|||||||
|
|
||||||
// Zap
|
// Zap
|
||||||
type Logger_Zap struct {
|
type Logger_Zap struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"` //
|
||||||
|
Level string `protobuf:"bytes,2,opt,name=level,proto3" json:"level,omitempty"` //
|
||||||
|
MaxSize int32 `protobuf:"varint,3,opt,name=max_size,json=maxSize,proto3" json:"max_size,omitempty"` //
|
||||||
|
MaxAge int32 `protobuf:"varint,4,opt,name=max_age,json=maxAge,proto3" json:"max_age,omitempty"` //
|
||||||
|
MaxBackups int32 `protobuf:"varint,5,opt,name=max_backups,json=maxBackups,proto3" json:"max_backups,omitempty"` //
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"` //
|
|
||||||
Level string `protobuf:"bytes,2,opt,name=level,proto3" json:"level,omitempty"` //
|
|
||||||
MaxSize int32 `protobuf:"varint,3,opt,name=max_size,json=maxSize,proto3" json:"max_size,omitempty"` //
|
|
||||||
MaxAge int32 `protobuf:"varint,4,opt,name=max_age,json=maxAge,proto3" json:"max_age,omitempty"` //
|
|
||||||
MaxBackups int32 `protobuf:"varint,5,opt,name=max_backups,json=maxBackups,proto3" json:"max_backups,omitempty"` //
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Logger_Zap) Reset() {
|
func (x *Logger_Zap) Reset() {
|
||||||
@@ -186,15 +185,14 @@ func (x *Logger_Zap) GetMaxBackups() int32 {
|
|||||||
|
|
||||||
// logrus
|
// logrus
|
||||||
type Logger_Logrus struct {
|
type Logger_Logrus struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Level string `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty"` // 日志等级
|
||||||
unknownFields protoimpl.UnknownFields
|
Formatter string `protobuf:"bytes,2,opt,name=formatter,proto3" json:"formatter,omitempty"` // 输出格式:text, json.
|
||||||
|
TimestampFormat string `protobuf:"bytes,3,opt,name=timestamp_format,json=timestampFormat,proto3" json:"timestamp_format,omitempty"` // 定义时间戳格式,例如:"2006-01-02 15:04:05"
|
||||||
Level string `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty"` // 日志等级
|
DisableColors bool `protobuf:"varint,4,opt,name=disable_colors,json=disableColors,proto3" json:"disable_colors,omitempty"` // 不需要彩色日志
|
||||||
Formatter string `protobuf:"bytes,2,opt,name=formatter,proto3" json:"formatter,omitempty"` // 输出格式:text, json.
|
DisableTimestamp bool `protobuf:"varint,5,opt,name=disable_timestamp,json=disableTimestamp,proto3" json:"disable_timestamp,omitempty"` // 不需要时间戳
|
||||||
TimestampFormat string `protobuf:"bytes,3,opt,name=timestamp_format,json=timestampFormat,proto3" json:"timestamp_format,omitempty"` // 定义时间戳格式,例如:"2006-01-02 15:04:05"
|
unknownFields protoimpl.UnknownFields
|
||||||
DisableColors bool `protobuf:"varint,4,opt,name=disable_colors,json=disableColors,proto3" json:"disable_colors,omitempty"` // 不需要彩色日志
|
sizeCache protoimpl.SizeCache
|
||||||
DisableTimestamp bool `protobuf:"varint,5,opt,name=disable_timestamp,json=disableTimestamp,proto3" json:"disable_timestamp,omitempty"` // 不需要时间戳
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Logger_Logrus) Reset() {
|
func (x *Logger_Logrus) Reset() {
|
||||||
@@ -264,11 +262,10 @@ func (x *Logger_Logrus) GetDisableTimestamp() bool {
|
|||||||
|
|
||||||
// Fluent
|
// Fluent
|
||||||
type Logger_Fluent struct {
|
type Logger_Fluent struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // 公网接入地址
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // 公网接入地址
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Logger_Fluent) Reset() {
|
func (x *Logger_Fluent) Reset() {
|
||||||
@@ -310,14 +307,13 @@ func (x *Logger_Fluent) GetEndpoint() string {
|
|||||||
|
|
||||||
// 阿里云
|
// 阿里云
|
||||||
type Logger_Aliyun struct {
|
type Logger_Aliyun struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // 公网接入地址
|
||||||
|
Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` //
|
||||||
|
AccessKey string `protobuf:"bytes,3,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"` // 访问密钥ID
|
||||||
|
AccessSecret string `protobuf:"bytes,4,opt,name=access_secret,json=accessSecret,proto3" json:"access_secret,omitempty"` // 访问密钥
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // 公网接入地址
|
|
||||||
Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` //
|
|
||||||
AccessKey string `protobuf:"bytes,3,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"` // 访问密钥ID
|
|
||||||
AccessSecret string `protobuf:"bytes,4,opt,name=access_secret,json=accessSecret,proto3" json:"access_secret,omitempty"` // 访问密钥
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Logger_Aliyun) Reset() {
|
func (x *Logger_Aliyun) Reset() {
|
||||||
@@ -380,14 +376,13 @@ func (x *Logger_Aliyun) GetAccessSecret() string {
|
|||||||
|
|
||||||
// 腾讯
|
// 腾讯
|
||||||
type Logger_Tencent struct {
|
type Logger_Tencent struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // 公网接入地址
|
||||||
|
TopicId string `protobuf:"bytes,2,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` //
|
||||||
|
AccessKey string `protobuf:"bytes,3,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"` // 访问密钥ID
|
||||||
|
AccessSecret string `protobuf:"bytes,4,opt,name=access_secret,json=accessSecret,proto3" json:"access_secret,omitempty"` // 访问密钥
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // 公网接入地址
|
|
||||||
TopicId string `protobuf:"bytes,2,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` //
|
|
||||||
AccessKey string `protobuf:"bytes,3,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"` // 访问密钥ID
|
|
||||||
AccessSecret string `protobuf:"bytes,4,opt,name=access_secret,json=accessSecret,proto3" json:"access_secret,omitempty"` // 访问密钥
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Logger_Tencent) Reset() {
|
func (x *Logger_Tencent) Reset() {
|
||||||
@@ -450,7 +445,7 @@ func (x *Logger_Tencent) GetAccessSecret() string {
|
|||||||
|
|
||||||
var File_conf_v1_kratos_conf_logger_proto protoreflect.FileDescriptor
|
var File_conf_v1_kratos_conf_logger_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
var file_conf_v1_kratos_conf_logger_proto_rawDesc = []byte{
|
var file_conf_v1_kratos_conf_logger_proto_rawDesc = string([]byte{
|
||||||
0x0a, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73,
|
0x0a, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73,
|
||||||
0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x5f, 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f,
|
0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x5f, 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f,
|
||||||
0x74, 0x6f, 0x12, 0x04, 0x63, 0x6f, 0x6e, 0x66, 0x22, 0xc4, 0x07, 0x0a, 0x06, 0x4c, 0x6f, 0x67,
|
0x74, 0x6f, 0x12, 0x04, 0x63, 0x6f, 0x6e, 0x66, 0x22, 0xc4, 0x07, 0x0a, 0x06, 0x4c, 0x6f, 0x67,
|
||||||
@@ -524,16 +519,16 @@ var file_conf_v1_kratos_conf_logger_proto_rawDesc = []byte{
|
|||||||
0x02, 0x10, 0x43, 0x6f, 0x6e, 0x66, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
|
0x02, 0x10, 0x43, 0x6f, 0x6e, 0x66, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
|
||||||
0x74, 0x61, 0xea, 0x02, 0x04, 0x43, 0x6f, 0x6e, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
0x74, 0x61, 0xea, 0x02, 0x04, 0x43, 0x6f, 0x6e, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||||
0x33,
|
0x33,
|
||||||
}
|
})
|
||||||
|
|
||||||
var (
|
var (
|
||||||
file_conf_v1_kratos_conf_logger_proto_rawDescOnce sync.Once
|
file_conf_v1_kratos_conf_logger_proto_rawDescOnce sync.Once
|
||||||
file_conf_v1_kratos_conf_logger_proto_rawDescData = file_conf_v1_kratos_conf_logger_proto_rawDesc
|
file_conf_v1_kratos_conf_logger_proto_rawDescData []byte
|
||||||
)
|
)
|
||||||
|
|
||||||
func file_conf_v1_kratos_conf_logger_proto_rawDescGZIP() []byte {
|
func file_conf_v1_kratos_conf_logger_proto_rawDescGZIP() []byte {
|
||||||
file_conf_v1_kratos_conf_logger_proto_rawDescOnce.Do(func() {
|
file_conf_v1_kratos_conf_logger_proto_rawDescOnce.Do(func() {
|
||||||
file_conf_v1_kratos_conf_logger_proto_rawDescData = protoimpl.X.CompressGZIP(file_conf_v1_kratos_conf_logger_proto_rawDescData)
|
file_conf_v1_kratos_conf_logger_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_conf_v1_kratos_conf_logger_proto_rawDesc), len(file_conf_v1_kratos_conf_logger_proto_rawDesc)))
|
||||||
})
|
})
|
||||||
return file_conf_v1_kratos_conf_logger_proto_rawDescData
|
return file_conf_v1_kratos_conf_logger_proto_rawDescData
|
||||||
}
|
}
|
||||||
@@ -570,7 +565,7 @@ func file_conf_v1_kratos_conf_logger_proto_init() {
|
|||||||
out := protoimpl.TypeBuilder{
|
out := protoimpl.TypeBuilder{
|
||||||
File: protoimpl.DescBuilder{
|
File: protoimpl.DescBuilder{
|
||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_conf_v1_kratos_conf_logger_proto_rawDesc,
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_conf_v1_kratos_conf_logger_proto_rawDesc), len(file_conf_v1_kratos_conf_logger_proto_rawDesc)),
|
||||||
NumEnums: 0,
|
NumEnums: 0,
|
||||||
NumMessages: 6,
|
NumMessages: 6,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
@@ -581,7 +576,6 @@ func file_conf_v1_kratos_conf_logger_proto_init() {
|
|||||||
MessageInfos: file_conf_v1_kratos_conf_logger_proto_msgTypes,
|
MessageInfos: file_conf_v1_kratos_conf_logger_proto_msgTypes,
|
||||||
}.Build()
|
}.Build()
|
||||||
File_conf_v1_kratos_conf_logger_proto = out.File
|
File_conf_v1_kratos_conf_logger_proto = out.File
|
||||||
file_conf_v1_kratos_conf_logger_proto_rawDesc = nil
|
|
||||||
file_conf_v1_kratos_conf_logger_proto_goTypes = nil
|
file_conf_v1_kratos_conf_logger_proto_goTypes = nil
|
||||||
file_conf_v1_kratos_conf_logger_proto_depIdxs = nil
|
file_conf_v1_kratos_conf_logger_proto_depIdxs = nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.35.2
|
// protoc-gen-go v1.36.5
|
||||||
// protoc (unknown)
|
// protoc (unknown)
|
||||||
// source: conf/v1/kratos_conf_middleware.proto
|
// source: conf/v1/kratos_conf_middleware.proto
|
||||||
|
|
||||||
@@ -12,6 +12,7 @@ import (
|
|||||||
_ "google.golang.org/protobuf/types/known/durationpb"
|
_ "google.golang.org/protobuf/types/known/durationpb"
|
||||||
reflect "reflect"
|
reflect "reflect"
|
||||||
sync "sync"
|
sync "sync"
|
||||||
|
unsafe "unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -23,18 +24,18 @@ const (
|
|||||||
|
|
||||||
// 中间件
|
// 中间件
|
||||||
type Middleware struct {
|
type Middleware struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Limiter *Middleware_RateLimiter `protobuf:"bytes,1,opt,name=limiter,proto3" json:"limiter,omitempty"`
|
||||||
unknownFields protoimpl.UnknownFields
|
Metrics *Middleware_Metrics `protobuf:"bytes,2,opt,name=metrics,proto3" json:"metrics,omitempty"`
|
||||||
|
Auth *Middleware_Auth `protobuf:"bytes,3,opt,name=auth,proto3" json:"auth,omitempty"`
|
||||||
EnableLogging bool `protobuf:"varint,1,opt,name=enable_logging,json=enableLogging,proto3" json:"enable_logging,omitempty"` // 日志开关
|
EnableLogging bool `protobuf:"varint,10,opt,name=enable_logging,json=enableLogging,proto3" json:"enable_logging,omitempty"` // 日志开关
|
||||||
EnableRecovery bool `protobuf:"varint,2,opt,name=enable_recovery,json=enableRecovery,proto3" json:"enable_recovery,omitempty"` // 异常恢复
|
EnableRecovery bool `protobuf:"varint,11,opt,name=enable_recovery,json=enableRecovery,proto3" json:"enable_recovery,omitempty"` // 异常恢复
|
||||||
EnableTracing bool `protobuf:"varint,3,opt,name=enable_tracing,json=enableTracing,proto3" json:"enable_tracing,omitempty"` // 链路追踪开关
|
EnableTracing bool `protobuf:"varint,12,opt,name=enable_tracing,json=enableTracing,proto3" json:"enable_tracing,omitempty"` // 链路追踪开关
|
||||||
EnableValidate bool `protobuf:"varint,4,opt,name=enable_validate,json=enableValidate,proto3" json:"enable_validate,omitempty"` // 参数校验开关
|
EnableValidate bool `protobuf:"varint,13,opt,name=enable_validate,json=enableValidate,proto3" json:"enable_validate,omitempty"` // 参数校验开关
|
||||||
EnableCircuitBreaker bool `protobuf:"varint,5,opt,name=enable_circuit_breaker,json=enableCircuitBreaker,proto3" json:"enable_circuit_breaker,omitempty"` // 熔断器
|
EnableCircuitBreaker bool `protobuf:"varint,14,opt,name=enable_circuit_breaker,json=enableCircuitBreaker,proto3" json:"enable_circuit_breaker,omitempty"` // 熔断器
|
||||||
Limiter *Middleware_RateLimiter `protobuf:"bytes,6,opt,name=limiter,proto3" json:"limiter,omitempty"`
|
EnableMetadata bool `protobuf:"varint,15,opt,name=enable_metadata,json=enableMetadata,proto3" json:"enable_metadata,omitempty"` // 元数据
|
||||||
Metrics *Middleware_Metrics `protobuf:"bytes,7,opt,name=metrics,proto3" json:"metrics,omitempty"`
|
unknownFields protoimpl.UnknownFields
|
||||||
Auth *Middleware_Auth `protobuf:"bytes,8,opt,name=auth,proto3" json:"auth,omitempty"`
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Middleware) Reset() {
|
func (x *Middleware) Reset() {
|
||||||
@@ -67,6 +68,27 @@ func (*Middleware) Descriptor() ([]byte, []int) {
|
|||||||
return file_conf_v1_kratos_conf_middleware_proto_rawDescGZIP(), []int{0}
|
return file_conf_v1_kratos_conf_middleware_proto_rawDescGZIP(), []int{0}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (x *Middleware) GetLimiter() *Middleware_RateLimiter {
|
||||||
|
if x != nil {
|
||||||
|
return x.Limiter
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Middleware) GetMetrics() *Middleware_Metrics {
|
||||||
|
if x != nil {
|
||||||
|
return x.Metrics
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Middleware) GetAuth() *Middleware_Auth {
|
||||||
|
if x != nil {
|
||||||
|
return x.Auth
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
func (x *Middleware) GetEnableLogging() bool {
|
func (x *Middleware) GetEnableLogging() bool {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.EnableLogging
|
return x.EnableLogging
|
||||||
@@ -102,35 +124,20 @@ func (x *Middleware) GetEnableCircuitBreaker() bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Middleware) GetLimiter() *Middleware_RateLimiter {
|
func (x *Middleware) GetEnableMetadata() bool {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Limiter
|
return x.EnableMetadata
|
||||||
}
|
}
|
||||||
return nil
|
return false
|
||||||
}
|
|
||||||
|
|
||||||
func (x *Middleware) GetMetrics() *Middleware_Metrics {
|
|
||||||
if x != nil {
|
|
||||||
return x.Metrics
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *Middleware) GetAuth() *Middleware_Auth {
|
|
||||||
if x != nil {
|
|
||||||
return x.Auth
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// JWT校验
|
// JWT校验
|
||||||
type Middleware_Auth struct {
|
type Middleware_Auth struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"` // JWT签名的算法,支持算法:HS256
|
||||||
|
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` // JWT 秘钥
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"` // JWT签名的算法,支持算法:HS256
|
|
||||||
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` // JWT 秘钥
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Middleware_Auth) Reset() {
|
func (x *Middleware_Auth) Reset() {
|
||||||
@@ -179,11 +186,10 @@ func (x *Middleware_Auth) GetKey() string {
|
|||||||
|
|
||||||
// 限流器
|
// 限流器
|
||||||
type Middleware_RateLimiter struct {
|
type Middleware_RateLimiter struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // 限流器名字,支持:bbr。
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // 限流器名字,支持:bbr。
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Middleware_RateLimiter) Reset() {
|
func (x *Middleware_RateLimiter) Reset() {
|
||||||
@@ -225,14 +231,13 @@ func (x *Middleware_RateLimiter) GetName() string {
|
|||||||
|
|
||||||
// 性能指标
|
// 性能指标
|
||||||
type Middleware_Metrics struct {
|
type Middleware_Metrics struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Histogram bool `protobuf:"varint,1,opt,name=histogram,proto3" json:"histogram,omitempty"` // 直方图
|
||||||
|
Counter bool `protobuf:"varint,2,opt,name=counter,proto3" json:"counter,omitempty"` // 计数器
|
||||||
|
Gauge bool `protobuf:"varint,3,opt,name=gauge,proto3" json:"gauge,omitempty"` // 仪表盘
|
||||||
|
Summary bool `protobuf:"varint,4,opt,name=summary,proto3" json:"summary,omitempty"` // 摘要
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
Histogram bool `protobuf:"varint,1,opt,name=histogram,proto3" json:"histogram,omitempty"` // 直方图
|
|
||||||
Counter bool `protobuf:"varint,2,opt,name=counter,proto3" json:"counter,omitempty"` // 计数器
|
|
||||||
Gauge bool `protobuf:"varint,3,opt,name=gauge,proto3" json:"gauge,omitempty"` // 仪表盘
|
|
||||||
Summary bool `protobuf:"varint,4,opt,name=summary,proto3" json:"summary,omitempty"` // 摘要
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Middleware_Metrics) Reset() {
|
func (x *Middleware_Metrics) Reset() {
|
||||||
@@ -295,68 +300,70 @@ func (x *Middleware_Metrics) GetSummary() bool {
|
|||||||
|
|
||||||
var File_conf_v1_kratos_conf_middleware_proto protoreflect.FileDescriptor
|
var File_conf_v1_kratos_conf_middleware_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
var file_conf_v1_kratos_conf_middleware_proto_rawDesc = []byte{
|
var file_conf_v1_kratos_conf_middleware_proto_rawDesc = string([]byte{
|
||||||
0x0a, 0x24, 0x63, 0x6f, 0x6e, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73,
|
0x0a, 0x24, 0x63, 0x6f, 0x6e, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73,
|
||||||
0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x5f, 0x6d, 0x69, 0x64, 0x64, 0x6c, 0x65, 0x77, 0x61, 0x72, 0x65,
|
0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x5f, 0x6d, 0x69, 0x64, 0x64, 0x6c, 0x65, 0x77, 0x61, 0x72, 0x65,
|
||||||
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x63, 0x6f, 0x6e, 0x66, 0x1a, 0x1e, 0x67, 0x6f,
|
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x63, 0x6f, 0x6e, 0x66, 0x1a, 0x1e, 0x67, 0x6f,
|
||||||
0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75,
|
0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75,
|
||||||
0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc1, 0x04, 0x0a,
|
0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xea, 0x04, 0x0a,
|
||||||
0x0a, 0x4d, 0x69, 0x64, 0x64, 0x6c, 0x65, 0x77, 0x61, 0x72, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x65,
|
0x0a, 0x4d, 0x69, 0x64, 0x64, 0x6c, 0x65, 0x77, 0x61, 0x72, 0x65, 0x12, 0x36, 0x0a, 0x07, 0x6c,
|
||||||
0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20,
|
0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63,
|
||||||
0x01, 0x28, 0x08, 0x52, 0x0d, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x4c, 0x6f, 0x67, 0x67, 0x69,
|
0x6f, 0x6e, 0x66, 0x2e, 0x4d, 0x69, 0x64, 0x64, 0x6c, 0x65, 0x77, 0x61, 0x72, 0x65, 0x2e, 0x52,
|
||||||
0x6e, 0x67, 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x63,
|
0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x52, 0x07, 0x6c, 0x69, 0x6d, 0x69,
|
||||||
0x6f, 0x76, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x65, 0x6e, 0x61,
|
0x74, 0x65, 0x72, 0x12, 0x32, 0x0a, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x02,
|
||||||
0x62, 0x6c, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x12, 0x25, 0x0a, 0x0e, 0x65,
|
0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x2e, 0x4d, 0x69, 0x64, 0x64,
|
||||||
0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20,
|
0x6c, 0x65, 0x77, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x07,
|
||||||
0x01, 0x28, 0x08, 0x52, 0x0d, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x72, 0x61, 0x63, 0x69,
|
0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x29, 0x0a, 0x04, 0x61, 0x75, 0x74, 0x68, 0x18,
|
||||||
0x6e, 0x67, 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x76, 0x61, 0x6c,
|
0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x2e, 0x4d, 0x69, 0x64,
|
||||||
0x69, 0x64, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x65, 0x6e, 0x61,
|
0x64, 0x6c, 0x65, 0x77, 0x61, 0x72, 0x65, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x52, 0x04, 0x61, 0x75,
|
||||||
0x62, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x12, 0x34, 0x0a, 0x16, 0x65,
|
0x74, 0x68, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6c, 0x6f, 0x67,
|
||||||
0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x5f, 0x62, 0x72,
|
0x67, 0x69, 0x6e, 0x67, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x65, 0x6e, 0x61, 0x62,
|
||||||
0x65, 0x61, 0x6b, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x65, 0x6e, 0x61,
|
0x6c, 0x65, 0x4c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x6e, 0x61,
|
||||||
0x62, 0x6c, 0x65, 0x43, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x65,
|
0x62, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x18, 0x0b, 0x20, 0x01,
|
||||||
0x72, 0x12, 0x36, 0x0a, 0x07, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01,
|
0x28, 0x08, 0x52, 0x0e, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65,
|
||||||
0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x2e, 0x4d, 0x69, 0x64, 0x64, 0x6c, 0x65,
|
0x72, 0x79, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x72, 0x61,
|
||||||
0x77, 0x61, 0x72, 0x65, 0x2e, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72,
|
0x63, 0x69, 0x6e, 0x67, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x65, 0x6e, 0x61, 0x62,
|
||||||
0x52, 0x07, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x12, 0x32, 0x0a, 0x07, 0x6d, 0x65, 0x74,
|
0x6c, 0x65, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x6e, 0x61,
|
||||||
0x72, 0x69, 0x63, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x63, 0x6f, 0x6e,
|
0x62, 0x6c, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x18, 0x0d, 0x20, 0x01,
|
||||||
0x66, 0x2e, 0x4d, 0x69, 0x64, 0x64, 0x6c, 0x65, 0x77, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x65, 0x74,
|
0x28, 0x08, 0x52, 0x0e, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61,
|
||||||
0x72, 0x69, 0x63, 0x73, 0x52, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x29, 0x0a,
|
0x74, 0x65, 0x12, 0x34, 0x0a, 0x16, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x69, 0x72,
|
||||||
0x04, 0x61, 0x75, 0x74, 0x68, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x63, 0x6f,
|
0x63, 0x75, 0x69, 0x74, 0x5f, 0x62, 0x72, 0x65, 0x61, 0x6b, 0x65, 0x72, 0x18, 0x0e, 0x20, 0x01,
|
||||||
0x6e, 0x66, 0x2e, 0x4d, 0x69, 0x64, 0x64, 0x6c, 0x65, 0x77, 0x61, 0x72, 0x65, 0x2e, 0x41, 0x75,
|
0x28, 0x08, 0x52, 0x14, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x69, 0x72, 0x63, 0x75, 0x69,
|
||||||
0x74, 0x68, 0x52, 0x04, 0x61, 0x75, 0x74, 0x68, 0x1a, 0x30, 0x0a, 0x04, 0x41, 0x75, 0x74, 0x68,
|
0x74, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x65, 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x6e, 0x61, 0x62,
|
||||||
0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
|
0x6c, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x0f, 0x20, 0x01, 0x28,
|
||||||
0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18,
|
0x08, 0x52, 0x0e, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
|
||||||
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x1a, 0x21, 0x0a, 0x0b, 0x52, 0x61,
|
0x61, 0x1a, 0x30, 0x0a, 0x04, 0x41, 0x75, 0x74, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74,
|
||||||
0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
|
0x68, 0x6f, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f,
|
||||||
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x1a, 0x71, 0x0a,
|
0x64, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
|
||||||
0x07, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x68, 0x69, 0x73, 0x74,
|
0x6b, 0x65, 0x79, 0x1a, 0x21, 0x0a, 0x0b, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74,
|
||||||
0x6f, 0x67, 0x72, 0x61, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x68, 0x69, 0x73,
|
0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
|
||||||
0x74, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65,
|
0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x1a, 0x71, 0x0a, 0x07, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63,
|
||||||
0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72,
|
0x73, 0x12, 0x1c, 0x0a, 0x09, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x18, 0x01,
|
||||||
0x12, 0x14, 0x0a, 0x05, 0x67, 0x61, 0x75, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52,
|
0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x12,
|
||||||
0x05, 0x67, 0x61, 0x75, 0x67, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72,
|
0x18, 0x0a, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08,
|
||||||
0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79,
|
0x52, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x61, 0x75,
|
||||||
0x42, 0x8b, 0x01, 0x0a, 0x08, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x42, 0x19, 0x4b,
|
0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x67, 0x61, 0x75, 0x67, 0x65, 0x12,
|
||||||
0x72, 0x61, 0x74, 0x6f, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x4d, 0x69, 0x64, 0x64, 0x6c, 0x65, 0x77,
|
0x18, 0x0a, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08,
|
||||||
0x61, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68,
|
0x52, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x42, 0x8b, 0x01, 0x0a, 0x08, 0x63, 0x6f,
|
||||||
0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x78, 0x37, 0x64, 0x6f, 0x2f, 0x6b, 0x72, 0x61,
|
0x6d, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x42, 0x19, 0x4b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x43, 0x6f,
|
||||||
0x74, 0x6f, 0x73, 0x2d, 0x62, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x2f, 0x61, 0x70,
|
0x6e, 0x66, 0x4d, 0x69, 0x64, 0x64, 0x6c, 0x65, 0x77, 0x61, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x74,
|
||||||
0x69, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x2f, 0x76, 0x31,
|
0x6f, 0x50, 0x01, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
|
||||||
0xa2, 0x02, 0x03, 0x43, 0x58, 0x58, 0xaa, 0x02, 0x04, 0x43, 0x6f, 0x6e, 0x66, 0xca, 0x02, 0x04,
|
0x74, 0x78, 0x37, 0x64, 0x6f, 0x2f, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x62, 0x6f, 0x6f,
|
||||||
0x43, 0x6f, 0x6e, 0x66, 0xe2, 0x02, 0x10, 0x43, 0x6f, 0x6e, 0x66, 0x5c, 0x47, 0x50, 0x42, 0x4d,
|
0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67,
|
||||||
0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x04, 0x43, 0x6f, 0x6e, 0x66, 0x62, 0x06,
|
0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x2f, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x58, 0x58, 0xaa,
|
||||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
0x02, 0x04, 0x43, 0x6f, 0x6e, 0x66, 0xca, 0x02, 0x04, 0x43, 0x6f, 0x6e, 0x66, 0xe2, 0x02, 0x10,
|
||||||
}
|
0x43, 0x6f, 0x6e, 0x66, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
|
||||||
|
0xea, 0x02, 0x04, 0x43, 0x6f, 0x6e, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
|
})
|
||||||
|
|
||||||
var (
|
var (
|
||||||
file_conf_v1_kratos_conf_middleware_proto_rawDescOnce sync.Once
|
file_conf_v1_kratos_conf_middleware_proto_rawDescOnce sync.Once
|
||||||
file_conf_v1_kratos_conf_middleware_proto_rawDescData = file_conf_v1_kratos_conf_middleware_proto_rawDesc
|
file_conf_v1_kratos_conf_middleware_proto_rawDescData []byte
|
||||||
)
|
)
|
||||||
|
|
||||||
func file_conf_v1_kratos_conf_middleware_proto_rawDescGZIP() []byte {
|
func file_conf_v1_kratos_conf_middleware_proto_rawDescGZIP() []byte {
|
||||||
file_conf_v1_kratos_conf_middleware_proto_rawDescOnce.Do(func() {
|
file_conf_v1_kratos_conf_middleware_proto_rawDescOnce.Do(func() {
|
||||||
file_conf_v1_kratos_conf_middleware_proto_rawDescData = protoimpl.X.CompressGZIP(file_conf_v1_kratos_conf_middleware_proto_rawDescData)
|
file_conf_v1_kratos_conf_middleware_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_conf_v1_kratos_conf_middleware_proto_rawDesc), len(file_conf_v1_kratos_conf_middleware_proto_rawDesc)))
|
||||||
})
|
})
|
||||||
return file_conf_v1_kratos_conf_middleware_proto_rawDescData
|
return file_conf_v1_kratos_conf_middleware_proto_rawDescData
|
||||||
}
|
}
|
||||||
@@ -388,7 +395,7 @@ func file_conf_v1_kratos_conf_middleware_proto_init() {
|
|||||||
out := protoimpl.TypeBuilder{
|
out := protoimpl.TypeBuilder{
|
||||||
File: protoimpl.DescBuilder{
|
File: protoimpl.DescBuilder{
|
||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_conf_v1_kratos_conf_middleware_proto_rawDesc,
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_conf_v1_kratos_conf_middleware_proto_rawDesc), len(file_conf_v1_kratos_conf_middleware_proto_rawDesc)),
|
||||||
NumEnums: 0,
|
NumEnums: 0,
|
||||||
NumMessages: 4,
|
NumMessages: 4,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
@@ -399,7 +406,6 @@ func file_conf_v1_kratos_conf_middleware_proto_init() {
|
|||||||
MessageInfos: file_conf_v1_kratos_conf_middleware_proto_msgTypes,
|
MessageInfos: file_conf_v1_kratos_conf_middleware_proto_msgTypes,
|
||||||
}.Build()
|
}.Build()
|
||||||
File_conf_v1_kratos_conf_middleware_proto = out.File
|
File_conf_v1_kratos_conf_middleware_proto = out.File
|
||||||
file_conf_v1_kratos_conf_middleware_proto_rawDesc = nil
|
|
||||||
file_conf_v1_kratos_conf_middleware_proto_goTypes = nil
|
file_conf_v1_kratos_conf_middleware_proto_goTypes = nil
|
||||||
file_conf_v1_kratos_conf_middleware_proto_depIdxs = nil
|
file_conf_v1_kratos_conf_middleware_proto_depIdxs = nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.35.2
|
// protoc-gen-go v1.36.5
|
||||||
// protoc (unknown)
|
// protoc (unknown)
|
||||||
// source: conf/v1/kratos_conf_notify.proto
|
// source: conf/v1/kratos_conf_notify.proto
|
||||||
|
|
||||||
@@ -11,6 +11,7 @@ import (
|
|||||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||||
reflect "reflect"
|
reflect "reflect"
|
||||||
sync "sync"
|
sync "sync"
|
||||||
|
unsafe "unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -22,11 +23,10 @@ const (
|
|||||||
|
|
||||||
// 通知消息
|
// 通知消息
|
||||||
type Notification struct {
|
type Notification struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Sms *Notification_SMS `protobuf:"bytes,1,opt,name=sms,proto3,oneof" json:"sms,omitempty"`
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
Sms *Notification_SMS `protobuf:"bytes,1,opt,name=sms,proto3,oneof" json:"sms,omitempty"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Notification) Reset() {
|
func (x *Notification) Reset() {
|
||||||
@@ -68,14 +68,13 @@ func (x *Notification) GetSms() *Notification_SMS {
|
|||||||
|
|
||||||
// 短信
|
// 短信
|
||||||
type Notification_SMS struct {
|
type Notification_SMS struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // 公网接入地址
|
||||||
unknownFields protoimpl.UnknownFields
|
RegionId string `protobuf:"bytes,2,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` // 地域ID
|
||||||
|
AccessKeyId string `protobuf:"bytes,3,opt,name=access_key_id,json=accessKeyId,proto3" json:"access_key_id,omitempty"` // 访问密钥ID
|
||||||
Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // 公网接入地址
|
AccessKeySecret string `protobuf:"bytes,4,opt,name=access_key_secret,json=accessKeySecret,proto3" json:"access_key_secret,omitempty"` // 访问密钥
|
||||||
RegionId string `protobuf:"bytes,2,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` // 地域ID
|
unknownFields protoimpl.UnknownFields
|
||||||
AccessKeyId string `protobuf:"bytes,3,opt,name=access_key_id,json=accessKeyId,proto3" json:"access_key_id,omitempty"` // 访问密钥ID
|
sizeCache protoimpl.SizeCache
|
||||||
AccessKeySecret string `protobuf:"bytes,4,opt,name=access_key_secret,json=accessKeySecret,proto3" json:"access_key_secret,omitempty"` // 访问密钥
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Notification_SMS) Reset() {
|
func (x *Notification_SMS) Reset() {
|
||||||
@@ -138,7 +137,7 @@ func (x *Notification_SMS) GetAccessKeySecret() string {
|
|||||||
|
|
||||||
var File_conf_v1_kratos_conf_notify_proto protoreflect.FileDescriptor
|
var File_conf_v1_kratos_conf_notify_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
var file_conf_v1_kratos_conf_notify_proto_rawDesc = []byte{
|
var file_conf_v1_kratos_conf_notify_proto_rawDesc = string([]byte{
|
||||||
0x0a, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73,
|
0x0a, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73,
|
||||||
0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x5f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x2e, 0x70, 0x72, 0x6f,
|
0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x5f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x2e, 0x70, 0x72, 0x6f,
|
||||||
0x74, 0x6f, 0x12, 0x04, 0x63, 0x6f, 0x6e, 0x66, 0x22, 0xd6, 0x01, 0x0a, 0x0c, 0x4e, 0x6f, 0x74,
|
0x74, 0x6f, 0x12, 0x04, 0x63, 0x6f, 0x6e, 0x66, 0x22, 0xd6, 0x01, 0x0a, 0x0c, 0x4e, 0x6f, 0x74,
|
||||||
@@ -165,16 +164,16 @@ var file_conf_v1_kratos_conf_notify_proto_rawDesc = []byte{
|
|||||||
0x66, 0xe2, 0x02, 0x10, 0x43, 0x6f, 0x6e, 0x66, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61,
|
0x66, 0xe2, 0x02, 0x10, 0x43, 0x6f, 0x6e, 0x66, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61,
|
||||||
0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x04, 0x43, 0x6f, 0x6e, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f,
|
0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x04, 0x43, 0x6f, 0x6e, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f,
|
||||||
0x74, 0x6f, 0x33,
|
0x74, 0x6f, 0x33,
|
||||||
}
|
})
|
||||||
|
|
||||||
var (
|
var (
|
||||||
file_conf_v1_kratos_conf_notify_proto_rawDescOnce sync.Once
|
file_conf_v1_kratos_conf_notify_proto_rawDescOnce sync.Once
|
||||||
file_conf_v1_kratos_conf_notify_proto_rawDescData = file_conf_v1_kratos_conf_notify_proto_rawDesc
|
file_conf_v1_kratos_conf_notify_proto_rawDescData []byte
|
||||||
)
|
)
|
||||||
|
|
||||||
func file_conf_v1_kratos_conf_notify_proto_rawDescGZIP() []byte {
|
func file_conf_v1_kratos_conf_notify_proto_rawDescGZIP() []byte {
|
||||||
file_conf_v1_kratos_conf_notify_proto_rawDescOnce.Do(func() {
|
file_conf_v1_kratos_conf_notify_proto_rawDescOnce.Do(func() {
|
||||||
file_conf_v1_kratos_conf_notify_proto_rawDescData = protoimpl.X.CompressGZIP(file_conf_v1_kratos_conf_notify_proto_rawDescData)
|
file_conf_v1_kratos_conf_notify_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_conf_v1_kratos_conf_notify_proto_rawDesc), len(file_conf_v1_kratos_conf_notify_proto_rawDesc)))
|
||||||
})
|
})
|
||||||
return file_conf_v1_kratos_conf_notify_proto_rawDescData
|
return file_conf_v1_kratos_conf_notify_proto_rawDescData
|
||||||
}
|
}
|
||||||
@@ -203,7 +202,7 @@ func file_conf_v1_kratos_conf_notify_proto_init() {
|
|||||||
out := protoimpl.TypeBuilder{
|
out := protoimpl.TypeBuilder{
|
||||||
File: protoimpl.DescBuilder{
|
File: protoimpl.DescBuilder{
|
||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_conf_v1_kratos_conf_notify_proto_rawDesc,
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_conf_v1_kratos_conf_notify_proto_rawDesc), len(file_conf_v1_kratos_conf_notify_proto_rawDesc)),
|
||||||
NumEnums: 0,
|
NumEnums: 0,
|
||||||
NumMessages: 2,
|
NumMessages: 2,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
@@ -214,7 +213,6 @@ func file_conf_v1_kratos_conf_notify_proto_init() {
|
|||||||
MessageInfos: file_conf_v1_kratos_conf_notify_proto_msgTypes,
|
MessageInfos: file_conf_v1_kratos_conf_notify_proto_msgTypes,
|
||||||
}.Build()
|
}.Build()
|
||||||
File_conf_v1_kratos_conf_notify_proto = out.File
|
File_conf_v1_kratos_conf_notify_proto = out.File
|
||||||
file_conf_v1_kratos_conf_notify_proto_rawDesc = nil
|
|
||||||
file_conf_v1_kratos_conf_notify_proto_goTypes = nil
|
file_conf_v1_kratos_conf_notify_proto_goTypes = nil
|
||||||
file_conf_v1_kratos_conf_notify_proto_depIdxs = nil
|
file_conf_v1_kratos_conf_notify_proto_depIdxs = nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.35.2
|
// protoc-gen-go v1.36.5
|
||||||
// protoc (unknown)
|
// protoc (unknown)
|
||||||
// source: conf/v1/kratos_conf_oss.proto
|
// source: conf/v1/kratos_conf_oss.proto
|
||||||
|
|
||||||
@@ -11,6 +11,7 @@ import (
|
|||||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||||
reflect "reflect"
|
reflect "reflect"
|
||||||
sync "sync"
|
sync "sync"
|
||||||
|
unsafe "unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -22,11 +23,10 @@ const (
|
|||||||
|
|
||||||
// 对象存储
|
// 对象存储
|
||||||
type OSS struct {
|
type OSS struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Minio *OSS_MinIO `protobuf:"bytes,1,opt,name=minio,proto3,oneof" json:"minio,omitempty"`
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
Minio *OSS_MinIO `protobuf:"bytes,1,opt,name=minio,proto3,oneof" json:"minio,omitempty"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *OSS) Reset() {
|
func (x *OSS) Reset() {
|
||||||
@@ -68,18 +68,17 @@ func (x *OSS) GetMinio() *OSS_MinIO {
|
|||||||
|
|
||||||
// MinIO
|
// MinIO
|
||||||
type OSS_MinIO struct {
|
type OSS_MinIO struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // 对端端口
|
||||||
|
AccessKey string `protobuf:"bytes,2,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"` // 访问密钥
|
||||||
|
SecretKey string `protobuf:"bytes,3,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"` // 密钥
|
||||||
|
Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"` // 令牌
|
||||||
|
UseSsl bool `protobuf:"varint,10,opt,name=use_ssl,json=useSsl,proto3" json:"use_ssl,omitempty"` // 使用SSL
|
||||||
|
Tls *TLS `protobuf:"bytes,11,opt,name=tls,proto3" json:"tls,omitempty"` // TLS配置
|
||||||
|
UploadHost string `protobuf:"bytes,20,opt,name=upload_host,json=uploadHost,proto3" json:"upload_host,omitempty"` // 上传链接的主机名
|
||||||
|
DownloadHost string `protobuf:"bytes,21,opt,name=download_host,json=downloadHost,proto3" json:"download_host,omitempty"` // 下载链接的主机名
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // 对端端口
|
|
||||||
AccessKey string `protobuf:"bytes,2,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"` // 访问密钥
|
|
||||||
SecretKey string `protobuf:"bytes,3,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"` // 密钥
|
|
||||||
Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"` // 令牌
|
|
||||||
UseSsl bool `protobuf:"varint,10,opt,name=use_ssl,json=useSsl,proto3" json:"use_ssl,omitempty"` // 使用SSL
|
|
||||||
Tls *TLS `protobuf:"bytes,11,opt,name=tls,proto3" json:"tls,omitempty"` // TLS配置
|
|
||||||
UploadHost string `protobuf:"bytes,20,opt,name=upload_host,json=uploadHost,proto3" json:"upload_host,omitempty"` // 上传链接的主机名
|
|
||||||
DownloadHost string `protobuf:"bytes,21,opt,name=download_host,json=downloadHost,proto3" json:"download_host,omitempty"` // 下载链接的主机名
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *OSS_MinIO) Reset() {
|
func (x *OSS_MinIO) Reset() {
|
||||||
@@ -170,7 +169,7 @@ func (x *OSS_MinIO) GetDownloadHost() string {
|
|||||||
|
|
||||||
var File_conf_v1_kratos_conf_oss_proto protoreflect.FileDescriptor
|
var File_conf_v1_kratos_conf_oss_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
var file_conf_v1_kratos_conf_oss_proto_rawDesc = []byte{
|
var file_conf_v1_kratos_conf_oss_proto_rawDesc = string([]byte{
|
||||||
0x0a, 0x1d, 0x63, 0x6f, 0x6e, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73,
|
0x0a, 0x1d, 0x63, 0x6f, 0x6e, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73,
|
||||||
0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x5f, 0x6f, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
|
0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x5f, 0x6f, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
|
||||||
0x04, 0x63, 0x6f, 0x6e, 0x66, 0x1a, 0x1d, 0x63, 0x6f, 0x6e, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x6b,
|
0x04, 0x63, 0x6f, 0x6e, 0x66, 0x1a, 0x1d, 0x63, 0x6f, 0x6e, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x6b,
|
||||||
@@ -204,16 +203,16 @@ var file_conf_v1_kratos_conf_oss_proto_rawDesc = []byte{
|
|||||||
0x04, 0x43, 0x6f, 0x6e, 0x66, 0xe2, 0x02, 0x10, 0x43, 0x6f, 0x6e, 0x66, 0x5c, 0x47, 0x50, 0x42,
|
0x04, 0x43, 0x6f, 0x6e, 0x66, 0xe2, 0x02, 0x10, 0x43, 0x6f, 0x6e, 0x66, 0x5c, 0x47, 0x50, 0x42,
|
||||||
0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x04, 0x43, 0x6f, 0x6e, 0x66, 0x62,
|
0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x04, 0x43, 0x6f, 0x6e, 0x66, 0x62,
|
||||||
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
}
|
})
|
||||||
|
|
||||||
var (
|
var (
|
||||||
file_conf_v1_kratos_conf_oss_proto_rawDescOnce sync.Once
|
file_conf_v1_kratos_conf_oss_proto_rawDescOnce sync.Once
|
||||||
file_conf_v1_kratos_conf_oss_proto_rawDescData = file_conf_v1_kratos_conf_oss_proto_rawDesc
|
file_conf_v1_kratos_conf_oss_proto_rawDescData []byte
|
||||||
)
|
)
|
||||||
|
|
||||||
func file_conf_v1_kratos_conf_oss_proto_rawDescGZIP() []byte {
|
func file_conf_v1_kratos_conf_oss_proto_rawDescGZIP() []byte {
|
||||||
file_conf_v1_kratos_conf_oss_proto_rawDescOnce.Do(func() {
|
file_conf_v1_kratos_conf_oss_proto_rawDescOnce.Do(func() {
|
||||||
file_conf_v1_kratos_conf_oss_proto_rawDescData = protoimpl.X.CompressGZIP(file_conf_v1_kratos_conf_oss_proto_rawDescData)
|
file_conf_v1_kratos_conf_oss_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_conf_v1_kratos_conf_oss_proto_rawDesc), len(file_conf_v1_kratos_conf_oss_proto_rawDesc)))
|
||||||
})
|
})
|
||||||
return file_conf_v1_kratos_conf_oss_proto_rawDescData
|
return file_conf_v1_kratos_conf_oss_proto_rawDescData
|
||||||
}
|
}
|
||||||
@@ -245,7 +244,7 @@ func file_conf_v1_kratos_conf_oss_proto_init() {
|
|||||||
out := protoimpl.TypeBuilder{
|
out := protoimpl.TypeBuilder{
|
||||||
File: protoimpl.DescBuilder{
|
File: protoimpl.DescBuilder{
|
||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_conf_v1_kratos_conf_oss_proto_rawDesc,
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_conf_v1_kratos_conf_oss_proto_rawDesc), len(file_conf_v1_kratos_conf_oss_proto_rawDesc)),
|
||||||
NumEnums: 0,
|
NumEnums: 0,
|
||||||
NumMessages: 2,
|
NumMessages: 2,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
@@ -256,7 +255,6 @@ func file_conf_v1_kratos_conf_oss_proto_init() {
|
|||||||
MessageInfos: file_conf_v1_kratos_conf_oss_proto_msgTypes,
|
MessageInfos: file_conf_v1_kratos_conf_oss_proto_msgTypes,
|
||||||
}.Build()
|
}.Build()
|
||||||
File_conf_v1_kratos_conf_oss_proto = out.File
|
File_conf_v1_kratos_conf_oss_proto = out.File
|
||||||
file_conf_v1_kratos_conf_oss_proto_rawDesc = nil
|
|
||||||
file_conf_v1_kratos_conf_oss_proto_goTypes = nil
|
file_conf_v1_kratos_conf_oss_proto_goTypes = nil
|
||||||
file_conf_v1_kratos_conf_oss_proto_depIdxs = nil
|
file_conf_v1_kratos_conf_oss_proto_depIdxs = nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.35.2
|
// protoc-gen-go v1.36.5
|
||||||
// protoc (unknown)
|
// protoc (unknown)
|
||||||
// source: conf/v1/kratos_conf_registry.proto
|
// source: conf/v1/kratos_conf_registry.proto
|
||||||
|
|
||||||
@@ -12,6 +12,7 @@ import (
|
|||||||
durationpb "google.golang.org/protobuf/types/known/durationpb"
|
durationpb "google.golang.org/protobuf/types/known/durationpb"
|
||||||
reflect "reflect"
|
reflect "reflect"
|
||||||
sync "sync"
|
sync "sync"
|
||||||
|
unsafe "unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -23,19 +24,18 @@ const (
|
|||||||
|
|
||||||
// 注册发现中心
|
// 注册发现中心
|
||||||
type Registry struct {
|
type Registry struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
|
||||||
|
Consul *Registry_Consul `protobuf:"bytes,2,opt,name=consul,proto3,oneof" json:"consul,omitempty"` // Consul
|
||||||
|
Etcd *Registry_Etcd `protobuf:"bytes,3,opt,name=etcd,proto3,oneof" json:"etcd,omitempty"` // Etcd
|
||||||
|
Zookeeper *Registry_ZooKeeper `protobuf:"bytes,4,opt,name=zookeeper,proto3,oneof" json:"zookeeper,omitempty"` // ZooKeeper
|
||||||
|
Nacos *Registry_Nacos `protobuf:"bytes,5,opt,name=nacos,proto3,oneof" json:"nacos,omitempty"` // Nacos
|
||||||
|
Kubernetes *Registry_Kubernetes `protobuf:"bytes,6,opt,name=kubernetes,proto3,oneof" json:"kubernetes,omitempty"` // Kubernetes
|
||||||
|
Eureka *Registry_Eureka `protobuf:"bytes,7,opt,name=eureka,proto3,oneof" json:"eureka,omitempty"` // Eureka
|
||||||
|
Polaris *Registry_Polaris `protobuf:"bytes,8,opt,name=polaris,proto3,oneof" json:"polaris,omitempty"` // Polaris
|
||||||
|
Servicecomb *Registry_Servicecomb `protobuf:"bytes,9,opt,name=servicecomb,proto3,oneof" json:"servicecomb,omitempty"` // Servicecomb
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
|
|
||||||
Consul *Registry_Consul `protobuf:"bytes,2,opt,name=consul,proto3,oneof" json:"consul,omitempty"` // Consul
|
|
||||||
Etcd *Registry_Etcd `protobuf:"bytes,3,opt,name=etcd,proto3,oneof" json:"etcd,omitempty"` // Etcd
|
|
||||||
Zookeeper *Registry_ZooKeeper `protobuf:"bytes,4,opt,name=zookeeper,proto3,oneof" json:"zookeeper,omitempty"` // ZooKeeper
|
|
||||||
Nacos *Registry_Nacos `protobuf:"bytes,5,opt,name=nacos,proto3,oneof" json:"nacos,omitempty"` // Nacos
|
|
||||||
Kubernetes *Registry_Kubernetes `protobuf:"bytes,6,opt,name=kubernetes,proto3,oneof" json:"kubernetes,omitempty"` // Kubernetes
|
|
||||||
Eureka *Registry_Eureka `protobuf:"bytes,7,opt,name=eureka,proto3,oneof" json:"eureka,omitempty"` // Eureka
|
|
||||||
Polaris *Registry_Polaris `protobuf:"bytes,8,opt,name=polaris,proto3,oneof" json:"polaris,omitempty"` // Polaris
|
|
||||||
Servicecomb *Registry_Servicecomb `protobuf:"bytes,9,opt,name=servicecomb,proto3,oneof" json:"servicecomb,omitempty"` // Servicecomb
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Registry) Reset() {
|
func (x *Registry) Reset() {
|
||||||
@@ -133,13 +133,12 @@ func (x *Registry) GetServicecomb() *Registry_Servicecomb {
|
|||||||
|
|
||||||
// Consul
|
// Consul
|
||||||
type Registry_Consul struct {
|
type Registry_Consul struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Scheme string `protobuf:"bytes,1,opt,name=scheme,proto3" json:"scheme,omitempty"` // 网络样式
|
||||||
|
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` // 服务端地址
|
||||||
|
HealthCheck bool `protobuf:"varint,3,opt,name=health_check,json=healthCheck,proto3" json:"health_check,omitempty"` // 健康检查
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
Scheme string `protobuf:"bytes,1,opt,name=scheme,proto3" json:"scheme,omitempty"` // 网络样式
|
|
||||||
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` // 服务端地址
|
|
||||||
HealthCheck bool `protobuf:"varint,3,opt,name=health_check,json=healthCheck,proto3" json:"health_check,omitempty"` // 健康检查
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Registry_Consul) Reset() {
|
func (x *Registry_Consul) Reset() {
|
||||||
@@ -195,11 +194,10 @@ func (x *Registry_Consul) GetHealthCheck() bool {
|
|||||||
|
|
||||||
// Etcd
|
// Etcd
|
||||||
type Registry_Etcd struct {
|
type Registry_Etcd struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Endpoints []string `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
Endpoints []string `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Registry_Etcd) Reset() {
|
func (x *Registry_Etcd) Reset() {
|
||||||
@@ -241,12 +239,11 @@ func (x *Registry_Etcd) GetEndpoints() []string {
|
|||||||
|
|
||||||
// ZooKeeper
|
// ZooKeeper
|
||||||
type Registry_ZooKeeper struct {
|
type Registry_ZooKeeper struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Endpoints []string `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
|
||||||
|
Timeout *durationpb.Duration `protobuf:"bytes,2,opt,name=timeout,proto3" json:"timeout,omitempty"`
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
Endpoints []string `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
|
|
||||||
Timeout *durationpb.Duration `protobuf:"bytes,2,opt,name=timeout,proto3" json:"timeout,omitempty"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Registry_ZooKeeper) Reset() {
|
func (x *Registry_ZooKeeper) Reset() {
|
||||||
@@ -295,21 +292,20 @@ func (x *Registry_ZooKeeper) GetTimeout() *durationpb.Duration {
|
|||||||
|
|
||||||
// Nacos
|
// Nacos
|
||||||
type Registry_Nacos struct {
|
type Registry_Nacos struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // 服务端地址
|
||||||
unknownFields protoimpl.UnknownFields
|
Port uint64 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` // 服务端端口
|
||||||
|
NamespaceId string `protobuf:"bytes,3,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"` //
|
||||||
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // 服务端地址
|
LogLevel string `protobuf:"bytes,4,opt,name=log_level,json=logLevel,proto3" json:"log_level,omitempty"` // 日志等级
|
||||||
Port uint64 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` // 服务端端口
|
CacheDir string `protobuf:"bytes,5,opt,name=cache_dir,json=cacheDir,proto3" json:"cache_dir,omitempty"` // 缓存目录
|
||||||
NamespaceId string `protobuf:"bytes,3,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"` //
|
LogDir string `protobuf:"bytes,6,opt,name=log_dir,json=logDir,proto3" json:"log_dir,omitempty"` // 日志目录
|
||||||
LogLevel string `protobuf:"bytes,4,opt,name=log_level,json=logLevel,proto3" json:"log_level,omitempty"` // 日志等级
|
UpdateThreadNum int32 `protobuf:"varint,7,opt,name=update_thread_num,json=updateThreadNum,proto3" json:"update_thread_num,omitempty"` // 更新服务的线程数
|
||||||
CacheDir string `protobuf:"bytes,5,opt,name=cache_dir,json=cacheDir,proto3" json:"cache_dir,omitempty"` // 缓存目录
|
Timeout *durationpb.Duration `protobuf:"bytes,8,opt,name=timeout,proto3" json:"timeout,omitempty"` // http请求超时时间,单位: 毫秒
|
||||||
LogDir string `protobuf:"bytes,6,opt,name=log_dir,json=logDir,proto3" json:"log_dir,omitempty"` // 日志目录
|
BeatInterval *durationpb.Duration `protobuf:"bytes,9,opt,name=beat_interval,json=beatInterval,proto3" json:"beat_interval,omitempty"` // 心跳间隔时间,单位: 毫秒
|
||||||
UpdateThreadNum int32 `protobuf:"varint,7,opt,name=update_thread_num,json=updateThreadNum,proto3" json:"update_thread_num,omitempty"` // 更新服务的线程数
|
NotLoadCacheAtStart bool `protobuf:"varint,10,opt,name=not_load_cache_at_start,json=notLoadCacheAtStart,proto3" json:"not_load_cache_at_start,omitempty"` // 在启动时不读取本地缓存数据,true: 不读取,false: 读取
|
||||||
Timeout *durationpb.Duration `protobuf:"bytes,8,opt,name=timeout,proto3" json:"timeout,omitempty"` // http请求超时时间,单位: 毫秒
|
UpdateCacheWhenEmpty bool `protobuf:"varint,11,opt,name=update_cache_when_empty,json=updateCacheWhenEmpty,proto3" json:"update_cache_when_empty,omitempty"` // 当服务列表为空时是否更新本地缓存,true: 更新,false: 不更新
|
||||||
BeatInterval *durationpb.Duration `protobuf:"bytes,9,opt,name=beat_interval,json=beatInterval,proto3" json:"beat_interval,omitempty"` // 心跳间隔时间,单位: 毫秒
|
unknownFields protoimpl.UnknownFields
|
||||||
NotLoadCacheAtStart bool `protobuf:"varint,10,opt,name=not_load_cache_at_start,json=notLoadCacheAtStart,proto3" json:"not_load_cache_at_start,omitempty"` // 在启动时不读取本地缓存数据,true: 不读取,false: 读取
|
sizeCache protoimpl.SizeCache
|
||||||
UpdateCacheWhenEmpty bool `protobuf:"varint,11,opt,name=update_cache_when_empty,json=updateCacheWhenEmpty,proto3" json:"update_cache_when_empty,omitempty"` // 当服务列表为空时是否更新本地缓存,true: 更新,false: 不更新
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Registry_Nacos) Reset() {
|
func (x *Registry_Nacos) Reset() {
|
||||||
@@ -421,9 +417,9 @@ func (x *Registry_Nacos) GetUpdateCacheWhenEmpty() bool {
|
|||||||
|
|
||||||
// Kubernetes
|
// Kubernetes
|
||||||
type Registry_Kubernetes struct {
|
type Registry_Kubernetes struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Registry_Kubernetes) Reset() {
|
func (x *Registry_Kubernetes) Reset() {
|
||||||
@@ -458,14 +454,13 @@ func (*Registry_Kubernetes) Descriptor() ([]byte, []int) {
|
|||||||
|
|
||||||
// Eureka
|
// Eureka
|
||||||
type Registry_Eureka struct {
|
type Registry_Eureka struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Endpoints []string `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
|
||||||
unknownFields protoimpl.UnknownFields
|
HeartbeatInterval *durationpb.Duration `protobuf:"bytes,2,opt,name=heartbeat_interval,json=heartbeatInterval,proto3" json:"heartbeat_interval,omitempty"`
|
||||||
|
RefreshInterval *durationpb.Duration `protobuf:"bytes,3,opt,name=refresh_interval,json=refreshInterval,proto3" json:"refresh_interval,omitempty"`
|
||||||
Endpoints []string `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
|
Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
|
||||||
HeartbeatInterval *durationpb.Duration `protobuf:"bytes,2,opt,name=heartbeat_interval,json=heartbeatInterval,proto3" json:"heartbeat_interval,omitempty"`
|
unknownFields protoimpl.UnknownFields
|
||||||
RefreshInterval *durationpb.Duration `protobuf:"bytes,3,opt,name=refresh_interval,json=refreshInterval,proto3" json:"refresh_interval,omitempty"`
|
sizeCache protoimpl.SizeCache
|
||||||
Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Registry_Eureka) Reset() {
|
func (x *Registry_Eureka) Reset() {
|
||||||
@@ -528,16 +523,15 @@ func (x *Registry_Eureka) GetPath() string {
|
|||||||
|
|
||||||
// Polaris
|
// Polaris
|
||||||
type Registry_Polaris struct {
|
type Registry_Polaris struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // 服务端地址
|
||||||
|
Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` // 服务端端口
|
||||||
|
InstanceCount int32 `protobuf:"varint,3,opt,name=instance_count,json=instanceCount,proto3" json:"instance_count,omitempty"`
|
||||||
|
Namespace string `protobuf:"bytes,4,opt,name=namespace,proto3" json:"namespace,omitempty"`
|
||||||
|
Service string `protobuf:"bytes,5,opt,name=service,proto3" json:"service,omitempty"`
|
||||||
|
Token string `protobuf:"bytes,6,opt,name=token,proto3" json:"token,omitempty"`
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // 服务端地址
|
|
||||||
Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` // 服务端端口
|
|
||||||
InstanceCount int32 `protobuf:"varint,3,opt,name=instance_count,json=instanceCount,proto3" json:"instance_count,omitempty"`
|
|
||||||
Namespace string `protobuf:"bytes,4,opt,name=namespace,proto3" json:"namespace,omitempty"`
|
|
||||||
Service string `protobuf:"bytes,5,opt,name=service,proto3" json:"service,omitempty"`
|
|
||||||
Token string `protobuf:"bytes,6,opt,name=token,proto3" json:"token,omitempty"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Registry_Polaris) Reset() {
|
func (x *Registry_Polaris) Reset() {
|
||||||
@@ -614,11 +608,10 @@ func (x *Registry_Polaris) GetToken() string {
|
|||||||
|
|
||||||
// Servicecomb
|
// Servicecomb
|
||||||
type Registry_Servicecomb struct {
|
type Registry_Servicecomb struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Endpoints []string `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
Endpoints []string `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Registry_Servicecomb) Reset() {
|
func (x *Registry_Servicecomb) Reset() {
|
||||||
@@ -660,7 +653,7 @@ func (x *Registry_Servicecomb) GetEndpoints() []string {
|
|||||||
|
|
||||||
var File_conf_v1_kratos_conf_registry_proto protoreflect.FileDescriptor
|
var File_conf_v1_kratos_conf_registry_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
var file_conf_v1_kratos_conf_registry_proto_rawDesc = []byte{
|
var file_conf_v1_kratos_conf_registry_proto_rawDesc = string([]byte{
|
||||||
0x0a, 0x22, 0x63, 0x6f, 0x6e, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73,
|
0x0a, 0x22, 0x63, 0x6f, 0x6e, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73,
|
||||||
0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x70,
|
0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x70,
|
||||||
0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x63, 0x6f, 0x6e, 0x66, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67,
|
0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x63, 0x6f, 0x6e, 0x66, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67,
|
||||||
@@ -781,16 +774,16 @@ var file_conf_v1_kratos_conf_registry_proto_rawDesc = []byte{
|
|||||||
0x04, 0x43, 0x6f, 0x6e, 0x66, 0xe2, 0x02, 0x10, 0x43, 0x6f, 0x6e, 0x66, 0x5c, 0x47, 0x50, 0x42,
|
0x04, 0x43, 0x6f, 0x6e, 0x66, 0xe2, 0x02, 0x10, 0x43, 0x6f, 0x6e, 0x66, 0x5c, 0x47, 0x50, 0x42,
|
||||||
0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x04, 0x43, 0x6f, 0x6e, 0x66, 0x62,
|
0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x04, 0x43, 0x6f, 0x6e, 0x66, 0x62,
|
||||||
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
}
|
})
|
||||||
|
|
||||||
var (
|
var (
|
||||||
file_conf_v1_kratos_conf_registry_proto_rawDescOnce sync.Once
|
file_conf_v1_kratos_conf_registry_proto_rawDescOnce sync.Once
|
||||||
file_conf_v1_kratos_conf_registry_proto_rawDescData = file_conf_v1_kratos_conf_registry_proto_rawDesc
|
file_conf_v1_kratos_conf_registry_proto_rawDescData []byte
|
||||||
)
|
)
|
||||||
|
|
||||||
func file_conf_v1_kratos_conf_registry_proto_rawDescGZIP() []byte {
|
func file_conf_v1_kratos_conf_registry_proto_rawDescGZIP() []byte {
|
||||||
file_conf_v1_kratos_conf_registry_proto_rawDescOnce.Do(func() {
|
file_conf_v1_kratos_conf_registry_proto_rawDescOnce.Do(func() {
|
||||||
file_conf_v1_kratos_conf_registry_proto_rawDescData = protoimpl.X.CompressGZIP(file_conf_v1_kratos_conf_registry_proto_rawDescData)
|
file_conf_v1_kratos_conf_registry_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_conf_v1_kratos_conf_registry_proto_rawDesc), len(file_conf_v1_kratos_conf_registry_proto_rawDesc)))
|
||||||
})
|
})
|
||||||
return file_conf_v1_kratos_conf_registry_proto_rawDescData
|
return file_conf_v1_kratos_conf_registry_proto_rawDescData
|
||||||
}
|
}
|
||||||
@@ -839,7 +832,7 @@ func file_conf_v1_kratos_conf_registry_proto_init() {
|
|||||||
out := protoimpl.TypeBuilder{
|
out := protoimpl.TypeBuilder{
|
||||||
File: protoimpl.DescBuilder{
|
File: protoimpl.DescBuilder{
|
||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_conf_v1_kratos_conf_registry_proto_rawDesc,
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_conf_v1_kratos_conf_registry_proto_rawDesc), len(file_conf_v1_kratos_conf_registry_proto_rawDesc)),
|
||||||
NumEnums: 0,
|
NumEnums: 0,
|
||||||
NumMessages: 9,
|
NumMessages: 9,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
@@ -850,7 +843,6 @@ func file_conf_v1_kratos_conf_registry_proto_init() {
|
|||||||
MessageInfos: file_conf_v1_kratos_conf_registry_proto_msgTypes,
|
MessageInfos: file_conf_v1_kratos_conf_registry_proto_msgTypes,
|
||||||
}.Build()
|
}.Build()
|
||||||
File_conf_v1_kratos_conf_registry_proto = out.File
|
File_conf_v1_kratos_conf_registry_proto = out.File
|
||||||
file_conf_v1_kratos_conf_registry_proto_rawDesc = nil
|
|
||||||
file_conf_v1_kratos_conf_registry_proto_goTypes = nil
|
file_conf_v1_kratos_conf_registry_proto_goTypes = nil
|
||||||
file_conf_v1_kratos_conf_registry_proto_depIdxs = nil
|
file_conf_v1_kratos_conf_registry_proto_depIdxs = nil
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
|||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.35.2
|
// protoc-gen-go v1.36.5
|
||||||
// protoc (unknown)
|
// protoc (unknown)
|
||||||
// source: conf/v1/kratos_conf_tls.proto
|
// source: conf/v1/kratos_conf_tls.proto
|
||||||
|
|
||||||
@@ -11,6 +11,7 @@ import (
|
|||||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||||
reflect "reflect"
|
reflect "reflect"
|
||||||
sync "sync"
|
sync "sync"
|
||||||
|
unsafe "unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -22,13 +23,12 @@ const (
|
|||||||
|
|
||||||
// TLS配置
|
// TLS配置
|
||||||
type TLS struct {
|
type TLS struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
File *TLS_File `protobuf:"bytes,1,opt,name=file,proto3,oneof" json:"file,omitempty"`
|
||||||
unknownFields protoimpl.UnknownFields
|
Config *TLS_Config `protobuf:"bytes,2,opt,name=config,proto3,oneof" json:"config,omitempty"`
|
||||||
|
InsecureSkipVerify bool `protobuf:"varint,3,opt,name=insecure_skip_verify,json=insecureSkipVerify,proto3" json:"insecure_skip_verify,omitempty"`
|
||||||
File *TLS_File `protobuf:"bytes,1,opt,name=file,proto3,oneof" json:"file,omitempty"`
|
unknownFields protoimpl.UnknownFields
|
||||||
Config *TLS_Config `protobuf:"bytes,2,opt,name=config,proto3,oneof" json:"config,omitempty"`
|
sizeCache protoimpl.SizeCache
|
||||||
InsecureSkipVerify bool `protobuf:"varint,3,opt,name=insecure_skip_verify,json=insecureSkipVerify,proto3" json:"insecure_skip_verify,omitempty"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *TLS) Reset() {
|
func (x *TLS) Reset() {
|
||||||
@@ -83,13 +83,12 @@ func (x *TLS) GetInsecureSkipVerify() bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type TLS_File struct {
|
type TLS_File struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
CertPath *string `protobuf:"bytes,1,opt,name=cert_path,json=certPath,proto3,oneof" json:"cert_path,omitempty"`
|
||||||
|
KeyPath *string `protobuf:"bytes,2,opt,name=key_path,json=keyPath,proto3,oneof" json:"key_path,omitempty"`
|
||||||
|
CaPath *string `protobuf:"bytes,3,opt,name=ca_path,json=caPath,proto3,oneof" json:"ca_path,omitempty"`
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
CertPath *string `protobuf:"bytes,1,opt,name=cert_path,json=certPath,proto3,oneof" json:"cert_path,omitempty"`
|
|
||||||
KeyPath *string `protobuf:"bytes,2,opt,name=key_path,json=keyPath,proto3,oneof" json:"key_path,omitempty"`
|
|
||||||
CaPath *string `protobuf:"bytes,3,opt,name=ca_path,json=caPath,proto3,oneof" json:"ca_path,omitempty"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *TLS_File) Reset() {
|
func (x *TLS_File) Reset() {
|
||||||
@@ -144,13 +143,12 @@ func (x *TLS_File) GetCaPath() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type TLS_Config struct {
|
type TLS_Config struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
CertPem []byte `protobuf:"bytes,1,opt,name=cert_pem,json=certPem,proto3,oneof" json:"cert_pem,omitempty"`
|
||||||
|
KeyPem []byte `protobuf:"bytes,2,opt,name=key_pem,json=keyPem,proto3,oneof" json:"key_pem,omitempty"`
|
||||||
|
CaPem []byte `protobuf:"bytes,3,opt,name=ca_pem,json=caPem,proto3,oneof" json:"ca_pem,omitempty"`
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
CertPem []byte `protobuf:"bytes,1,opt,name=cert_pem,json=certPem,proto3,oneof" json:"cert_pem,omitempty"`
|
|
||||||
KeyPem []byte `protobuf:"bytes,2,opt,name=key_pem,json=keyPem,proto3,oneof" json:"key_pem,omitempty"`
|
|
||||||
CaPem []byte `protobuf:"bytes,3,opt,name=ca_pem,json=caPem,proto3,oneof" json:"ca_pem,omitempty"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *TLS_Config) Reset() {
|
func (x *TLS_Config) Reset() {
|
||||||
@@ -206,7 +204,7 @@ func (x *TLS_Config) GetCaPem() []byte {
|
|||||||
|
|
||||||
var File_conf_v1_kratos_conf_tls_proto protoreflect.FileDescriptor
|
var File_conf_v1_kratos_conf_tls_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
var file_conf_v1_kratos_conf_tls_proto_rawDesc = []byte{
|
var file_conf_v1_kratos_conf_tls_proto_rawDesc = string([]byte{
|
||||||
0x0a, 0x1d, 0x63, 0x6f, 0x6e, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73,
|
0x0a, 0x1d, 0x63, 0x6f, 0x6e, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73,
|
||||||
0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x5f, 0x74, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
|
0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x5f, 0x74, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
|
||||||
0x04, 0x63, 0x6f, 0x6e, 0x66, 0x22, 0xbc, 0x03, 0x0a, 0x03, 0x54, 0x4c, 0x53, 0x12, 0x27, 0x0a,
|
0x04, 0x63, 0x6f, 0x6e, 0x66, 0x22, 0xbc, 0x03, 0x0a, 0x03, 0x54, 0x4c, 0x53, 0x12, 0x27, 0x0a,
|
||||||
@@ -247,16 +245,16 @@ var file_conf_v1_kratos_conf_tls_proto_rawDesc = []byte{
|
|||||||
0x66, 0xe2, 0x02, 0x10, 0x43, 0x6f, 0x6e, 0x66, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61,
|
0x66, 0xe2, 0x02, 0x10, 0x43, 0x6f, 0x6e, 0x66, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61,
|
||||||
0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x04, 0x43, 0x6f, 0x6e, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f,
|
0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x04, 0x43, 0x6f, 0x6e, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f,
|
||||||
0x74, 0x6f, 0x33,
|
0x74, 0x6f, 0x33,
|
||||||
}
|
})
|
||||||
|
|
||||||
var (
|
var (
|
||||||
file_conf_v1_kratos_conf_tls_proto_rawDescOnce sync.Once
|
file_conf_v1_kratos_conf_tls_proto_rawDescOnce sync.Once
|
||||||
file_conf_v1_kratos_conf_tls_proto_rawDescData = file_conf_v1_kratos_conf_tls_proto_rawDesc
|
file_conf_v1_kratos_conf_tls_proto_rawDescData []byte
|
||||||
)
|
)
|
||||||
|
|
||||||
func file_conf_v1_kratos_conf_tls_proto_rawDescGZIP() []byte {
|
func file_conf_v1_kratos_conf_tls_proto_rawDescGZIP() []byte {
|
||||||
file_conf_v1_kratos_conf_tls_proto_rawDescOnce.Do(func() {
|
file_conf_v1_kratos_conf_tls_proto_rawDescOnce.Do(func() {
|
||||||
file_conf_v1_kratos_conf_tls_proto_rawDescData = protoimpl.X.CompressGZIP(file_conf_v1_kratos_conf_tls_proto_rawDescData)
|
file_conf_v1_kratos_conf_tls_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_conf_v1_kratos_conf_tls_proto_rawDesc), len(file_conf_v1_kratos_conf_tls_proto_rawDesc)))
|
||||||
})
|
})
|
||||||
return file_conf_v1_kratos_conf_tls_proto_rawDescData
|
return file_conf_v1_kratos_conf_tls_proto_rawDescData
|
||||||
}
|
}
|
||||||
@@ -289,7 +287,7 @@ func file_conf_v1_kratos_conf_tls_proto_init() {
|
|||||||
out := protoimpl.TypeBuilder{
|
out := protoimpl.TypeBuilder{
|
||||||
File: protoimpl.DescBuilder{
|
File: protoimpl.DescBuilder{
|
||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_conf_v1_kratos_conf_tls_proto_rawDesc,
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_conf_v1_kratos_conf_tls_proto_rawDesc), len(file_conf_v1_kratos_conf_tls_proto_rawDesc)),
|
||||||
NumEnums: 0,
|
NumEnums: 0,
|
||||||
NumMessages: 3,
|
NumMessages: 3,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
@@ -300,7 +298,6 @@ func file_conf_v1_kratos_conf_tls_proto_init() {
|
|||||||
MessageInfos: file_conf_v1_kratos_conf_tls_proto_msgTypes,
|
MessageInfos: file_conf_v1_kratos_conf_tls_proto_msgTypes,
|
||||||
}.Build()
|
}.Build()
|
||||||
File_conf_v1_kratos_conf_tls_proto = out.File
|
File_conf_v1_kratos_conf_tls_proto = out.File
|
||||||
file_conf_v1_kratos_conf_tls_proto_rawDesc = nil
|
|
||||||
file_conf_v1_kratos_conf_tls_proto_goTypes = nil
|
file_conf_v1_kratos_conf_tls_proto_goTypes = nil
|
||||||
file_conf_v1_kratos_conf_tls_proto_depIdxs = nil
|
file_conf_v1_kratos_conf_tls_proto_depIdxs = nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.35.2
|
// protoc-gen-go v1.36.5
|
||||||
// protoc (unknown)
|
// protoc (unknown)
|
||||||
// source: conf/v1/kratos_conf_tracer.proto
|
// source: conf/v1/kratos_conf_tracer.proto
|
||||||
|
|
||||||
@@ -11,6 +11,7 @@ import (
|
|||||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||||
reflect "reflect"
|
reflect "reflect"
|
||||||
sync "sync"
|
sync "sync"
|
||||||
|
unsafe "unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -22,15 +23,14 @@ const (
|
|||||||
|
|
||||||
// 链路追踪
|
// 链路追踪
|
||||||
type Tracer struct {
|
type Tracer struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
Batcher string `protobuf:"bytes,1,opt,name=batcher,proto3" json:"batcher,omitempty"` // jaeger或者zipkin
|
||||||
|
Endpoint string `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // 端口
|
||||||
|
Sampler float64 `protobuf:"fixed64,3,opt,name=sampler,proto3" json:"sampler,omitempty"` // 采样率,默认:1.0
|
||||||
|
Env string `protobuf:"bytes,4,opt,name=env,proto3" json:"env,omitempty"` // 运行环境:dev、debug、product
|
||||||
|
Insecure bool `protobuf:"varint,5,opt,name=insecure,proto3" json:"insecure,omitempty"`
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
Batcher string `protobuf:"bytes,1,opt,name=batcher,proto3" json:"batcher,omitempty"` // jaeger或者zipkin
|
|
||||||
Endpoint string `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // 端口
|
|
||||||
Sampler float64 `protobuf:"fixed64,3,opt,name=sampler,proto3" json:"sampler,omitempty"` // 采样率,默认:1.0
|
|
||||||
Env string `protobuf:"bytes,4,opt,name=env,proto3" json:"env,omitempty"` // 运行环境:dev、debug、product
|
|
||||||
Insecure bool `protobuf:"varint,5,opt,name=insecure,proto3" json:"insecure,omitempty"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Tracer) Reset() {
|
func (x *Tracer) Reset() {
|
||||||
@@ -100,7 +100,7 @@ func (x *Tracer) GetInsecure() bool {
|
|||||||
|
|
||||||
var File_conf_v1_kratos_conf_tracer_proto protoreflect.FileDescriptor
|
var File_conf_v1_kratos_conf_tracer_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
var file_conf_v1_kratos_conf_tracer_proto_rawDesc = []byte{
|
var file_conf_v1_kratos_conf_tracer_proto_rawDesc = string([]byte{
|
||||||
0x0a, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73,
|
0x0a, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73,
|
||||||
0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x5f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f,
|
0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x5f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f,
|
||||||
0x74, 0x6f, 0x12, 0x04, 0x63, 0x6f, 0x6e, 0x66, 0x22, 0x86, 0x01, 0x0a, 0x06, 0x54, 0x72, 0x61,
|
0x74, 0x6f, 0x12, 0x04, 0x63, 0x6f, 0x6e, 0x66, 0x22, 0x86, 0x01, 0x0a, 0x06, 0x54, 0x72, 0x61,
|
||||||
@@ -122,16 +122,16 @@ var file_conf_v1_kratos_conf_tracer_proto_rawDesc = []byte{
|
|||||||
0x66, 0xe2, 0x02, 0x10, 0x43, 0x6f, 0x6e, 0x66, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61,
|
0x66, 0xe2, 0x02, 0x10, 0x43, 0x6f, 0x6e, 0x66, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61,
|
||||||
0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x04, 0x43, 0x6f, 0x6e, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f,
|
0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x04, 0x43, 0x6f, 0x6e, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f,
|
||||||
0x74, 0x6f, 0x33,
|
0x74, 0x6f, 0x33,
|
||||||
}
|
})
|
||||||
|
|
||||||
var (
|
var (
|
||||||
file_conf_v1_kratos_conf_tracer_proto_rawDescOnce sync.Once
|
file_conf_v1_kratos_conf_tracer_proto_rawDescOnce sync.Once
|
||||||
file_conf_v1_kratos_conf_tracer_proto_rawDescData = file_conf_v1_kratos_conf_tracer_proto_rawDesc
|
file_conf_v1_kratos_conf_tracer_proto_rawDescData []byte
|
||||||
)
|
)
|
||||||
|
|
||||||
func file_conf_v1_kratos_conf_tracer_proto_rawDescGZIP() []byte {
|
func file_conf_v1_kratos_conf_tracer_proto_rawDescGZIP() []byte {
|
||||||
file_conf_v1_kratos_conf_tracer_proto_rawDescOnce.Do(func() {
|
file_conf_v1_kratos_conf_tracer_proto_rawDescOnce.Do(func() {
|
||||||
file_conf_v1_kratos_conf_tracer_proto_rawDescData = protoimpl.X.CompressGZIP(file_conf_v1_kratos_conf_tracer_proto_rawDescData)
|
file_conf_v1_kratos_conf_tracer_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_conf_v1_kratos_conf_tracer_proto_rawDesc), len(file_conf_v1_kratos_conf_tracer_proto_rawDesc)))
|
||||||
})
|
})
|
||||||
return file_conf_v1_kratos_conf_tracer_proto_rawDescData
|
return file_conf_v1_kratos_conf_tracer_proto_rawDescData
|
||||||
}
|
}
|
||||||
@@ -157,7 +157,7 @@ func file_conf_v1_kratos_conf_tracer_proto_init() {
|
|||||||
out := protoimpl.TypeBuilder{
|
out := protoimpl.TypeBuilder{
|
||||||
File: protoimpl.DescBuilder{
|
File: protoimpl.DescBuilder{
|
||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_conf_v1_kratos_conf_tracer_proto_rawDesc,
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_conf_v1_kratos_conf_tracer_proto_rawDesc), len(file_conf_v1_kratos_conf_tracer_proto_rawDesc)),
|
||||||
NumEnums: 0,
|
NumEnums: 0,
|
||||||
NumMessages: 1,
|
NumMessages: 1,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
@@ -168,7 +168,6 @@ func file_conf_v1_kratos_conf_tracer_proto_init() {
|
|||||||
MessageInfos: file_conf_v1_kratos_conf_tracer_proto_msgTypes,
|
MessageInfos: file_conf_v1_kratos_conf_tracer_proto_msgTypes,
|
||||||
}.Build()
|
}.Build()
|
||||||
File_conf_v1_kratos_conf_tracer_proto = out.File
|
File_conf_v1_kratos_conf_tracer_proto = out.File
|
||||||
file_conf_v1_kratos_conf_tracer_proto_rawDesc = nil
|
|
||||||
file_conf_v1_kratos_conf_tracer_proto_goTypes = nil
|
file_conf_v1_kratos_conf_tracer_proto_goTypes = nil
|
||||||
file_conf_v1_kratos_conf_tracer_proto_depIdxs = nil
|
file_conf_v1_kratos_conf_tracer_proto_depIdxs = nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.35.2
|
// protoc-gen-go v1.36.5
|
||||||
// protoc (unknown)
|
// protoc (unknown)
|
||||||
// source: pagination/v1/pagination.proto
|
// source: pagination/v1/pagination.proto
|
||||||
|
|
||||||
@@ -13,6 +13,7 @@ import (
|
|||||||
fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
|
fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
|
||||||
reflect "reflect"
|
reflect "reflect"
|
||||||
sync "sync"
|
sync "sync"
|
||||||
|
unsafe "unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -24,10 +25,7 @@ const (
|
|||||||
|
|
||||||
// 分页通用请求
|
// 分页通用请求
|
||||||
type PagingRequest struct {
|
type PagingRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// 当前页码
|
// 当前页码
|
||||||
Page *int32 `protobuf:"varint,1,opt,name=page,proto3,oneof" json:"page,omitempty"`
|
Page *int32 `protobuf:"varint,1,opt,name=page,proto3,oneof" json:"page,omitempty"`
|
||||||
// 每一页的行数
|
// 每一页的行数
|
||||||
@@ -41,7 +39,9 @@ type PagingRequest struct {
|
|||||||
// 是否不分页,如果为true,则page和pageSize参数无效。
|
// 是否不分页,如果为true,则page和pageSize参数无效。
|
||||||
NoPaging *bool `protobuf:"varint,6,opt,name=no_paging,json=noPaging,proto3,oneof" json:"no_paging,omitempty"`
|
NoPaging *bool `protobuf:"varint,6,opt,name=no_paging,json=noPaging,proto3,oneof" json:"no_paging,omitempty"`
|
||||||
// 字段掩码,其作用为SELECT中的字段,其语法为使用逗号分隔字段名,例如:id,realName,userName。如果为空则选中所有字段,即SELECT *。
|
// 字段掩码,其作用为SELECT中的字段,其语法为使用逗号分隔字段名,例如:id,realName,userName。如果为空则选中所有字段,即SELECT *。
|
||||||
FieldMask *fieldmaskpb.FieldMask `protobuf:"bytes,7,opt,name=field_mask,json=fieldMask,proto3,oneof" json:"field_mask,omitempty"`
|
FieldMask *fieldmaskpb.FieldMask `protobuf:"bytes,7,opt,name=field_mask,json=fieldMask,proto3,oneof" json:"field_mask,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *PagingRequest) Reset() {
|
func (x *PagingRequest) Reset() {
|
||||||
@@ -125,14 +125,13 @@ func (x *PagingRequest) GetFieldMask() *fieldmaskpb.FieldMask {
|
|||||||
|
|
||||||
// 分页通用结果
|
// 分页通用结果
|
||||||
type PagingResponse struct {
|
type PagingResponse struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
// 总数
|
// 总数
|
||||||
Total int32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
|
Total int32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
|
||||||
// 分页数据
|
// 分页数据
|
||||||
Items [][]byte `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
|
Items [][]byte `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *PagingResponse) Reset() {
|
func (x *PagingResponse) Reset() {
|
||||||
@@ -181,7 +180,7 @@ func (x *PagingResponse) GetItems() [][]byte {
|
|||||||
|
|
||||||
var File_pagination_v1_pagination_proto protoreflect.FileDescriptor
|
var File_pagination_v1_pagination_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
var file_pagination_v1_pagination_proto_rawDesc = []byte{
|
var file_pagination_v1_pagination_proto_rawDesc = string([]byte{
|
||||||
0x0a, 0x1e, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f,
|
0x0a, 0x1e, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f,
|
||||||
0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||||
0x12, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x20, 0x67, 0x6f,
|
0x12, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x20, 0x67, 0x6f,
|
||||||
@@ -274,16 +273,16 @@ var file_pagination_v1_pagination_proto_rawDesc = []byte{
|
|||||||
0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74,
|
0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74,
|
||||||
0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0a, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69,
|
0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0a, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69,
|
||||||
0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
}
|
})
|
||||||
|
|
||||||
var (
|
var (
|
||||||
file_pagination_v1_pagination_proto_rawDescOnce sync.Once
|
file_pagination_v1_pagination_proto_rawDescOnce sync.Once
|
||||||
file_pagination_v1_pagination_proto_rawDescData = file_pagination_v1_pagination_proto_rawDesc
|
file_pagination_v1_pagination_proto_rawDescData []byte
|
||||||
)
|
)
|
||||||
|
|
||||||
func file_pagination_v1_pagination_proto_rawDescGZIP() []byte {
|
func file_pagination_v1_pagination_proto_rawDescGZIP() []byte {
|
||||||
file_pagination_v1_pagination_proto_rawDescOnce.Do(func() {
|
file_pagination_v1_pagination_proto_rawDescOnce.Do(func() {
|
||||||
file_pagination_v1_pagination_proto_rawDescData = protoimpl.X.CompressGZIP(file_pagination_v1_pagination_proto_rawDescData)
|
file_pagination_v1_pagination_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pagination_v1_pagination_proto_rawDesc), len(file_pagination_v1_pagination_proto_rawDesc)))
|
||||||
})
|
})
|
||||||
return file_pagination_v1_pagination_proto_rawDescData
|
return file_pagination_v1_pagination_proto_rawDescData
|
||||||
}
|
}
|
||||||
@@ -313,7 +312,7 @@ func file_pagination_v1_pagination_proto_init() {
|
|||||||
out := protoimpl.TypeBuilder{
|
out := protoimpl.TypeBuilder{
|
||||||
File: protoimpl.DescBuilder{
|
File: protoimpl.DescBuilder{
|
||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_pagination_v1_pagination_proto_rawDesc,
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_pagination_v1_pagination_proto_rawDesc), len(file_pagination_v1_pagination_proto_rawDesc)),
|
||||||
NumEnums: 0,
|
NumEnums: 0,
|
||||||
NumMessages: 2,
|
NumMessages: 2,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
@@ -324,7 +323,6 @@ func file_pagination_v1_pagination_proto_init() {
|
|||||||
MessageInfos: file_pagination_v1_pagination_proto_msgTypes,
|
MessageInfos: file_pagination_v1_pagination_proto_msgTypes,
|
||||||
}.Build()
|
}.Build()
|
||||||
File_pagination_v1_pagination_proto = out.File
|
File_pagination_v1_pagination_proto = out.File
|
||||||
file_pagination_v1_pagination_proto_rawDesc = nil
|
|
||||||
file_pagination_v1_pagination_proto_goTypes = nil
|
file_pagination_v1_pagination_proto_goTypes = nil
|
||||||
file_pagination_v1_pagination_proto_depIdxs = nil
|
file_pagination_v1_pagination_proto_depIdxs = nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,13 +27,14 @@ message Middleware {
|
|||||||
bool summary = 4; // 摘要
|
bool summary = 4; // 摘要
|
||||||
}
|
}
|
||||||
|
|
||||||
bool enable_logging = 1; // 日志开关
|
RateLimiter limiter = 1;
|
||||||
bool enable_recovery = 2; // 异常恢复
|
Metrics metrics = 2;
|
||||||
bool enable_tracing = 3; // 链路追踪开关
|
Auth auth = 3;
|
||||||
bool enable_validate = 4; // 参数校验开关
|
|
||||||
bool enable_circuit_breaker = 5; // 熔断器
|
|
||||||
|
|
||||||
RateLimiter limiter = 6;
|
bool enable_logging = 10; // 日志开关
|
||||||
Metrics metrics = 7;
|
bool enable_recovery = 11; // 异常恢复
|
||||||
Auth auth = 8;
|
bool enable_tracing = 12; // 链路追踪开关
|
||||||
|
bool enable_validate = 13; // 参数校验开关
|
||||||
|
bool enable_circuit_breaker = 14; // 熔断器
|
||||||
|
bool enable_metadata = 15; // 元数据
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -58,6 +58,11 @@ message Server {
|
|||||||
string endpoint = 1; // 对端网络地址
|
string endpoint = 1; // 对端网络地址
|
||||||
string codec = 2; // 编解码器: json,xml,yaml...
|
string codec = 2; // 编解码器: json,xml,yaml...
|
||||||
TLS tls = 3; // TLS配置
|
TLS tls = 3; // TLS配置
|
||||||
|
string username = 4; // 用户名
|
||||||
|
string password = 5; // 密码
|
||||||
|
string client_id = 6; // 客户端ID
|
||||||
|
bool clean_session = 7; // 清除会话
|
||||||
|
bool enable_keep_alive = 8; // 启用心跳
|
||||||
}
|
}
|
||||||
|
|
||||||
// Kafka
|
// Kafka
|
||||||
@@ -65,6 +70,7 @@ message Server {
|
|||||||
repeated string endpoints = 1; // 对端网络地址
|
repeated string endpoints = 1; // 对端网络地址
|
||||||
string codec = 2; // 编解码器: json,xml,yaml...
|
string codec = 2; // 编解码器: json,xml,yaml...
|
||||||
TLS tls = 3; // TLS配置
|
TLS tls = 3; // TLS配置
|
||||||
|
bool enable_keep_alive = 4; // 启用心跳
|
||||||
}
|
}
|
||||||
|
|
||||||
// RabbitMQ
|
// RabbitMQ
|
||||||
@@ -72,56 +78,63 @@ message Server {
|
|||||||
repeated string endpoints = 1; // 对端网络地址
|
repeated string endpoints = 1; // 对端网络地址
|
||||||
string codec = 2; // 编解码器: json,xml,yaml...
|
string codec = 2; // 编解码器: json,xml,yaml...
|
||||||
TLS tls = 3; // TLS配置
|
TLS tls = 3; // TLS配置
|
||||||
|
bool enable_keep_alive = 4; // 启用心跳
|
||||||
}
|
}
|
||||||
|
|
||||||
message ActiveMQ {
|
message ActiveMQ {
|
||||||
string endpoint = 1; // 对端网络地址
|
string endpoint = 1; // 对端网络地址
|
||||||
string codec = 2; // 编解码器: json,xml,yaml...
|
string codec = 2; // 编解码器: json,xml,yaml...
|
||||||
TLS tls = 3; // TLS配置
|
TLS tls = 3; // TLS配置
|
||||||
|
bool enable_keep_alive = 4; // 启用心跳
|
||||||
}
|
}
|
||||||
|
|
||||||
message NATS {
|
message NATS {
|
||||||
string endpoint = 1; // 对端网络地址
|
string endpoint = 1; // 对端网络地址
|
||||||
string codec = 2; // 编解码器: json,xml,yaml...
|
string codec = 2; // 编解码器: json,xml,yaml...
|
||||||
TLS tls = 3; // TLS配置
|
TLS tls = 3; // TLS配置
|
||||||
|
bool enable_keep_alive = 4; // 启用心跳
|
||||||
}
|
}
|
||||||
|
|
||||||
message NSQ {
|
message NSQ {
|
||||||
string endpoint = 1; // 对端网络地址
|
string endpoint = 1; // 对端网络地址
|
||||||
string codec = 2; // 编解码器: json,xml,yaml...
|
string codec = 2; // 编解码器: json,xml,yaml...
|
||||||
TLS tls = 3; // TLS配置
|
TLS tls = 3; // TLS配置
|
||||||
|
bool enable_keep_alive = 4; // 启用心跳
|
||||||
}
|
}
|
||||||
|
|
||||||
message Pulsar {
|
message Pulsar {
|
||||||
string endpoint = 1; // 对端网络地址
|
string endpoint = 1; // 对端网络地址
|
||||||
string codec = 2; // 编解码器: json,xml,yaml...
|
string codec = 2; // 编解码器: json,xml,yaml...
|
||||||
TLS tls = 3; // TLS配置
|
TLS tls = 3; // TLS配置
|
||||||
|
bool enable_keep_alive = 4; // 启用心跳
|
||||||
}
|
}
|
||||||
|
|
||||||
message Redis {
|
message Redis {
|
||||||
string endpoint = 1; // 对端网络地址
|
string endpoint = 1; // 对端网络地址
|
||||||
string codec = 2; // 编解码器: json,xml,yaml...
|
string codec = 2; // 编解码器: json,xml,yaml...
|
||||||
TLS tls = 3; // TLS配置
|
TLS tls = 3; // TLS配置
|
||||||
|
bool enable_keep_alive = 4; // 启用心跳
|
||||||
}
|
}
|
||||||
|
|
||||||
message RocketMQ {
|
message RocketMQ {
|
||||||
string version = 1; // 驱动版本:aliyun、v2、v5
|
string version = 1; // 驱动版本:aliyun、v2、v5
|
||||||
string codec = 2; // 编解码器: json,xml,yaml...
|
string codec = 2; // 编解码器: json,xml,yaml...
|
||||||
|
|
||||||
bool enable_trace = 3;
|
repeated string name_servers = 3;
|
||||||
|
string name_server_domain = 4;
|
||||||
|
|
||||||
repeated string name_servers = 4;
|
string access_key = 5;
|
||||||
string name_server_domain = 5;
|
string secret_key = 6;
|
||||||
|
string security_token = 7;
|
||||||
|
|
||||||
string access_key = 6;
|
string namespace = 8;
|
||||||
string secret_key = 7;
|
string instance_name = 9;
|
||||||
string security_token = 8;
|
string group_name = 10;
|
||||||
|
|
||||||
string namespace = 9;
|
TLS tls = 11; // TLS配置
|
||||||
string instance_name = 10;
|
|
||||||
string group_name = 11;
|
|
||||||
|
|
||||||
TLS tls = 12; // TLS配置
|
bool enable_trace = 100;
|
||||||
|
bool enable_keep_alive = 101; // 启用心跳
|
||||||
}
|
}
|
||||||
|
|
||||||
// Asynq
|
// Asynq
|
||||||
@@ -131,6 +144,7 @@ message Server {
|
|||||||
int32 db = 3; // 数据库索引
|
int32 db = 3; // 数据库索引
|
||||||
string location = 4; // 时区
|
string location = 4; // 时区
|
||||||
TLS tls = 5; // TLS配置
|
TLS tls = 5; // TLS配置
|
||||||
|
bool enable_keep_alive = 6; // 启用心跳
|
||||||
}
|
}
|
||||||
|
|
||||||
// Machinery
|
// Machinery
|
||||||
@@ -138,6 +152,7 @@ message Server {
|
|||||||
repeated string brokers = 1; // broker的地址,可以根据实际使用的存储介质,分别指定Redis、AMQP或AWS SQS;
|
repeated string brokers = 1; // broker的地址,可以根据实际使用的存储介质,分别指定Redis、AMQP或AWS SQS;
|
||||||
repeated string backends = 2; // backend配置,用来指定存放结果的介质的配置。可以根据需求,分别指定为:Redis、memcached或mongodb等;
|
repeated string backends = 2; // backend配置,用来指定存放结果的介质的配置。可以根据需求,分别指定为:Redis、memcached或mongodb等;
|
||||||
TLS tls = 3; // TLS配置
|
TLS tls = 3; // TLS配置
|
||||||
|
bool enable_keep_alive = 4; // 启用心跳
|
||||||
}
|
}
|
||||||
|
|
||||||
// SSE
|
// SSE
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package bootstrap
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"runtime"
|
||||||
|
|
||||||
"github.com/go-kratos/kratos/v2"
|
"github.com/go-kratos/kratos/v2"
|
||||||
"github.com/go-kratos/kratos/v2/log"
|
"github.com/go-kratos/kratos/v2/log"
|
||||||
@@ -90,6 +91,8 @@ func Bootstrap(initApp InitApp, serviceName, version *string) {
|
|||||||
|
|
||||||
// run the app.
|
// run the app.
|
||||||
if err = app.Run(); err != nil {
|
if err = app.Run(); err != nil {
|
||||||
panic(err)
|
buf := make([]byte, 1024)
|
||||||
|
n := runtime.Stack(buf, false)
|
||||||
|
panic(fmt.Sprintf("Panic: %v\nStack trace:\n%s", err, string(buf[:n])))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ import (
|
|||||||
"github.com/go-kratos/kratos/v2/registry"
|
"github.com/go-kratos/kratos/v2/registry"
|
||||||
|
|
||||||
"github.com/go-kratos/kratos/v2/middleware"
|
"github.com/go-kratos/kratos/v2/middleware"
|
||||||
|
"github.com/go-kratos/kratos/v2/middleware/metadata"
|
||||||
midRateLimit "github.com/go-kratos/kratos/v2/middleware/ratelimit"
|
midRateLimit "github.com/go-kratos/kratos/v2/middleware/ratelimit"
|
||||||
"github.com/go-kratos/kratos/v2/middleware/recovery"
|
"github.com/go-kratos/kratos/v2/middleware/recovery"
|
||||||
"github.com/go-kratos/kratos/v2/middleware/tracing"
|
"github.com/go-kratos/kratos/v2/middleware/tracing"
|
||||||
@@ -78,6 +79,9 @@ func initGrpcClientConfig(cfg *conf.Bootstrap, mds ...middleware.Middleware) []k
|
|||||||
if cfg.Client.Grpc.Middleware.GetEnableValidate() {
|
if cfg.Client.Grpc.Middleware.GetEnableValidate() {
|
||||||
ms = append(ms, validate.Validator())
|
ms = append(ms, validate.Validator())
|
||||||
}
|
}
|
||||||
|
if cfg.Client.Grpc.Middleware.GetEnableMetadata() {
|
||||||
|
ms = append(ms, metadata.Client())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
options = append(options, kratosGrpc.WithMiddleware(ms...))
|
options = append(options, kratosGrpc.WithMiddleware(ms...))
|
||||||
|
|
||||||
@@ -137,6 +141,9 @@ func initGrpcServerConfig(cfg *conf.Bootstrap, mds ...middleware.Middleware) []k
|
|||||||
}
|
}
|
||||||
ms = append(ms, midRateLimit.Server(midRateLimit.WithLimiter(limiter)))
|
ms = append(ms, midRateLimit.Server(midRateLimit.WithLimiter(limiter)))
|
||||||
}
|
}
|
||||||
|
if cfg.Server.Grpc.Middleware.GetEnableMetadata() {
|
||||||
|
ms = append(ms, metadata.Server())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
options = append(options, kratosGrpc.Middleware(ms...))
|
options = append(options, kratosGrpc.Middleware(ms...))
|
||||||
|
|
||||||
|
|||||||
6
tag.bat
6
tag.bat
@@ -1,4 +1,4 @@
|
|||||||
git tag api/v0.0.11 --force
|
git tag api/v0.0.13 --force
|
||||||
|
|
||||||
git tag utils/v0.1.2 --force
|
git tag utils/v0.1.2 --force
|
||||||
|
|
||||||
@@ -7,7 +7,7 @@ git tag oss/minio/v0.0.8 --force
|
|||||||
git tag registry/v0.0.8 --force
|
git tag registry/v0.0.8 --force
|
||||||
git tag config/v0.0.8 --force
|
git tag config/v0.0.8 --force
|
||||||
git tag logger/v0.0.8 --force
|
git tag logger/v0.0.8 --force
|
||||||
git tag rpc/v0.0.9 --force
|
git tag rpc/v0.0.10 --force
|
||||||
git tag tracer/v0.0.8 --force
|
git tag tracer/v0.0.8 --force
|
||||||
|
|
||||||
git tag database/ent/v0.0.8 --force
|
git tag database/ent/v0.0.8 --force
|
||||||
@@ -17,7 +17,7 @@ git tag database/influxdb/v0.0.8 --force
|
|||||||
git tag database/cassandra/v0.0.8 --force
|
git tag database/cassandra/v0.0.8 --force
|
||||||
git tag database/clickhouse/v0.0.8 --force
|
git tag database/clickhouse/v0.0.8 --force
|
||||||
|
|
||||||
git tag bootstrap/v0.0.13 --force
|
git tag bootstrap/v0.0.14 --force
|
||||||
|
|
||||||
git tag v0.5.0
|
git tag v0.5.0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user