Documentation
¶
Index ¶
- Variables
- type Apollo
- type ApolloMultiError
- type ApolloValidationError
- type Consul
- func (*Consul) Descriptor() ([]byte, []int)deprecated
- func (x *Consul) GetAddress() string
- func (x *Consul) GetDatacenter() string
- func (x *Consul) GetDeregisterCriticalServiceAfter() uint32
- func (x *Consul) GetHealthCheck() bool
- func (x *Consul) GetHealthCheckInterval() uint32
- func (x *Consul) GetHeartBeat() bool
- func (x *Consul) GetScheme() string
- func (x *Consul) GetTimeout() int64
- func (x *Consul) GetToken() string
- func (*Consul) ProtoMessage()
- func (x *Consul) ProtoReflect() protoreflect.Message
- func (x *Consul) Reset()
- func (x *Consul) String() string
- func (m *Consul) Validate() error
- func (m *Consul) ValidateAll() error
- type ConsulMultiError
- type ConsulValidationError
- type Discoveries
- func (*Discoveries) Descriptor() ([]byte, []int)deprecated
- func (x *Discoveries) GetDefaultRegistryName() string
- func (x *Discoveries) GetDiscoveries() []*Discovery
- func (*Discoveries) ProtoMessage()
- func (x *Discoveries) ProtoReflect() protoreflect.Message
- func (x *Discoveries) Reset()
- func (x *Discoveries) String() string
- func (m *Discoveries) Validate() error
- func (m *Discoveries) ValidateAll() error
- type DiscoveriesMultiError
- type DiscoveriesValidationError
- func (e DiscoveriesValidationError) Cause() error
- func (e DiscoveriesValidationError) Error() string
- func (e DiscoveriesValidationError) ErrorName() string
- func (e DiscoveriesValidationError) Field() string
- func (e DiscoveriesValidationError) Key() bool
- func (e DiscoveriesValidationError) Reason() string
- type Discovery
- func (*Discovery) Descriptor() ([]byte, []int)deprecated
- func (x *Discovery) GetApollo() *Apollo
- func (x *Discovery) GetConsul() *Consul
- func (x *Discovery) GetCustomize() *v1.Extension
- func (x *Discovery) GetDebug() bool
- func (x *Discovery) GetEtcd() *ETCD
- func (x *Discovery) GetKubernetes() *Kubernetes
- func (x *Discovery) GetNacos() *Nacos
- func (x *Discovery) GetName() string
- func (x *Discovery) GetPolaris() *Polaris
- func (x *Discovery) GetType() string
- func (*Discovery) ProtoMessage()
- func (x *Discovery) ProtoReflect() protoreflect.Message
- func (x *Discovery) Reset()
- func (x *Discovery) String() string
- func (m *Discovery) Validate() error
- func (m *Discovery) ValidateAll() error
- type DiscoveryMultiError
- type DiscoveryValidationError
- type ETCD
- type ETCDMultiError
- type ETCDValidationError
- type Endpointdeprecated
- func (*Endpoint) Descriptor() ([]byte, []int)deprecated
- func (x *Endpoint) GetDiscoveryName() string
- func (x *Endpoint) GetName() string
- func (x *Endpoint) GetSelector() *Selector
- func (x *Endpoint) GetUri() string
- func (*Endpoint) ProtoMessage()
- func (x *Endpoint) ProtoReflect() protoreflect.Message
- func (x *Endpoint) Reset()
- func (x *Endpoint) String() string
- func (m *Endpoint) Validate() error
- func (m *Endpoint) ValidateAll() error
- type EndpointMultiError
- type EndpointValidationError
- type Kubernetes
- type KubernetesMultiError
- type KubernetesValidationError
- type Nacos
- type NacosMultiError
- type NacosValidationError
- type Polaris
- type PolarisMultiError
- type PolarisValidationError
- type Selectordeprecated
- func (*Selector) Descriptor() ([]byte, []int)deprecated
- func (x *Selector) GetType() string
- func (x *Selector) GetVersion() string
- func (*Selector) ProtoMessage()
- func (x *Selector) ProtoReflect() protoreflect.Message
- func (x *Selector) Reset()
- func (x *Selector) String() string
- func (m *Selector) Validate() error
- func (m *Selector) ValidateAll() error
- type SelectorMultiError
- type SelectorValidationError
Constants ¶
This section is empty.
Variables ¶
var File_runtime_discovery_v1_discovery_proto protoreflect.FileDescriptor
var File_runtime_discovery_v1_endpoint_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Apollo ¶
type Apollo struct {
// contains filtered or unexported fields
}
Apollo provider specific configuration (placeholder).
func (*Apollo) Descriptor
deprecated
func (*Apollo) ProtoMessage ¶
func (*Apollo) ProtoMessage()
func (*Apollo) ProtoReflect ¶
func (x *Apollo) ProtoReflect() protoreflect.Message
func (*Apollo) Validate ¶
Validate checks the field values on Apollo 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 (*Apollo) ValidateAll ¶
ValidateAll checks the field values on Apollo 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 ApolloMultiError, or nil if none found.
type ApolloMultiError ¶
type ApolloMultiError []error
ApolloMultiError is an error wrapping multiple validation errors returned by Apollo.ValidateAll() if the designated constraints aren't met.
func (ApolloMultiError) AllErrors ¶
func (m ApolloMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ApolloMultiError) Error ¶
func (m ApolloMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ApolloValidationError ¶
type ApolloValidationError struct {
// contains filtered or unexported fields
}
ApolloValidationError is the validation error returned by Apollo.Validate if the designated constraints aren't met.
func (ApolloValidationError) Cause ¶
func (e ApolloValidationError) Cause() error
Cause function returns cause value.
func (ApolloValidationError) Error ¶
func (e ApolloValidationError) Error() string
Error satisfies the builtin error interface
func (ApolloValidationError) ErrorName ¶
func (e ApolloValidationError) ErrorName() string
ErrorName returns error name.
func (ApolloValidationError) Field ¶
func (e ApolloValidationError) Field() string
Field function returns field value.
func (ApolloValidationError) Key ¶
func (e ApolloValidationError) Key() bool
Key function returns key value.
func (ApolloValidationError) Reason ¶
func (e ApolloValidationError) Reason() string
Reason function returns reason value.
type Consul ¶
type Consul struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
Scheme string `protobuf:"bytes,2,opt,name=scheme,proto3" json:"scheme,omitempty"`
Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`
HeartBeat bool `protobuf:"varint,4,opt,name=heart_beat,json=heartBeat,proto3" json:"heart_beat,omitempty"`
HealthCheck bool `protobuf:"varint,5,opt,name=health_check,json=healthCheck,proto3" json:"health_check,omitempty"`
Datacenter string `protobuf:"bytes,6,opt,name=datacenter,proto3" json:"datacenter,omitempty"`
HealthCheckInterval uint32 `protobuf:"varint,8,opt,name=health_check_interval,json=healthCheckInterval,proto3" json:"health_check_interval,omitempty"`
Timeout int64 `protobuf:"varint,10,opt,name=timeout,proto3" json:"timeout,omitempty"`
DeregisterCriticalServiceAfter uint32 `` /* 157-byte string literal not displayed */
// contains filtered or unexported fields
}
Consul provider specific configuration.
func (*Consul) Descriptor
deprecated
func (*Consul) GetAddress ¶
func (*Consul) GetDatacenter ¶
func (*Consul) GetDeregisterCriticalServiceAfter ¶
func (*Consul) GetHealthCheck ¶
func (*Consul) GetHealthCheckInterval ¶
func (*Consul) GetHeartBeat ¶
func (*Consul) GetTimeout ¶
func (*Consul) ProtoMessage ¶
func (*Consul) ProtoMessage()
func (*Consul) ProtoReflect ¶
func (x *Consul) ProtoReflect() protoreflect.Message
func (*Consul) Validate ¶
Validate checks the field values on Consul 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 (*Consul) ValidateAll ¶
ValidateAll checks the field values on Consul 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 ConsulMultiError, or nil if none found.
type ConsulMultiError ¶
type ConsulMultiError []error
ConsulMultiError is an error wrapping multiple validation errors returned by Consul.ValidateAll() if the designated constraints aren't met.
func (ConsulMultiError) AllErrors ¶
func (m ConsulMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ConsulMultiError) Error ¶
func (m ConsulMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ConsulValidationError ¶
type ConsulValidationError struct {
// contains filtered or unexported fields
}
ConsulValidationError is the validation error returned by Consul.Validate if the designated constraints aren't met.
func (ConsulValidationError) Cause ¶
func (e ConsulValidationError) Cause() error
Cause function returns cause value.
func (ConsulValidationError) Error ¶
func (e ConsulValidationError) Error() string
Error satisfies the builtin error interface
func (ConsulValidationError) ErrorName ¶
func (e ConsulValidationError) ErrorName() string
ErrorName returns error name.
func (ConsulValidationError) Field ¶
func (e ConsulValidationError) Field() string
Field function returns field value.
func (ConsulValidationError) Key ¶
func (e ConsulValidationError) Key() bool
Key function returns key value.
func (ConsulValidationError) Reason ¶
func (e ConsulValidationError) Reason() string
Reason function returns reason value.
type Discoveries ¶ added in v0.2.7
type Discoveries struct {
DefaultRegistryName string `protobuf:"bytes,1,opt,name=default_registry_name,proto3" json:"default_registry_name,omitempty"`
Discoveries []*Discovery `protobuf:"bytes,2,rep,name=discoveries,proto3" json:"discoveries,omitempty"`
// contains filtered or unexported fields
}
func (*Discoveries) Descriptor
deprecated
added in
v0.2.7
func (*Discoveries) Descriptor() ([]byte, []int)
Deprecated: Use Discoveries.ProtoReflect.Descriptor instead.
func (*Discoveries) GetDefaultRegistryName ¶ added in v0.2.7
func (x *Discoveries) GetDefaultRegistryName() string
func (*Discoveries) GetDiscoveries ¶ added in v0.2.7
func (x *Discoveries) GetDiscoveries() []*Discovery
func (*Discoveries) ProtoMessage ¶ added in v0.2.7
func (*Discoveries) ProtoMessage()
func (*Discoveries) ProtoReflect ¶ added in v0.2.7
func (x *Discoveries) ProtoReflect() protoreflect.Message
func (*Discoveries) Reset ¶ added in v0.2.7
func (x *Discoveries) Reset()
func (*Discoveries) String ¶ added in v0.2.7
func (x *Discoveries) String() string
func (*Discoveries) Validate ¶ added in v0.2.7
func (m *Discoveries) Validate() error
Validate checks the field values on Discoveries 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 (*Discoveries) ValidateAll ¶ added in v0.2.7
func (m *Discoveries) ValidateAll() error
ValidateAll checks the field values on Discoveries 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 DiscoveriesMultiError, or nil if none found.
type DiscoveriesMultiError ¶ added in v0.2.7
type DiscoveriesMultiError []error
DiscoveriesMultiError is an error wrapping multiple validation errors returned by Discoveries.ValidateAll() if the designated constraints aren't met.
func (DiscoveriesMultiError) AllErrors ¶ added in v0.2.7
func (m DiscoveriesMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DiscoveriesMultiError) Error ¶ added in v0.2.7
func (m DiscoveriesMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DiscoveriesValidationError ¶ added in v0.2.7
type DiscoveriesValidationError struct {
// contains filtered or unexported fields
}
DiscoveriesValidationError is the validation error returned by Discoveries.Validate if the designated constraints aren't met.
func (DiscoveriesValidationError) Cause ¶ added in v0.2.7
func (e DiscoveriesValidationError) Cause() error
Cause function returns cause value.
func (DiscoveriesValidationError) Error ¶ added in v0.2.7
func (e DiscoveriesValidationError) Error() string
Error satisfies the builtin error interface
func (DiscoveriesValidationError) ErrorName ¶ added in v0.2.7
func (e DiscoveriesValidationError) ErrorName() string
ErrorName returns error name.
func (DiscoveriesValidationError) Field ¶ added in v0.2.7
func (e DiscoveriesValidationError) Field() string
Field function returns field value.
func (DiscoveriesValidationError) Key ¶ added in v0.2.7
func (e DiscoveriesValidationError) Key() bool
Key function returns key value.
func (DiscoveriesValidationError) Reason ¶ added in v0.2.7
func (e DiscoveriesValidationError) Reason() string
Reason function returns reason value.
type Discovery ¶
type Discovery struct {
// name is the the service key in the registry.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// type specifies which discovery provider to use.
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
// debug enables verbose logging for the discovery client.
Debug bool `protobuf:"varint,5,opt,name=debug,proto3" json:"debug,omitempty"`
// --- Standard Provider Configurations ---
Consul *Consul `protobuf:"bytes,300,opt,name=consul,proto3,oneof" json:"consul,omitempty"`
Etcd *ETCD `protobuf:"bytes,400,opt,name=etcd,proto3,oneof" json:"etcd,omitempty"`
Nacos *Nacos `protobuf:"bytes,500,opt,name=nacos,proto3,oneof" json:"nacos,omitempty"`
Apollo *Apollo `protobuf:"bytes,600,opt,name=apollo,proto3,oneof" json:"apollo,omitempty"`
Kubernetes *Kubernetes `protobuf:"bytes,700,opt,name=kubernetes,proto3,oneof" json:"kubernetes,omitempty"`
Polaris *Polaris `protobuf:"bytes,800,opt,name=polaris,proto3,oneof" json:"polaris,omitempty"`
// customize is used for non-standard, user-defined discovery providers.
Customize *v1.Extension `protobuf:"bytes,900,opt,name=customize,proto3" json:"customize,omitempty"`
// contains filtered or unexported fields
}
Discovery defines the configuration for service registration.
func (*Discovery) Descriptor
deprecated
func (*Discovery) GetCustomize ¶
func (*Discovery) GetKubernetes ¶
func (x *Discovery) GetKubernetes() *Kubernetes
func (*Discovery) GetPolaris ¶
func (*Discovery) ProtoMessage ¶
func (*Discovery) ProtoMessage()
func (*Discovery) ProtoReflect ¶
func (x *Discovery) ProtoReflect() protoreflect.Message
func (*Discovery) Validate ¶
Validate checks the field values on Discovery 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 (*Discovery) ValidateAll ¶
ValidateAll checks the field values on Discovery 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 DiscoveryMultiError, or nil if none found.
type DiscoveryMultiError ¶
type DiscoveryMultiError []error
DiscoveryMultiError is an error wrapping multiple validation errors returned by Discovery.ValidateAll() if the designated constraints aren't met.
func (DiscoveryMultiError) AllErrors ¶
func (m DiscoveryMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DiscoveryMultiError) Error ¶
func (m DiscoveryMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DiscoveryValidationError ¶
type DiscoveryValidationError struct {
// contains filtered or unexported fields
}
DiscoveryValidationError is the validation error returned by Discovery.Validate if the designated constraints aren't met.
func (DiscoveryValidationError) Cause ¶
func (e DiscoveryValidationError) Cause() error
Cause function returns cause value.
func (DiscoveryValidationError) Error ¶
func (e DiscoveryValidationError) Error() string
Error satisfies the builtin error interface
func (DiscoveryValidationError) ErrorName ¶
func (e DiscoveryValidationError) ErrorName() string
ErrorName returns error name.
func (DiscoveryValidationError) Field ¶
func (e DiscoveryValidationError) Field() string
Field function returns field value.
func (DiscoveryValidationError) Key ¶
func (e DiscoveryValidationError) Key() bool
Key function returns key value.
func (DiscoveryValidationError) Reason ¶
func (e DiscoveryValidationError) Reason() string
Reason function returns reason value.
type ETCD ¶
type ETCD struct {
Endpoints []string `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
// contains filtered or unexported fields
}
ETCD provider specific configuration.
func (*ETCD) Descriptor
deprecated
func (*ETCD) GetEndpoints ¶
func (*ETCD) ProtoMessage ¶
func (*ETCD) ProtoMessage()
func (*ETCD) ProtoReflect ¶
func (x *ETCD) ProtoReflect() protoreflect.Message
func (*ETCD) Validate ¶
Validate checks the field values on ETCD 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 (*ETCD) ValidateAll ¶
ValidateAll checks the field values on ETCD 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 ETCDMultiError, or nil if none found.
type ETCDMultiError ¶
type ETCDMultiError []error
ETCDMultiError is an error wrapping multiple validation errors returned by ETCD.ValidateAll() if the designated constraints aren't met.
func (ETCDMultiError) AllErrors ¶
func (m ETCDMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ETCDMultiError) Error ¶
func (m ETCDMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ETCDValidationError ¶
type ETCDValidationError struct {
// contains filtered or unexported fields
}
ETCDValidationError is the validation error returned by ETCD.Validate if the designated constraints aren't met.
func (ETCDValidationError) Cause ¶
func (e ETCDValidationError) Cause() error
Cause function returns cause value.
func (ETCDValidationError) Error ¶
func (e ETCDValidationError) Error() string
Error satisfies the builtin error interface
func (ETCDValidationError) ErrorName ¶
func (e ETCDValidationError) ErrorName() string
ErrorName returns error name.
func (ETCDValidationError) Field ¶
func (e ETCDValidationError) Field() string
Field function returns field value.
func (ETCDValidationError) Key ¶
func (e ETCDValidationError) Key() bool
Key function returns key value.
func (ETCDValidationError) Reason ¶
func (e ETCDValidationError) Reason() string
Reason function returns reason value.
type Endpoint
deprecated
type Endpoint struct {
// The name is the name of the service key in the endpoint.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The discovery_name is the name of the service key in the discovery service.
DiscoveryName string `protobuf:"bytes,2,opt,name=discovery_name,proto3" json:"discovery_name,omitempty"`
// The endpoint URI to resolve, e.g., "discovery:///user-service".
Uri string `protobuf:"bytes,3,opt,name=uri,proto3" json:"uri,omitempty"`
// Selector for client-side load balancing and node filtering.
Selector *Selector `protobuf:"bytes,4,opt,name=selector,proto3" json:"selector,omitempty"`
// contains filtered or unexported fields
}
Endpoint holds the complete, resolved configuration for a client-side service endpoint.
Deprecated: Marked as deprecated in runtime/discovery/v1/endpoint.proto.
func (*Endpoint) Descriptor
deprecated
func (*Endpoint) GetDiscoveryName ¶
func (*Endpoint) GetSelector ¶
func (*Endpoint) ProtoMessage ¶
func (*Endpoint) ProtoMessage()
func (*Endpoint) ProtoReflect ¶
func (x *Endpoint) ProtoReflect() protoreflect.Message
func (*Endpoint) Validate ¶
Validate checks the field values on Endpoint 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 (*Endpoint) ValidateAll ¶
ValidateAll checks the field values on Endpoint 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 EndpointMultiError, or nil if none found.
type EndpointMultiError ¶
type EndpointMultiError []error
EndpointMultiError is an error wrapping multiple validation errors returned by Endpoint.ValidateAll() if the designated constraints aren't met.
func (EndpointMultiError) AllErrors ¶
func (m EndpointMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EndpointMultiError) Error ¶
func (m EndpointMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EndpointValidationError ¶
type EndpointValidationError struct {
// contains filtered or unexported fields
}
EndpointValidationError is the validation error returned by Endpoint.Validate if the designated constraints aren't met.
func (EndpointValidationError) Cause ¶
func (e EndpointValidationError) Cause() error
Cause function returns cause value.
func (EndpointValidationError) Error ¶
func (e EndpointValidationError) Error() string
Error satisfies the builtin error interface
func (EndpointValidationError) ErrorName ¶
func (e EndpointValidationError) ErrorName() string
ErrorName returns error name.
func (EndpointValidationError) Field ¶
func (e EndpointValidationError) Field() string
Field function returns field value.
func (EndpointValidationError) Key ¶
func (e EndpointValidationError) Key() bool
Key function returns key value.
func (EndpointValidationError) Reason ¶
func (e EndpointValidationError) Reason() string
Reason function returns reason value.
type Kubernetes ¶
type Kubernetes struct {
// contains filtered or unexported fields
}
Kubernetes provider specific configuration (placeholder).
func (*Kubernetes) Descriptor
deprecated
func (*Kubernetes) Descriptor() ([]byte, []int)
Deprecated: Use Kubernetes.ProtoReflect.Descriptor instead.
func (*Kubernetes) ProtoMessage ¶
func (*Kubernetes) ProtoMessage()
func (*Kubernetes) ProtoReflect ¶
func (x *Kubernetes) ProtoReflect() protoreflect.Message
func (*Kubernetes) Reset ¶
func (x *Kubernetes) Reset()
func (*Kubernetes) String ¶
func (x *Kubernetes) String() string
func (*Kubernetes) Validate ¶
func (m *Kubernetes) Validate() error
Validate checks the field values on Kubernetes 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 (*Kubernetes) ValidateAll ¶
func (m *Kubernetes) ValidateAll() error
ValidateAll checks the field values on Kubernetes 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 KubernetesMultiError, or nil if none found.
type KubernetesMultiError ¶
type KubernetesMultiError []error
KubernetesMultiError is an error wrapping multiple validation errors returned by Kubernetes.ValidateAll() if the designated constraints aren't met.
func (KubernetesMultiError) AllErrors ¶
func (m KubernetesMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (KubernetesMultiError) Error ¶
func (m KubernetesMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type KubernetesValidationError ¶
type KubernetesValidationError struct {
// contains filtered or unexported fields
}
KubernetesValidationError is the validation error returned by Kubernetes.Validate if the designated constraints aren't met.
func (KubernetesValidationError) Cause ¶
func (e KubernetesValidationError) Cause() error
Cause function returns cause value.
func (KubernetesValidationError) Error ¶
func (e KubernetesValidationError) Error() string
Error satisfies the builtin error interface
func (KubernetesValidationError) ErrorName ¶
func (e KubernetesValidationError) ErrorName() string
ErrorName returns error name.
func (KubernetesValidationError) Field ¶
func (e KubernetesValidationError) Field() string
Field function returns field value.
func (KubernetesValidationError) Key ¶
func (e KubernetesValidationError) Key() bool
Key function returns key value.
func (KubernetesValidationError) Reason ¶
func (e KubernetesValidationError) Reason() string
Reason function returns reason value.
type Nacos ¶
type Nacos struct {
// contains filtered or unexported fields
}
Nacos provider specific configuration (placeholder).
func (*Nacos) Descriptor
deprecated
func (*Nacos) ProtoMessage ¶
func (*Nacos) ProtoMessage()
func (*Nacos) ProtoReflect ¶
func (x *Nacos) ProtoReflect() protoreflect.Message
func (*Nacos) Validate ¶
Validate checks the field values on Nacos 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 (*Nacos) ValidateAll ¶
ValidateAll checks the field values on Nacos 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 NacosMultiError, or nil if none found.
type NacosMultiError ¶
type NacosMultiError []error
NacosMultiError is an error wrapping multiple validation errors returned by Nacos.ValidateAll() if the designated constraints aren't met.
func (NacosMultiError) AllErrors ¶
func (m NacosMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (NacosMultiError) Error ¶
func (m NacosMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type NacosValidationError ¶
type NacosValidationError struct {
// contains filtered or unexported fields
}
NacosValidationError is the validation error returned by Nacos.Validate if the designated constraints aren't met.
func (NacosValidationError) Cause ¶
func (e NacosValidationError) Cause() error
Cause function returns cause value.
func (NacosValidationError) Error ¶
func (e NacosValidationError) Error() string
Error satisfies the builtin error interface
func (NacosValidationError) ErrorName ¶
func (e NacosValidationError) ErrorName() string
ErrorName returns error name.
func (NacosValidationError) Field ¶
func (e NacosValidationError) Field() string
Field function returns field value.
func (NacosValidationError) Key ¶
func (e NacosValidationError) Key() bool
Key function returns key value.
func (NacosValidationError) Reason ¶
func (e NacosValidationError) Reason() string
Reason function returns reason value.
type Polaris ¶
type Polaris struct {
// contains filtered or unexported fields
}
Polaris provider specific configuration (placeholder).
func (*Polaris) Descriptor
deprecated
func (*Polaris) ProtoMessage ¶
func (*Polaris) ProtoMessage()
func (*Polaris) ProtoReflect ¶
func (x *Polaris) ProtoReflect() protoreflect.Message
func (*Polaris) Validate ¶
Validate checks the field values on Polaris 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 (*Polaris) ValidateAll ¶
ValidateAll checks the field values on Polaris 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 PolarisMultiError, or nil if none found.
type PolarisMultiError ¶
type PolarisMultiError []error
PolarisMultiError is an error wrapping multiple validation errors returned by Polaris.ValidateAll() if the designated constraints aren't met.
func (PolarisMultiError) AllErrors ¶
func (m PolarisMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PolarisMultiError) Error ¶
func (m PolarisMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PolarisValidationError ¶
type PolarisValidationError struct {
// contains filtered or unexported fields
}
PolarisValidationError is the validation error returned by Polaris.Validate if the designated constraints aren't met.
func (PolarisValidationError) Cause ¶
func (e PolarisValidationError) Cause() error
Cause function returns cause value.
func (PolarisValidationError) Error ¶
func (e PolarisValidationError) Error() string
Error satisfies the builtin error interface
func (PolarisValidationError) ErrorName ¶
func (e PolarisValidationError) ErrorName() string
ErrorName returns error name.
func (PolarisValidationError) Field ¶
func (e PolarisValidationError) Field() string
Field function returns field value.
func (PolarisValidationError) Key ¶
func (e PolarisValidationError) Key() bool
Key function returns key value.
func (PolarisValidationError) Reason ¶
func (e PolarisValidationError) Reason() string
Reason function returns reason value.
type Selector
deprecated
type Selector struct {
// The type of selector to use, e.g., "random", "wrr", "p2c".
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
// version is used for version-based routing.
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
// contains filtered or unexported fields
}
Selector defines the client-side node selection strategy.
Deprecated: Marked as deprecated in runtime/discovery/v1/endpoint.proto.
func (*Selector) Descriptor
deprecated
func (*Selector) GetVersion ¶
func (*Selector) ProtoMessage ¶
func (*Selector) ProtoMessage()
func (*Selector) ProtoReflect ¶
func (x *Selector) ProtoReflect() protoreflect.Message
func (*Selector) Validate ¶
Validate checks the field values on Selector 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 (*Selector) ValidateAll ¶
ValidateAll checks the field values on Selector 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 SelectorMultiError, or nil if none found.
type SelectorMultiError ¶
type SelectorMultiError []error
SelectorMultiError is an error wrapping multiple validation errors returned by Selector.ValidateAll() if the designated constraints aren't met.
func (SelectorMultiError) AllErrors ¶
func (m SelectorMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SelectorMultiError) Error ¶
func (m SelectorMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SelectorValidationError ¶
type SelectorValidationError struct {
// contains filtered or unexported fields
}
SelectorValidationError is the validation error returned by Selector.Validate if the designated constraints aren't met.
func (SelectorValidationError) Cause ¶
func (e SelectorValidationError) Cause() error
Cause function returns cause value.
func (SelectorValidationError) Error ¶
func (e SelectorValidationError) Error() string
Error satisfies the builtin error interface
func (SelectorValidationError) ErrorName ¶
func (e SelectorValidationError) ErrorName() string
ErrorName returns error name.
func (SelectorValidationError) Field ¶
func (e SelectorValidationError) Field() string
Field function returns field value.
func (SelectorValidationError) Key ¶
func (e SelectorValidationError) Key() bool
Key function returns key value.
func (SelectorValidationError) Reason ¶
func (e SelectorValidationError) Reason() string
Reason function returns reason value.