931 lines
38 KiB
Go
931 lines
38 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
// versions:
|
||
// protoc-gen-go v1.36.5
|
||
// protoc (unknown)
|
||
// source: conf/v1/kratos_conf_registry.proto
|
||
|
||
package v1
|
||
|
||
import (
|
||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||
durationpb "google.golang.org/protobuf/types/known/durationpb"
|
||
reflect "reflect"
|
||
sync "sync"
|
||
unsafe "unsafe"
|
||
)
|
||
|
||
const (
|
||
// Verify that this generated code is sufficiently up-to-date.
|
||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||
)
|
||
|
||
// 注册发现中心
|
||
type Registry struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
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
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *Registry) Reset() {
|
||
*x = Registry{}
|
||
mi := &file_conf_v1_kratos_conf_registry_proto_msgTypes[0]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *Registry) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*Registry) ProtoMessage() {}
|
||
|
||
func (x *Registry) ProtoReflect() protoreflect.Message {
|
||
mi := &file_conf_v1_kratos_conf_registry_proto_msgTypes[0]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use Registry.ProtoReflect.Descriptor instead.
|
||
func (*Registry) Descriptor() ([]byte, []int) {
|
||
return file_conf_v1_kratos_conf_registry_proto_rawDescGZIP(), []int{0}
|
||
}
|
||
|
||
func (x *Registry) GetType() string {
|
||
if x != nil {
|
||
return x.Type
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Registry) GetConsul() *Registry_Consul {
|
||
if x != nil {
|
||
return x.Consul
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *Registry) GetEtcd() *Registry_Etcd {
|
||
if x != nil {
|
||
return x.Etcd
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *Registry) GetZookeeper() *Registry_ZooKeeper {
|
||
if x != nil {
|
||
return x.Zookeeper
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *Registry) GetNacos() *Registry_Nacos {
|
||
if x != nil {
|
||
return x.Nacos
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *Registry) GetKubernetes() *Registry_Kubernetes {
|
||
if x != nil {
|
||
return x.Kubernetes
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *Registry) GetEureka() *Registry_Eureka {
|
||
if x != nil {
|
||
return x.Eureka
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *Registry) GetPolaris() *Registry_Polaris {
|
||
if x != nil {
|
||
return x.Polaris
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *Registry) GetServicecomb() *Registry_Servicecomb {
|
||
if x != nil {
|
||
return x.Servicecomb
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// Consul
|
||
type Registry_Consul struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
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
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *Registry_Consul) Reset() {
|
||
*x = Registry_Consul{}
|
||
mi := &file_conf_v1_kratos_conf_registry_proto_msgTypes[1]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *Registry_Consul) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*Registry_Consul) ProtoMessage() {}
|
||
|
||
func (x *Registry_Consul) ProtoReflect() protoreflect.Message {
|
||
mi := &file_conf_v1_kratos_conf_registry_proto_msgTypes[1]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use Registry_Consul.ProtoReflect.Descriptor instead.
|
||
func (*Registry_Consul) Descriptor() ([]byte, []int) {
|
||
return file_conf_v1_kratos_conf_registry_proto_rawDescGZIP(), []int{0, 0}
|
||
}
|
||
|
||
func (x *Registry_Consul) GetScheme() string {
|
||
if x != nil {
|
||
return x.Scheme
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Registry_Consul) GetAddress() string {
|
||
if x != nil {
|
||
return x.Address
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Registry_Consul) GetHealthCheck() bool {
|
||
if x != nil {
|
||
return x.HealthCheck
|
||
}
|
||
return false
|
||
}
|
||
|
||
// Etcd
|
||
type Registry_Etcd struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Endpoints []string `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *Registry_Etcd) Reset() {
|
||
*x = Registry_Etcd{}
|
||
mi := &file_conf_v1_kratos_conf_registry_proto_msgTypes[2]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *Registry_Etcd) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*Registry_Etcd) ProtoMessage() {}
|
||
|
||
func (x *Registry_Etcd) ProtoReflect() protoreflect.Message {
|
||
mi := &file_conf_v1_kratos_conf_registry_proto_msgTypes[2]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use Registry_Etcd.ProtoReflect.Descriptor instead.
|
||
func (*Registry_Etcd) Descriptor() ([]byte, []int) {
|
||
return file_conf_v1_kratos_conf_registry_proto_rawDescGZIP(), []int{0, 1}
|
||
}
|
||
|
||
func (x *Registry_Etcd) GetEndpoints() []string {
|
||
if x != nil {
|
||
return x.Endpoints
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// ZooKeeper
|
||
type Registry_ZooKeeper struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
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
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *Registry_ZooKeeper) Reset() {
|
||
*x = Registry_ZooKeeper{}
|
||
mi := &file_conf_v1_kratos_conf_registry_proto_msgTypes[3]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *Registry_ZooKeeper) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*Registry_ZooKeeper) ProtoMessage() {}
|
||
|
||
func (x *Registry_ZooKeeper) ProtoReflect() protoreflect.Message {
|
||
mi := &file_conf_v1_kratos_conf_registry_proto_msgTypes[3]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use Registry_ZooKeeper.ProtoReflect.Descriptor instead.
|
||
func (*Registry_ZooKeeper) Descriptor() ([]byte, []int) {
|
||
return file_conf_v1_kratos_conf_registry_proto_rawDescGZIP(), []int{0, 2}
|
||
}
|
||
|
||
func (x *Registry_ZooKeeper) GetEndpoints() []string {
|
||
if x != nil {
|
||
return x.Endpoints
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *Registry_ZooKeeper) GetTimeout() *durationpb.Duration {
|
||
if x != nil {
|
||
return x.Timeout
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// Nacos
|
||
type Registry_Nacos struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // 服务端地址
|
||
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"` // 命名空间ID
|
||
RegionId string `protobuf:"bytes,4,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` // 区域ID
|
||
AppName string `protobuf:"bytes,5,opt,name=app_name,json=appName,proto3" json:"app_name,omitempty"` // 应用名称
|
||
AccessKey string `protobuf:"bytes,6,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"` // 访问密钥
|
||
SecretKey string `protobuf:"bytes,7,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"` // 密钥
|
||
Username string `protobuf:"bytes,8,opt,name=username,proto3" json:"username,omitempty"` // 用户名
|
||
Password string `protobuf:"bytes,9,opt,name=password,proto3" json:"password,omitempty"` // 密码
|
||
LogLevel string `protobuf:"bytes,10,opt,name=log_level,json=logLevel,proto3" json:"log_level,omitempty"` // 日志等级
|
||
LogDir string `protobuf:"bytes,11,opt,name=log_dir,json=logDir,proto3" json:"log_dir,omitempty"` // 日志目录
|
||
CacheDir string `protobuf:"bytes,12,opt,name=cache_dir,json=cacheDir,proto3" json:"cache_dir,omitempty"` // 缓存目录
|
||
Timeout *durationpb.Duration `protobuf:"bytes,20,opt,name=timeout,proto3" json:"timeout,omitempty"` // http请求超时时间,单位: 毫秒
|
||
BeatInterval *durationpb.Duration `protobuf:"bytes,21,opt,name=beat_interval,json=beatInterval,proto3" json:"beat_interval,omitempty"` // 心跳间隔时间,单位: 毫秒
|
||
ListenInterval *durationpb.Duration `protobuf:"bytes,22,opt,name=listen_interval,json=listenInterval,proto3" json:"listen_interval,omitempty"` // 心跳间隔时间,单位: 毫秒
|
||
UpdateThreadNum int32 `protobuf:"varint,30,opt,name=update_thread_num,json=updateThreadNum,proto3" json:"update_thread_num,omitempty"` // 更新服务的线程数
|
||
NotLoadCacheAtStart bool `protobuf:"varint,40,opt,name=not_load_cache_at_start,json=notLoadCacheAtStart,proto3" json:"not_load_cache_at_start,omitempty"` // 在启动时不读取本地缓存数据,true: 不读取,false: 读取
|
||
UpdateCacheWhenEmpty bool `protobuf:"varint,41,opt,name=update_cache_when_empty,json=updateCacheWhenEmpty,proto3" json:"update_cache_when_empty,omitempty"` // 当服务列表为空时是否更新本地缓存,true: 更新,false: 不更新
|
||
OpenKms bool `protobuf:"varint,42,opt,name=open_kms,json=openKms,proto3" json:"open_kms,omitempty"` // 是否开启kms加密,true: 开启,false: 关闭
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *Registry_Nacos) Reset() {
|
||
*x = Registry_Nacos{}
|
||
mi := &file_conf_v1_kratos_conf_registry_proto_msgTypes[4]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *Registry_Nacos) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*Registry_Nacos) ProtoMessage() {}
|
||
|
||
func (x *Registry_Nacos) ProtoReflect() protoreflect.Message {
|
||
mi := &file_conf_v1_kratos_conf_registry_proto_msgTypes[4]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use Registry_Nacos.ProtoReflect.Descriptor instead.
|
||
func (*Registry_Nacos) Descriptor() ([]byte, []int) {
|
||
return file_conf_v1_kratos_conf_registry_proto_rawDescGZIP(), []int{0, 3}
|
||
}
|
||
|
||
func (x *Registry_Nacos) GetAddress() string {
|
||
if x != nil {
|
||
return x.Address
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Registry_Nacos) GetPort() uint64 {
|
||
if x != nil {
|
||
return x.Port
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *Registry_Nacos) GetNamespaceId() string {
|
||
if x != nil {
|
||
return x.NamespaceId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Registry_Nacos) GetRegionId() string {
|
||
if x != nil {
|
||
return x.RegionId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Registry_Nacos) GetAppName() string {
|
||
if x != nil {
|
||
return x.AppName
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Registry_Nacos) GetAccessKey() string {
|
||
if x != nil {
|
||
return x.AccessKey
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Registry_Nacos) GetSecretKey() string {
|
||
if x != nil {
|
||
return x.SecretKey
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Registry_Nacos) GetUsername() string {
|
||
if x != nil {
|
||
return x.Username
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Registry_Nacos) GetPassword() string {
|
||
if x != nil {
|
||
return x.Password
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Registry_Nacos) GetLogLevel() string {
|
||
if x != nil {
|
||
return x.LogLevel
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Registry_Nacos) GetLogDir() string {
|
||
if x != nil {
|
||
return x.LogDir
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Registry_Nacos) GetCacheDir() string {
|
||
if x != nil {
|
||
return x.CacheDir
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Registry_Nacos) GetTimeout() *durationpb.Duration {
|
||
if x != nil {
|
||
return x.Timeout
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *Registry_Nacos) GetBeatInterval() *durationpb.Duration {
|
||
if x != nil {
|
||
return x.BeatInterval
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *Registry_Nacos) GetListenInterval() *durationpb.Duration {
|
||
if x != nil {
|
||
return x.ListenInterval
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *Registry_Nacos) GetUpdateThreadNum() int32 {
|
||
if x != nil {
|
||
return x.UpdateThreadNum
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *Registry_Nacos) GetNotLoadCacheAtStart() bool {
|
||
if x != nil {
|
||
return x.NotLoadCacheAtStart
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *Registry_Nacos) GetUpdateCacheWhenEmpty() bool {
|
||
if x != nil {
|
||
return x.UpdateCacheWhenEmpty
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *Registry_Nacos) GetOpenKms() bool {
|
||
if x != nil {
|
||
return x.OpenKms
|
||
}
|
||
return false
|
||
}
|
||
|
||
// Kubernetes
|
||
type Registry_Kubernetes struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *Registry_Kubernetes) Reset() {
|
||
*x = Registry_Kubernetes{}
|
||
mi := &file_conf_v1_kratos_conf_registry_proto_msgTypes[5]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *Registry_Kubernetes) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*Registry_Kubernetes) ProtoMessage() {}
|
||
|
||
func (x *Registry_Kubernetes) ProtoReflect() protoreflect.Message {
|
||
mi := &file_conf_v1_kratos_conf_registry_proto_msgTypes[5]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use Registry_Kubernetes.ProtoReflect.Descriptor instead.
|
||
func (*Registry_Kubernetes) Descriptor() ([]byte, []int) {
|
||
return file_conf_v1_kratos_conf_registry_proto_rawDescGZIP(), []int{0, 4}
|
||
}
|
||
|
||
// Eureka
|
||
type Registry_Eureka struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Endpoints []string `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
|
||
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"`
|
||
Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *Registry_Eureka) Reset() {
|
||
*x = Registry_Eureka{}
|
||
mi := &file_conf_v1_kratos_conf_registry_proto_msgTypes[6]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *Registry_Eureka) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*Registry_Eureka) ProtoMessage() {}
|
||
|
||
func (x *Registry_Eureka) ProtoReflect() protoreflect.Message {
|
||
mi := &file_conf_v1_kratos_conf_registry_proto_msgTypes[6]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use Registry_Eureka.ProtoReflect.Descriptor instead.
|
||
func (*Registry_Eureka) Descriptor() ([]byte, []int) {
|
||
return file_conf_v1_kratos_conf_registry_proto_rawDescGZIP(), []int{0, 5}
|
||
}
|
||
|
||
func (x *Registry_Eureka) GetEndpoints() []string {
|
||
if x != nil {
|
||
return x.Endpoints
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *Registry_Eureka) GetHeartbeatInterval() *durationpb.Duration {
|
||
if x != nil {
|
||
return x.HeartbeatInterval
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *Registry_Eureka) GetRefreshInterval() *durationpb.Duration {
|
||
if x != nil {
|
||
return x.RefreshInterval
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *Registry_Eureka) GetPath() string {
|
||
if x != nil {
|
||
return x.Path
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// Polaris
|
||
type Registry_Polaris struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
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
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *Registry_Polaris) Reset() {
|
||
*x = Registry_Polaris{}
|
||
mi := &file_conf_v1_kratos_conf_registry_proto_msgTypes[7]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *Registry_Polaris) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*Registry_Polaris) ProtoMessage() {}
|
||
|
||
func (x *Registry_Polaris) ProtoReflect() protoreflect.Message {
|
||
mi := &file_conf_v1_kratos_conf_registry_proto_msgTypes[7]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use Registry_Polaris.ProtoReflect.Descriptor instead.
|
||
func (*Registry_Polaris) Descriptor() ([]byte, []int) {
|
||
return file_conf_v1_kratos_conf_registry_proto_rawDescGZIP(), []int{0, 6}
|
||
}
|
||
|
||
func (x *Registry_Polaris) GetAddress() string {
|
||
if x != nil {
|
||
return x.Address
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Registry_Polaris) GetPort() int32 {
|
||
if x != nil {
|
||
return x.Port
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *Registry_Polaris) GetInstanceCount() int32 {
|
||
if x != nil {
|
||
return x.InstanceCount
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *Registry_Polaris) GetNamespace() string {
|
||
if x != nil {
|
||
return x.Namespace
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Registry_Polaris) GetService() string {
|
||
if x != nil {
|
||
return x.Service
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Registry_Polaris) GetToken() string {
|
||
if x != nil {
|
||
return x.Token
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// Servicecomb
|
||
type Registry_Servicecomb struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Endpoints []string `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *Registry_Servicecomb) Reset() {
|
||
*x = Registry_Servicecomb{}
|
||
mi := &file_conf_v1_kratos_conf_registry_proto_msgTypes[8]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *Registry_Servicecomb) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*Registry_Servicecomb) ProtoMessage() {}
|
||
|
||
func (x *Registry_Servicecomb) ProtoReflect() protoreflect.Message {
|
||
mi := &file_conf_v1_kratos_conf_registry_proto_msgTypes[8]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use Registry_Servicecomb.ProtoReflect.Descriptor instead.
|
||
func (*Registry_Servicecomb) Descriptor() ([]byte, []int) {
|
||
return file_conf_v1_kratos_conf_registry_proto_rawDescGZIP(), []int{0, 7}
|
||
}
|
||
|
||
func (x *Registry_Servicecomb) GetEndpoints() []string {
|
||
if x != nil {
|
||
return x.Endpoints
|
||
}
|
||
return nil
|
||
}
|
||
|
||
var File_conf_v1_kratos_conf_registry_proto protoreflect.FileDescriptor
|
||
|
||
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,
|
||
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,
|
||
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, 0xa3, 0x0f, 0x0a, 0x08, 0x52,
|
||
0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18,
|
||
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x32, 0x0a, 0x06, 0x63,
|
||
0x6f, 0x6e, 0x73, 0x75, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x63, 0x6f,
|
||
0x6e, 0x66, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x43, 0x6f, 0x6e, 0x73,
|
||
0x75, 0x6c, 0x48, 0x00, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x73, 0x75, 0x6c, 0x88, 0x01, 0x01, 0x12,
|
||
0x2c, 0x0a, 0x04, 0x65, 0x74, 0x63, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e,
|
||
0x63, 0x6f, 0x6e, 0x66, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x45, 0x74,
|
||
0x63, 0x64, 0x48, 0x01, 0x52, 0x04, 0x65, 0x74, 0x63, 0x64, 0x88, 0x01, 0x01, 0x12, 0x3b, 0x0a,
|
||
0x09, 0x7a, 0x6f, 0x6f, 0x6b, 0x65, 0x65, 0x70, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b,
|
||
0x32, 0x18, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79,
|
||
0x2e, 0x5a, 0x6f, 0x6f, 0x4b, 0x65, 0x65, 0x70, 0x65, 0x72, 0x48, 0x02, 0x52, 0x09, 0x7a, 0x6f,
|
||
0x6f, 0x6b, 0x65, 0x65, 0x70, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x2f, 0x0a, 0x05, 0x6e, 0x61,
|
||
0x63, 0x6f, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x63, 0x6f, 0x6e, 0x66,
|
||
0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x4e, 0x61, 0x63, 0x6f, 0x73, 0x48,
|
||
0x03, 0x52, 0x05, 0x6e, 0x61, 0x63, 0x6f, 0x73, 0x88, 0x01, 0x01, 0x12, 0x3e, 0x0a, 0x0a, 0x6b,
|
||
0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||
0x19, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e,
|
||
0x4b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x48, 0x04, 0x52, 0x0a, 0x6b, 0x75,
|
||
0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x88, 0x01, 0x01, 0x12, 0x32, 0x0a, 0x06, 0x65,
|
||
0x75, 0x72, 0x65, 0x6b, 0x61, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x63, 0x6f,
|
||
0x6e, 0x66, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x45, 0x75, 0x72, 0x65,
|
||
0x6b, 0x61, 0x48, 0x05, 0x52, 0x06, 0x65, 0x75, 0x72, 0x65, 0x6b, 0x61, 0x88, 0x01, 0x01, 0x12,
|
||
0x35, 0x0a, 0x07, 0x70, 0x6f, 0x6c, 0x61, 0x72, 0x69, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b,
|
||
0x32, 0x16, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79,
|
||
0x2e, 0x50, 0x6f, 0x6c, 0x61, 0x72, 0x69, 0x73, 0x48, 0x06, 0x52, 0x07, 0x70, 0x6f, 0x6c, 0x61,
|
||
0x72, 0x69, 0x73, 0x88, 0x01, 0x01, 0x12, 0x41, 0x0a, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
|
||
0x65, 0x63, 0x6f, 0x6d, 0x62, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x6f,
|
||
0x6e, 0x66, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x53, 0x65, 0x72, 0x76,
|
||
0x69, 0x63, 0x65, 0x63, 0x6f, 0x6d, 0x62, 0x48, 0x07, 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69,
|
||
0x63, 0x65, 0x63, 0x6f, 0x6d, 0x62, 0x88, 0x01, 0x01, 0x1a, 0x5d, 0x0a, 0x06, 0x43, 0x6f, 0x6e,
|
||
0x73, 0x75, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x65, 0x18, 0x01, 0x20,
|
||
0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61,
|
||
0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64,
|
||
0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x5f,
|
||
0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x68, 0x65, 0x61,
|
||
0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x1a, 0x24, 0x0a, 0x04, 0x45, 0x74, 0x63, 0x64,
|
||
0x12, 0x1c, 0x0a, 0x09, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20,
|
||
0x03, 0x28, 0x09, 0x52, 0x09, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x1a, 0x5e,
|
||
0x0a, 0x09, 0x5a, 0x6f, 0x6f, 0x4b, 0x65, 0x65, 0x70, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x65,
|
||
0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09,
|
||
0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x33, 0x0a, 0x07, 0x74, 0x69, 0x6d,
|
||
0x65, 0x6f, 0x75, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f,
|
||
0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72,
|
||
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x1a, 0xc6,
|
||
0x05, 0x0a, 0x05, 0x4e, 0x61, 0x63, 0x6f, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72,
|
||
0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65,
|
||
0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04,
|
||
0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70,
|
||
0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6e, 0x61,
|
||
0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67,
|
||
0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65,
|
||
0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x70, 0x70, 0x5f, 0x6e, 0x61,
|
||
0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x70, 0x70, 0x4e, 0x61, 0x6d,
|
||
0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18,
|
||
0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79,
|
||
0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x07,
|
||
0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x12,
|
||
0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28,
|
||
0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70,
|
||
0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70,
|
||
0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x5f, 0x6c,
|
||
0x65, 0x76, 0x65, 0x6c, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x6f, 0x67, 0x4c,
|
||
0x65, 0x76, 0x65, 0x6c, 0x12, 0x17, 0x0a, 0x07, 0x6c, 0x6f, 0x67, 0x5f, 0x64, 0x69, 0x72, 0x18,
|
||
0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6c, 0x6f, 0x67, 0x44, 0x69, 0x72, 0x12, 0x1b, 0x0a,
|
||
0x09, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x64, 0x69, 0x72, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09,
|
||
0x52, 0x08, 0x63, 0x61, 0x63, 0x68, 0x65, 0x44, 0x69, 0x72, 0x12, 0x33, 0x0a, 0x07, 0x74, 0x69,
|
||
0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f,
|
||
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75,
|
||
0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12,
|
||
0x3e, 0x0a, 0x0d, 0x62, 0x65, 0x61, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c,
|
||
0x18, 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
|
||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f,
|
||
0x6e, 0x52, 0x0c, 0x62, 0x65, 0x61, 0x74, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12,
|
||
0x42, 0x0a, 0x0f, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76,
|
||
0x61, 0x6c, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
|
||
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74,
|
||
0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x49, 0x6e, 0x74, 0x65, 0x72,
|
||
0x76, 0x61, 0x6c, 0x12, 0x2a, 0x0a, 0x11, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x68,
|
||
0x72, 0x65, 0x61, 0x64, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f,
|
||
0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x4e, 0x75, 0x6d, 0x12,
|
||
0x34, 0x0a, 0x17, 0x6e, 0x6f, 0x74, 0x5f, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x63, 0x61, 0x63, 0x68,
|
||
0x65, 0x5f, 0x61, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x28, 0x20, 0x01, 0x28, 0x08,
|
||
0x52, 0x13, 0x6e, 0x6f, 0x74, 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x61, 0x63, 0x68, 0x65, 0x41, 0x74,
|
||
0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x35, 0x0a, 0x17, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f,
|
||
0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x77, 0x68, 0x65, 0x6e, 0x5f, 0x65, 0x6d, 0x70, 0x74, 0x79,
|
||
0x18, 0x29, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x61,
|
||
0x63, 0x68, 0x65, 0x57, 0x68, 0x65, 0x6e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x19, 0x0a, 0x08,
|
||
0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x6b, 0x6d, 0x73, 0x18, 0x2a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07,
|
||
0x6f, 0x70, 0x65, 0x6e, 0x4b, 0x6d, 0x73, 0x1a, 0x0c, 0x0a, 0x0a, 0x4b, 0x75, 0x62, 0x65, 0x72,
|
||
0x6e, 0x65, 0x74, 0x65, 0x73, 0x1a, 0xca, 0x01, 0x0a, 0x06, 0x45, 0x75, 0x72, 0x65, 0x6b, 0x61,
|
||
0x12, 0x1c, 0x0a, 0x09, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20,
|
||
0x03, 0x28, 0x09, 0x52, 0x09, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x48,
|
||
0x0a, 0x12, 0x68, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x65,
|
||
0x72, 0x76, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f,
|
||
0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72,
|
||
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x68, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74,
|
||
0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x44, 0x0a, 0x10, 0x72, 0x65, 0x66, 0x72,
|
||
0x65, 0x73, 0x68, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01,
|
||
0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
||
0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x72,
|
||
0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x12,
|
||
0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61,
|
||
0x74, 0x68, 0x1a, 0xac, 0x01, 0x0a, 0x07, 0x50, 0x6f, 0x6c, 0x61, 0x72, 0x69, 0x73, 0x12, 0x18,
|
||
0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||
0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74,
|
||
0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x25, 0x0a, 0x0e,
|
||
0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03,
|
||
0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x43, 0x6f,
|
||
0x75, 0x6e, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65,
|
||
0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63,
|
||
0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01,
|
||
0x28, 0x09, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74,
|
||
0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65,
|
||
0x6e, 0x1a, 0x2b, 0x0a, 0x0b, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x63, 0x6f, 0x6d, 0x62,
|
||
0x12, 0x1c, 0x0a, 0x09, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20,
|
||
0x03, 0x28, 0x09, 0x52, 0x09, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x42, 0x09,
|
||
0x0a, 0x07, 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x75, 0x6c, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x65, 0x74,
|
||
0x63, 0x64, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x7a, 0x6f, 0x6f, 0x6b, 0x65, 0x65, 0x70, 0x65, 0x72,
|
||
0x42, 0x08, 0x0a, 0x06, 0x5f, 0x6e, 0x61, 0x63, 0x6f, 0x73, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x6b,
|
||
0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x65, 0x75,
|
||
0x72, 0x65, 0x6b, 0x61, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x70, 0x6f, 0x6c, 0x61, 0x72, 0x69, 0x73,
|
||
0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x63, 0x6f, 0x6d, 0x62,
|
||
0x42, 0x89, 0x01, 0x0a, 0x08, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x42, 0x17, 0x4b,
|
||
0x72, 0x61, 0x74, 0x6f, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72,
|
||
0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
|
||
0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x78, 0x37, 0x64, 0x6f, 0x2f, 0x6b, 0x72, 0x61, 0x74, 0x6f,
|
||
0x73, 0x2d, 0x62, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x2f, 0x61, 0x70, 0x69, 0x2f,
|
||
0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x2f, 0x76, 0x31, 0xa2, 0x02,
|
||
0x03, 0x43, 0x58, 0x58, 0xaa, 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 (
|
||
file_conf_v1_kratos_conf_registry_proto_rawDescOnce sync.Once
|
||
file_conf_v1_kratos_conf_registry_proto_rawDescData []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_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
|
||
}
|
||
|
||
var file_conf_v1_kratos_conf_registry_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
||
var file_conf_v1_kratos_conf_registry_proto_goTypes = []any{
|
||
(*Registry)(nil), // 0: conf.Registry
|
||
(*Registry_Consul)(nil), // 1: conf.Registry.Consul
|
||
(*Registry_Etcd)(nil), // 2: conf.Registry.Etcd
|
||
(*Registry_ZooKeeper)(nil), // 3: conf.Registry.ZooKeeper
|
||
(*Registry_Nacos)(nil), // 4: conf.Registry.Nacos
|
||
(*Registry_Kubernetes)(nil), // 5: conf.Registry.Kubernetes
|
||
(*Registry_Eureka)(nil), // 6: conf.Registry.Eureka
|
||
(*Registry_Polaris)(nil), // 7: conf.Registry.Polaris
|
||
(*Registry_Servicecomb)(nil), // 8: conf.Registry.Servicecomb
|
||
(*durationpb.Duration)(nil), // 9: google.protobuf.Duration
|
||
}
|
||
var file_conf_v1_kratos_conf_registry_proto_depIdxs = []int32{
|
||
1, // 0: conf.Registry.consul:type_name -> conf.Registry.Consul
|
||
2, // 1: conf.Registry.etcd:type_name -> conf.Registry.Etcd
|
||
3, // 2: conf.Registry.zookeeper:type_name -> conf.Registry.ZooKeeper
|
||
4, // 3: conf.Registry.nacos:type_name -> conf.Registry.Nacos
|
||
5, // 4: conf.Registry.kubernetes:type_name -> conf.Registry.Kubernetes
|
||
6, // 5: conf.Registry.eureka:type_name -> conf.Registry.Eureka
|
||
7, // 6: conf.Registry.polaris:type_name -> conf.Registry.Polaris
|
||
8, // 7: conf.Registry.servicecomb:type_name -> conf.Registry.Servicecomb
|
||
9, // 8: conf.Registry.ZooKeeper.timeout:type_name -> google.protobuf.Duration
|
||
9, // 9: conf.Registry.Nacos.timeout:type_name -> google.protobuf.Duration
|
||
9, // 10: conf.Registry.Nacos.beat_interval:type_name -> google.protobuf.Duration
|
||
9, // 11: conf.Registry.Nacos.listen_interval:type_name -> google.protobuf.Duration
|
||
9, // 12: conf.Registry.Eureka.heartbeat_interval:type_name -> google.protobuf.Duration
|
||
9, // 13: conf.Registry.Eureka.refresh_interval:type_name -> google.protobuf.Duration
|
||
14, // [14:14] is the sub-list for method output_type
|
||
14, // [14:14] is the sub-list for method input_type
|
||
14, // [14:14] is the sub-list for extension type_name
|
||
14, // [14:14] is the sub-list for extension extendee
|
||
0, // [0:14] is the sub-list for field type_name
|
||
}
|
||
|
||
func init() { file_conf_v1_kratos_conf_registry_proto_init() }
|
||
func file_conf_v1_kratos_conf_registry_proto_init() {
|
||
if File_conf_v1_kratos_conf_registry_proto != nil {
|
||
return
|
||
}
|
||
file_conf_v1_kratos_conf_registry_proto_msgTypes[0].OneofWrappers = []any{}
|
||
type x struct{}
|
||
out := protoimpl.TypeBuilder{
|
||
File: protoimpl.DescBuilder{
|
||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_conf_v1_kratos_conf_registry_proto_rawDesc), len(file_conf_v1_kratos_conf_registry_proto_rawDesc)),
|
||
NumEnums: 0,
|
||
NumMessages: 9,
|
||
NumExtensions: 0,
|
||
NumServices: 0,
|
||
},
|
||
GoTypes: file_conf_v1_kratos_conf_registry_proto_goTypes,
|
||
DependencyIndexes: file_conf_v1_kratos_conf_registry_proto_depIdxs,
|
||
MessageInfos: file_conf_v1_kratos_conf_registry_proto_msgTypes,
|
||
}.Build()
|
||
File_conf_v1_kratos_conf_registry_proto = out.File
|
||
file_conf_v1_kratos_conf_registry_proto_goTypes = nil
|
||
file_conf_v1_kratos_conf_registry_proto_depIdxs = nil
|
||
}
|