Documentation ¶
Index ¶
- Variables
- type ConfigCenterInfo
- func (*ConfigCenterInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigCenterInfo) GetFormat() string
- func (x *ConfigCenterInfo) GetPathPrefix() string
- func (x *ConfigCenterInfo) GetPaths() []string
- func (*ConfigCenterInfo) ProtoMessage()
- func (x *ConfigCenterInfo) ProtoReflect() protoreflect.Message
- func (x *ConfigCenterInfo) Reset()
- func (x *ConfigCenterInfo) String() string
- func (m *ConfigCenterInfo) Validate() error
- func (m *ConfigCenterInfo) ValidateAll() error
- type ConfigCenterInfoMultiError
- type ConfigCenterInfoValidationError
- func (e ConfigCenterInfoValidationError) Cause() error
- func (e ConfigCenterInfoValidationError) Error() string
- func (e ConfigCenterInfoValidationError) ErrorName() string
- func (e ConfigCenterInfoValidationError) Field() string
- func (e ConfigCenterInfoValidationError) Key() bool
- func (e ConfigCenterInfoValidationError) Reason() string
- type Registry
- func (*Registry) Descriptor() ([]byte, []int)deprecated
- func (x *Registry) GetConfigCenter() *ConfigCenterInfo
- func (x *Registry) GetConsul() *RegistryInfo
- func (x *Registry) GetEtcd() *RegistryInfo
- func (m *Registry) GetReg() isRegistry_Reg
- func (*Registry) ProtoMessage()
- func (x *Registry) ProtoReflect() protoreflect.Message
- func (x *Registry) Reset()
- func (x *Registry) String() string
- func (m *Registry) Validate() error
- func (m *Registry) ValidateAll() error
- type RegistryInfo
- func (*RegistryInfo) Descriptor() ([]byte, []int)deprecated
- func (x *RegistryInfo) GetAddr() []string
- func (x *RegistryInfo) GetDialKeepAliveTimeSec() *durationpb.Duration
- func (x *RegistryInfo) GetDialKeepAliveTimeoutSec() *durationpb.Duration
- func (x *RegistryInfo) GetDialTimeoutSec() *durationpb.Duration
- func (x *RegistryInfo) GetScheme() string
- func (*RegistryInfo) ProtoMessage()
- func (x *RegistryInfo) ProtoReflect() protoreflect.Message
- func (x *RegistryInfo) Reset()
- func (x *RegistryInfo) String() string
- func (m *RegistryInfo) Validate() error
- func (m *RegistryInfo) ValidateAll() error
- type RegistryInfoMultiError
- type RegistryInfoValidationError
- func (e RegistryInfoValidationError) Cause() error
- func (e RegistryInfoValidationError) Error() string
- func (e RegistryInfoValidationError) ErrorName() string
- func (e RegistryInfoValidationError) Field() string
- func (e RegistryInfoValidationError) Key() bool
- func (e RegistryInfoValidationError) Reason() string
- type RegistryMultiError
- type RegistryValidationError
- type Registry_Consul
- type Registry_Etcd
Constants ¶
This section is empty.
Variables ¶
var File_config_registry_v1_registry_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ConfigCenterInfo ¶
type ConfigCenterInfo struct { // PathPrefix is prefix key of config center. PathPrefix string `protobuf:"bytes,1,opt,name=path_prefix,json=pathPrefix,proto3" json:"path_prefix,omitempty"` // Paths is config paths of config center. Paths []string `protobuf:"bytes,2,rep,name=paths,proto3" json:"paths,omitempty"` // Format is config format of config center. Format string `protobuf:"bytes,3,opt,name=format,proto3" json:"format,omitempty"` // contains filtered or unexported fields }
func (*ConfigCenterInfo) Descriptor
deprecated
func (*ConfigCenterInfo) Descriptor() ([]byte, []int)
Deprecated: Use ConfigCenterInfo.ProtoReflect.Descriptor instead.
func (*ConfigCenterInfo) GetFormat ¶
func (x *ConfigCenterInfo) GetFormat() string
func (*ConfigCenterInfo) GetPathPrefix ¶
func (x *ConfigCenterInfo) GetPathPrefix() string
func (*ConfigCenterInfo) GetPaths ¶
func (x *ConfigCenterInfo) GetPaths() []string
func (*ConfigCenterInfo) ProtoMessage ¶
func (*ConfigCenterInfo) ProtoMessage()
func (*ConfigCenterInfo) ProtoReflect ¶
func (x *ConfigCenterInfo) ProtoReflect() protoreflect.Message
func (*ConfigCenterInfo) Reset ¶
func (x *ConfigCenterInfo) Reset()
func (*ConfigCenterInfo) String ¶
func (x *ConfigCenterInfo) String() string
func (*ConfigCenterInfo) Validate ¶
func (m *ConfigCenterInfo) Validate() error
Validate checks the field values on ConfigCenterInfo with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ConfigCenterInfo) ValidateAll ¶
func (m *ConfigCenterInfo) ValidateAll() error
ValidateAll checks the field values on ConfigCenterInfo with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConfigCenterInfoMultiError, or nil if none found.
type ConfigCenterInfoMultiError ¶
type ConfigCenterInfoMultiError []error
ConfigCenterInfoMultiError is an error wrapping multiple validation errors returned by ConfigCenterInfo.ValidateAll() if the designated constraints aren't met.
func (ConfigCenterInfoMultiError) AllErrors ¶
func (m ConfigCenterInfoMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ConfigCenterInfoMultiError) Error ¶
func (m ConfigCenterInfoMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ConfigCenterInfoValidationError ¶
type ConfigCenterInfoValidationError struct {
// contains filtered or unexported fields
}
ConfigCenterInfoValidationError is the validation error returned by ConfigCenterInfo.Validate if the designated constraints aren't met.
func (ConfigCenterInfoValidationError) Cause ¶
func (e ConfigCenterInfoValidationError) Cause() error
Cause function returns cause value.
func (ConfigCenterInfoValidationError) Error ¶
func (e ConfigCenterInfoValidationError) Error() string
Error satisfies the builtin error interface
func (ConfigCenterInfoValidationError) ErrorName ¶
func (e ConfigCenterInfoValidationError) ErrorName() string
ErrorName returns error name.
func (ConfigCenterInfoValidationError) Field ¶
func (e ConfigCenterInfoValidationError) Field() string
Field function returns field value.
func (ConfigCenterInfoValidationError) Key ¶
func (e ConfigCenterInfoValidationError) Key() bool
Key function returns key value.
func (ConfigCenterInfoValidationError) Reason ¶
func (e ConfigCenterInfoValidationError) Reason() string
Reason function returns reason value.
type Registry ¶
type Registry struct { ConfigCenter *ConfigCenterInfo `protobuf:"bytes,1,opt,name=config_center,json=configCenter,proto3" json:"config_center,omitempty"` // Types that are assignable to Reg: // *Registry_Consul // *Registry_Etcd Reg isRegistry_Reg `protobuf_oneof:"reg"` // contains filtered or unexported fields }
func (*Registry) Descriptor
deprecated
func (*Registry) GetConfigCenter ¶
func (x *Registry) GetConfigCenter() *ConfigCenterInfo
func (*Registry) GetConsul ¶
func (x *Registry) GetConsul() *RegistryInfo
func (*Registry) GetEtcd ¶
func (x *Registry) GetEtcd() *RegistryInfo
func (*Registry) ProtoMessage ¶
func (*Registry) ProtoMessage()
func (*Registry) ProtoReflect ¶
func (x *Registry) ProtoReflect() protoreflect.Message
func (*Registry) Validate ¶
Validate checks the field values on Registry with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Registry) ValidateAll ¶
ValidateAll checks the field values on Registry with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RegistryMultiError, or nil if none found.
type RegistryInfo ¶
type RegistryInfo struct { Addr []string `protobuf:"bytes,1,rep,name=addr,proto3" json:"addr,omitempty"` Scheme string `protobuf:"bytes,2,opt,name=scheme,proto3" json:"scheme,omitempty"` // range [10ms, 10s] DialTimeoutSec *durationpb.Duration `protobuf:"bytes,3,opt,name=dial_timeout_sec,json=dialTimeoutSec,proto3" json:"dial_timeout_sec,omitempty"` DialKeepAliveTimeSec *durationpb.Duration `` /* 127-byte string literal not displayed */ DialKeepAliveTimeoutSec *durationpb.Duration `` /* 136-byte string literal not displayed */ // contains filtered or unexported fields }
func (*RegistryInfo) Descriptor
deprecated
func (*RegistryInfo) Descriptor() ([]byte, []int)
Deprecated: Use RegistryInfo.ProtoReflect.Descriptor instead.
func (*RegistryInfo) GetAddr ¶
func (x *RegistryInfo) GetAddr() []string
func (*RegistryInfo) GetDialKeepAliveTimeSec ¶
func (x *RegistryInfo) GetDialKeepAliveTimeSec() *durationpb.Duration
func (*RegistryInfo) GetDialKeepAliveTimeoutSec ¶
func (x *RegistryInfo) GetDialKeepAliveTimeoutSec() *durationpb.Duration
func (*RegistryInfo) GetDialTimeoutSec ¶
func (x *RegistryInfo) GetDialTimeoutSec() *durationpb.Duration
func (*RegistryInfo) GetScheme ¶
func (x *RegistryInfo) GetScheme() string
func (*RegistryInfo) ProtoMessage ¶
func (*RegistryInfo) ProtoMessage()
func (*RegistryInfo) ProtoReflect ¶
func (x *RegistryInfo) ProtoReflect() protoreflect.Message
func (*RegistryInfo) Reset ¶
func (x *RegistryInfo) Reset()
func (*RegistryInfo) String ¶
func (x *RegistryInfo) String() string
func (*RegistryInfo) Validate ¶
func (m *RegistryInfo) Validate() error
Validate checks the field values on RegistryInfo with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RegistryInfo) ValidateAll ¶
func (m *RegistryInfo) ValidateAll() error
ValidateAll checks the field values on RegistryInfo with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RegistryInfoMultiError, or nil if none found.
type RegistryInfoMultiError ¶
type RegistryInfoMultiError []error
RegistryInfoMultiError is an error wrapping multiple validation errors returned by RegistryInfo.ValidateAll() if the designated constraints aren't met.
func (RegistryInfoMultiError) AllErrors ¶
func (m RegistryInfoMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RegistryInfoMultiError) Error ¶
func (m RegistryInfoMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RegistryInfoValidationError ¶
type RegistryInfoValidationError struct {
// contains filtered or unexported fields
}
RegistryInfoValidationError is the validation error returned by RegistryInfo.Validate if the designated constraints aren't met.
func (RegistryInfoValidationError) Cause ¶
func (e RegistryInfoValidationError) Cause() error
Cause function returns cause value.
func (RegistryInfoValidationError) Error ¶
func (e RegistryInfoValidationError) Error() string
Error satisfies the builtin error interface
func (RegistryInfoValidationError) ErrorName ¶
func (e RegistryInfoValidationError) ErrorName() string
ErrorName returns error name.
func (RegistryInfoValidationError) Field ¶
func (e RegistryInfoValidationError) Field() string
Field function returns field value.
func (RegistryInfoValidationError) Key ¶
func (e RegistryInfoValidationError) Key() bool
Key function returns key value.
func (RegistryInfoValidationError) Reason ¶
func (e RegistryInfoValidationError) Reason() string
Reason function returns reason value.
type RegistryMultiError ¶
type RegistryMultiError []error
RegistryMultiError is an error wrapping multiple validation errors returned by Registry.ValidateAll() if the designated constraints aren't met.
func (RegistryMultiError) AllErrors ¶
func (m RegistryMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RegistryMultiError) Error ¶
func (m RegistryMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RegistryValidationError ¶
type RegistryValidationError struct {
// contains filtered or unexported fields
}
RegistryValidationError is the validation error returned by Registry.Validate if the designated constraints aren't met.
func (RegistryValidationError) Cause ¶
func (e RegistryValidationError) Cause() error
Cause function returns cause value.
func (RegistryValidationError) Error ¶
func (e RegistryValidationError) Error() string
Error satisfies the builtin error interface
func (RegistryValidationError) ErrorName ¶
func (e RegistryValidationError) ErrorName() string
ErrorName returns error name.
func (RegistryValidationError) Field ¶
func (e RegistryValidationError) Field() string
Field function returns field value.
func (RegistryValidationError) Key ¶
func (e RegistryValidationError) Key() bool
Key function returns key value.
func (RegistryValidationError) Reason ¶
func (e RegistryValidationError) Reason() string
Reason function returns reason value.
type Registry_Consul ¶
type Registry_Consul struct {
Consul *RegistryInfo `protobuf:"bytes,2,opt,name=consul,proto3,oneof"`
}
type Registry_Etcd ¶
type Registry_Etcd struct {
Etcd *RegistryInfo `protobuf:"bytes,3,opt,name=etcd,proto3,oneof"`
}