Documentation
¶
Index ¶
- Variables
- type Backend
- func (*Backend) Descriptor() ([]byte, []int)deprecated
- func (x *Backend) GetHealthCheck() *HealthCheck
- func (x *Backend) GetMetadata() map[string]string
- func (x *Backend) GetTarget() string
- func (x *Backend) GetTls() bool
- func (x *Backend) GetTlsConfigName() string
- func (x *Backend) GetWeight() int64
- func (*Backend) ProtoMessage()
- func (x *Backend) ProtoReflect() protoreflect.Message
- func (x *Backend) Reset()
- func (x *Backend) String() string
- func (m *Backend) Validate() error
- func (m *Backend) ValidateAll() error
- type BackendMultiError
- type BackendValidationError
- type Condition
- func (*Condition) Descriptor() ([]byte, []int)deprecated
- func (x *Condition) GetByHeader() *Condition_Header
- func (x *Condition) GetByStatusCode() string
- func (x *Condition) GetCondition() isCondition_Condition
- func (*Condition) ProtoMessage()
- func (x *Condition) ProtoReflect() protoreflect.Message
- func (x *Condition) Reset()
- func (x *Condition) String() string
- func (m *Condition) Validate() error
- func (m *Condition) ValidateAll() error
- type ConditionMultiError
- type ConditionValidationError
- type Condition_ByHeader
- type Condition_ByStatusCode
- type Condition_Header
- func (*Condition_Header) Descriptor() ([]byte, []int)deprecated
- func (x *Condition_Header) GetName() string
- func (x *Condition_Header) GetValue() string
- func (*Condition_Header) ProtoMessage()
- func (x *Condition_Header) ProtoReflect() protoreflect.Message
- func (x *Condition_Header) Reset()
- func (x *Condition_Header) String() string
- func (m *Condition_Header) Validate() error
- func (m *Condition_Header) ValidateAll() error
- type Condition_HeaderMultiError
- type Condition_HeaderValidationError
- func (e Condition_HeaderValidationError) Cause() error
- func (e Condition_HeaderValidationError) Error() string
- func (e Condition_HeaderValidationError) ErrorName() string
- func (e Condition_HeaderValidationError) Field() string
- func (e Condition_HeaderValidationError) Key() bool
- func (e Condition_HeaderValidationError) Reason() string
- type Endpoint
- func (*Endpoint) Descriptor() ([]byte, []int)deprecated
- func (x *Endpoint) GetBackends() []*Backend
- func (x *Endpoint) GetDescription() string
- func (x *Endpoint) GetHost() string
- func (x *Endpoint) GetMetadata() map[string]string
- func (x *Endpoint) GetMethod() string
- func (x *Endpoint) GetMiddlewares() []*Middleware
- func (x *Endpoint) GetPath() string
- func (x *Endpoint) GetProtocol() Protocol
- func (x *Endpoint) GetRetry() *Retry
- func (x *Endpoint) GetTimeout() int64
- 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 Gateway
- func (*Gateway) Descriptor() ([]byte, []int)deprecated
- func (x *Gateway) GetEndpoints() []*Endpoint
- func (x *Gateway) GetHosts() []stringdeprecated
- func (x *Gateway) GetMiddlewares() []*Middleware
- func (x *Gateway) GetName() string
- func (x *Gateway) GetTlsStore() map[string]*v1.TLSConfig
- func (x *Gateway) GetVersion() string
- func (*Gateway) ProtoMessage()
- func (x *Gateway) ProtoReflect() protoreflect.Message
- func (x *Gateway) Reset()
- func (x *Gateway) String() string
- func (m *Gateway) Validate() error
- func (m *Gateway) ValidateAll() error
- type GatewayMultiError
- type GatewayValidationError
- type HealthCheck
- func (*HealthCheck) Descriptor() ([]byte, []int)deprecated
- func (x *HealthCheck) GetEndpoint() string
- func (x *HealthCheck) GetType() HealthCheck_CheckType
- func (*HealthCheck) ProtoMessage()
- func (x *HealthCheck) ProtoReflect() protoreflect.Message
- func (x *HealthCheck) Reset()
- func (x *HealthCheck) String() string
- func (m *HealthCheck) Validate() error
- func (m *HealthCheck) ValidateAll() error
- type HealthCheckMultiError
- type HealthCheckValidationError
- func (e HealthCheckValidationError) Cause() error
- func (e HealthCheckValidationError) Error() string
- func (e HealthCheckValidationError) ErrorName() string
- func (e HealthCheckValidationError) Field() string
- func (e HealthCheckValidationError) Key() bool
- func (e HealthCheckValidationError) Reason() string
- type HealthCheck_CheckType
- func (HealthCheck_CheckType) Descriptor() protoreflect.EnumDescriptor
- func (x HealthCheck_CheckType) Enum() *HealthCheck_CheckType
- func (HealthCheck_CheckType) EnumDescriptor() ([]byte, []int)deprecated
- func (x HealthCheck_CheckType) Number() protoreflect.EnumNumber
- func (x HealthCheck_CheckType) String() string
- func (HealthCheck_CheckType) Type() protoreflect.EnumType
- type Message
- type MessageMultiError
- type MessageValidationError
- type Middleware
- func (*Middleware) Descriptor() ([]byte, []int)deprecated
- func (x *Middleware) GetName() string
- func (x *Middleware) GetOptions() []byte
- func (x *Middleware) GetRequired() bool
- func (*Middleware) ProtoMessage()
- func (x *Middleware) ProtoReflect() protoreflect.Message
- func (x *Middleware) Reset()
- func (x *Middleware) String() string
- func (m *Middleware) Validate() error
- func (m *Middleware) ValidateAll() error
- type MiddlewareMultiError
- type MiddlewareValidationError
- type PriorityConfig
- func (*PriorityConfig) Descriptor() ([]byte, []int)deprecated
- func (x *PriorityConfig) GetEndpoints() []*Endpoint
- func (x *PriorityConfig) GetName() string
- func (x *PriorityConfig) GetVersion() string
- func (*PriorityConfig) ProtoMessage()
- func (x *PriorityConfig) ProtoReflect() protoreflect.Message
- func (x *PriorityConfig) Reset()
- func (x *PriorityConfig) String() string
- func (m *PriorityConfig) Validate() error
- func (m *PriorityConfig) ValidateAll() error
- type PriorityConfigMultiError
- type PriorityConfigValidationError
- func (e PriorityConfigValidationError) Cause() error
- func (e PriorityConfigValidationError) Error() string
- func (e PriorityConfigValidationError) ErrorName() string
- func (e PriorityConfigValidationError) Field() string
- func (e PriorityConfigValidationError) Key() bool
- func (e PriorityConfigValidationError) Reason() string
- type Protocol
- type Retry
- func (*Retry) Descriptor() ([]byte, []int)deprecated
- func (x *Retry) GetAttempts() uint32
- func (x *Retry) GetConditions() []*Condition
- func (x *Retry) GetPerTryTimeout() int64
- func (x *Retry) GetPriorities() []string
- func (*Retry) ProtoMessage()
- func (x *Retry) ProtoReflect() protoreflect.Message
- func (x *Retry) Reset()
- func (x *Retry) String() string
- func (m *Retry) Validate() error
- func (m *Retry) ValidateAll() error
- type RetryMultiError
- type RetryValidationError
- type Tracer
- func (*Tracer) Descriptor() ([]byte, []int)deprecated
- func (x *Tracer) GetEndpoint() string
- func (x *Tracer) GetName() string
- func (*Tracer) ProtoMessage()
- func (x *Tracer) ProtoReflect() protoreflect.Message
- func (x *Tracer) Reset()
- func (x *Tracer) String() string
- func (m *Tracer) Validate() error
- func (m *Tracer) ValidateAll() error
- type TracerMultiError
- type TracerValidationError
Constants ¶
This section is empty.
Variables ¶
var ( Protocol_name = map[int32]string{ 0: "PROTOCOL_UNSPECIFIED", 1: "PROTOCOL_HTTP", 2: "PROTOCOL_GRPC", 3: "PROTOCOL_CUSTOM", } Protocol_value = map[string]int32{ "PROTOCOL_UNSPECIFIED": 0, "PROTOCOL_HTTP": 1, "PROTOCOL_GRPC": 2, "PROTOCOL_CUSTOM": 3, } )
Enum value maps for Protocol.
var ( HealthCheck_CheckType_name = map[int32]string{ 0: "CHECK_TYPE_UNSPECIFIED", 1: "CHECK_TYPE_HTTP", 2: "CHECK_TYPE_TCP", } HealthCheck_CheckType_value = map[string]int32{ "CHECK_TYPE_UNSPECIFIED": 0, "CHECK_TYPE_HTTP": 1, "CHECK_TYPE_TCP": 2, } )
Enum value maps for HealthCheck_CheckType.
var File_runtime_config_v1_gateway_proto protoreflect.FileDescriptor
var File_runtime_config_v1_message_proto protoreflect.FileDescriptor
var File_runtime_config_v1_tracer_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
// localhost
// 127.0.0.1:8000
// discovery:///service_name
Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
Weight *int64 `protobuf:"varint,2,opt,name=weight,proto3,oneof" json:"weight,omitempty"`
HealthCheck *HealthCheck `protobuf:"bytes,3,opt,name=health_check,json=healthCheck,proto3" json:"health_check,omitempty"`
Tls bool `protobuf:"varint,4,opt,name=tls,proto3" json:"tls,omitempty"`
TlsConfigName string `protobuf:"bytes,5,opt,name=tls_config_name,json=tlsConfigName,proto3" json:"tls_config_name,omitempty"`
Metadata map[string]string `` /* 143-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*Backend) Descriptor
deprecated
func (*Backend) GetHealthCheck ¶
func (x *Backend) GetHealthCheck() *HealthCheck
func (*Backend) GetMetadata ¶
func (*Backend) GetTlsConfigName ¶
func (*Backend) ProtoMessage ¶
func (*Backend) ProtoMessage()
func (*Backend) ProtoReflect ¶
func (x *Backend) ProtoReflect() protoreflect.Message
func (*Backend) Validate ¶
Validate checks the field values on Backend 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 (*Backend) ValidateAll ¶
ValidateAll checks the field values on Backend 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 BackendMultiError, or nil if none found.
type BackendMultiError ¶
type BackendMultiError []error
BackendMultiError is an error wrapping multiple validation errors returned by Backend.ValidateAll() if the designated constraints aren't met.
func (BackendMultiError) AllErrors ¶
func (m BackendMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BackendMultiError) Error ¶
func (m BackendMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BackendValidationError ¶
type BackendValidationError struct {
// contains filtered or unexported fields
}
BackendValidationError is the validation error returned by Backend.Validate if the designated constraints aren't met.
func (BackendValidationError) Cause ¶
func (e BackendValidationError) Cause() error
Cause function returns cause value.
func (BackendValidationError) Error ¶
func (e BackendValidationError) Error() string
Error satisfies the builtin error interface
func (BackendValidationError) ErrorName ¶
func (e BackendValidationError) ErrorName() string
ErrorName returns error name.
func (BackendValidationError) Field ¶
func (e BackendValidationError) Field() string
Field function returns field value.
func (BackendValidationError) Key ¶
func (e BackendValidationError) Key() bool
Key function returns key value.
func (BackendValidationError) Reason ¶
func (e BackendValidationError) Reason() string
Reason function returns reason value.
type Condition ¶
type Condition struct {
// Types that are valid to be assigned to Condition:
//
// *Condition_ByStatusCode
// *Condition_ByHeader
Condition isCondition_Condition `protobuf_oneof:"condition"`
// contains filtered or unexported fields
}
func (*Condition) Descriptor
deprecated
func (*Condition) GetByHeader ¶
func (x *Condition) GetByHeader() *Condition_Header
func (*Condition) GetByStatusCode ¶
func (*Condition) GetCondition ¶
func (x *Condition) GetCondition() isCondition_Condition
func (*Condition) ProtoMessage ¶
func (*Condition) ProtoMessage()
func (*Condition) ProtoReflect ¶
func (x *Condition) ProtoReflect() protoreflect.Message
func (*Condition) Validate ¶
Validate checks the field values on Condition 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 (*Condition) ValidateAll ¶
ValidateAll checks the field values on Condition 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 ConditionMultiError, or nil if none found.
type ConditionMultiError ¶
type ConditionMultiError []error
ConditionMultiError is an error wrapping multiple validation errors returned by Condition.ValidateAll() if the designated constraints aren't met.
func (ConditionMultiError) AllErrors ¶
func (m ConditionMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ConditionMultiError) Error ¶
func (m ConditionMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ConditionValidationError ¶
type ConditionValidationError struct {
// contains filtered or unexported fields
}
ConditionValidationError is the validation error returned by Condition.Validate if the designated constraints aren't met.
func (ConditionValidationError) Cause ¶
func (e ConditionValidationError) Cause() error
Cause function returns cause value.
func (ConditionValidationError) Error ¶
func (e ConditionValidationError) Error() string
Error satisfies the builtin error interface
func (ConditionValidationError) ErrorName ¶
func (e ConditionValidationError) ErrorName() string
ErrorName returns error name.
func (ConditionValidationError) Field ¶
func (e ConditionValidationError) Field() string
Field function returns field value.
func (ConditionValidationError) Key ¶
func (e ConditionValidationError) Key() bool
Key function returns key value.
func (ConditionValidationError) Reason ¶
func (e ConditionValidationError) Reason() string
Reason function returns reason value.
type Condition_ByHeader ¶
type Condition_ByHeader struct {
// {"name": "grpc-status", "value": "14"}
ByHeader *Condition_Header `protobuf:"bytes,2,opt,name=by_header,json=byHeader,proto3,oneof"`
}
type Condition_ByStatusCode ¶
type Condition_ByStatusCode struct {
// "500-599", "429"
ByStatusCode string `protobuf:"bytes,1,opt,name=by_status_code,json=byStatusCode,proto3,oneof"`
}
type Condition_Header ¶
type Condition_Header struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
func (*Condition_Header) Descriptor
deprecated
func (*Condition_Header) Descriptor() ([]byte, []int)
Deprecated: Use Condition_Header.ProtoReflect.Descriptor instead.
func (*Condition_Header) GetName ¶
func (x *Condition_Header) GetName() string
func (*Condition_Header) GetValue ¶
func (x *Condition_Header) GetValue() string
func (*Condition_Header) ProtoMessage ¶
func (*Condition_Header) ProtoMessage()
func (*Condition_Header) ProtoReflect ¶
func (x *Condition_Header) ProtoReflect() protoreflect.Message
func (*Condition_Header) Reset ¶
func (x *Condition_Header) Reset()
func (*Condition_Header) String ¶
func (x *Condition_Header) String() string
func (*Condition_Header) Validate ¶
func (m *Condition_Header) Validate() error
Validate checks the field values on Condition_Header 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 (*Condition_Header) ValidateAll ¶
func (m *Condition_Header) ValidateAll() error
ValidateAll checks the field values on Condition_Header 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 Condition_HeaderMultiError, or nil if none found.
type Condition_HeaderMultiError ¶
type Condition_HeaderMultiError []error
Condition_HeaderMultiError is an error wrapping multiple validation errors returned by Condition_Header.ValidateAll() if the designated constraints aren't met.
func (Condition_HeaderMultiError) AllErrors ¶
func (m Condition_HeaderMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Condition_HeaderMultiError) Error ¶
func (m Condition_HeaderMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Condition_HeaderValidationError ¶
type Condition_HeaderValidationError struct {
// contains filtered or unexported fields
}
Condition_HeaderValidationError is the validation error returned by Condition_Header.Validate if the designated constraints aren't met.
func (Condition_HeaderValidationError) Cause ¶
func (e Condition_HeaderValidationError) Cause() error
Cause function returns cause value.
func (Condition_HeaderValidationError) Error ¶
func (e Condition_HeaderValidationError) Error() string
Error satisfies the builtin error interface
func (Condition_HeaderValidationError) ErrorName ¶
func (e Condition_HeaderValidationError) ErrorName() string
ErrorName returns error name.
func (Condition_HeaderValidationError) Field ¶
func (e Condition_HeaderValidationError) Field() string
Field function returns field value.
func (Condition_HeaderValidationError) Key ¶
func (e Condition_HeaderValidationError) Key() bool
Key function returns key value.
func (Condition_HeaderValidationError) Reason ¶
func (e Condition_HeaderValidationError) Reason() string
Reason function returns reason value.
type Endpoint ¶
type Endpoint struct {
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
Protocol Protocol `protobuf:"varint,4,opt,name=protocol,proto3,enum=runtime.config.v1.Protocol" json:"protocol,omitempty"`
Timeout int64 `protobuf:"varint,5,opt,name=timeout,proto3" json:"timeout,omitempty"`
Middlewares []*Middleware `protobuf:"bytes,6,rep,name=middlewares,proto3" json:"middlewares,omitempty"`
Backends []*Backend `protobuf:"bytes,7,rep,name=backends,proto3" json:"backends,omitempty"`
Retry *Retry `protobuf:"bytes,8,opt,name=retry,proto3" json:"retry,omitempty"`
Metadata map[string]string `` /* 143-byte string literal not displayed */
Host string `protobuf:"bytes,10,opt,name=host,proto3" json:"host,omitempty"`
// contains filtered or unexported fields
}
func (*Endpoint) Descriptor
deprecated
func (*Endpoint) GetBackends ¶
func (*Endpoint) GetDescription ¶
func (*Endpoint) GetMetadata ¶
func (*Endpoint) GetMiddlewares ¶
func (x *Endpoint) GetMiddlewares() []*Middleware
func (*Endpoint) GetProtocol ¶
func (*Endpoint) GetTimeout ¶
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 Gateway ¶
type Gateway struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
// Deprecated: Marked as deprecated in runtime/config/v1/gateway.proto.
Hosts []string `protobuf:"bytes,3,rep,name=hosts,proto3" json:"hosts,omitempty"`
Endpoints []*Endpoint `protobuf:"bytes,4,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
Middlewares []*Middleware `protobuf:"bytes,5,rep,name=middlewares,proto3" json:"middlewares,omitempty"`
TlsStore map[string]*v1.TLSConfig `` /* 159-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*Gateway) Descriptor
deprecated
func (*Gateway) GetEndpoints ¶
func (*Gateway) GetMiddlewares ¶
func (x *Gateway) GetMiddlewares() []*Middleware
func (*Gateway) GetVersion ¶
func (*Gateway) ProtoMessage ¶
func (*Gateway) ProtoMessage()
func (*Gateway) ProtoReflect ¶
func (x *Gateway) ProtoReflect() protoreflect.Message
func (*Gateway) Validate ¶
Validate checks the field values on Gateway 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 (*Gateway) ValidateAll ¶
ValidateAll checks the field values on Gateway 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 GatewayMultiError, or nil if none found.
type GatewayMultiError ¶
type GatewayMultiError []error
GatewayMultiError is an error wrapping multiple validation errors returned by Gateway.ValidateAll() if the designated constraints aren't met.
func (GatewayMultiError) AllErrors ¶
func (m GatewayMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GatewayMultiError) Error ¶
func (m GatewayMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GatewayValidationError ¶
type GatewayValidationError struct {
// contains filtered or unexported fields
}
GatewayValidationError is the validation error returned by Gateway.Validate if the designated constraints aren't met.
func (GatewayValidationError) Cause ¶
func (e GatewayValidationError) Cause() error
Cause function returns cause value.
func (GatewayValidationError) Error ¶
func (e GatewayValidationError) Error() string
Error satisfies the builtin error interface
func (GatewayValidationError) ErrorName ¶
func (e GatewayValidationError) ErrorName() string
ErrorName returns error name.
func (GatewayValidationError) Field ¶
func (e GatewayValidationError) Field() string
Field function returns field value.
func (GatewayValidationError) Key ¶
func (e GatewayValidationError) Key() bool
Key function returns key value.
func (GatewayValidationError) Reason ¶
func (e GatewayValidationError) Reason() string
Reason function returns reason value.
type HealthCheck ¶
type HealthCheck struct {
Type HealthCheck_CheckType `protobuf:"varint,1,opt,name=type,proto3,enum=runtime.config.v1.HealthCheck_CheckType" json:"type,omitempty"`
Endpoint string `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
// contains filtered or unexported fields
}
func (*HealthCheck) Descriptor
deprecated
func (*HealthCheck) Descriptor() ([]byte, []int)
Deprecated: Use HealthCheck.ProtoReflect.Descriptor instead.
func (*HealthCheck) GetEndpoint ¶
func (x *HealthCheck) GetEndpoint() string
func (*HealthCheck) GetType ¶
func (x *HealthCheck) GetType() HealthCheck_CheckType
func (*HealthCheck) ProtoMessage ¶
func (*HealthCheck) ProtoMessage()
func (*HealthCheck) ProtoReflect ¶
func (x *HealthCheck) ProtoReflect() protoreflect.Message
func (*HealthCheck) Reset ¶
func (x *HealthCheck) Reset()
func (*HealthCheck) String ¶
func (x *HealthCheck) String() string
func (*HealthCheck) Validate ¶
func (m *HealthCheck) Validate() error
Validate checks the field values on HealthCheck 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 (*HealthCheck) ValidateAll ¶
func (m *HealthCheck) ValidateAll() error
ValidateAll checks the field values on HealthCheck 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 HealthCheckMultiError, or nil if none found.
type HealthCheckMultiError ¶
type HealthCheckMultiError []error
HealthCheckMultiError is an error wrapping multiple validation errors returned by HealthCheck.ValidateAll() if the designated constraints aren't met.
func (HealthCheckMultiError) AllErrors ¶
func (m HealthCheckMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (HealthCheckMultiError) Error ¶
func (m HealthCheckMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type HealthCheckValidationError ¶
type HealthCheckValidationError struct {
// contains filtered or unexported fields
}
HealthCheckValidationError is the validation error returned by HealthCheck.Validate if the designated constraints aren't met.
func (HealthCheckValidationError) Cause ¶
func (e HealthCheckValidationError) Cause() error
Cause function returns cause value.
func (HealthCheckValidationError) Error ¶
func (e HealthCheckValidationError) Error() string
Error satisfies the builtin error interface
func (HealthCheckValidationError) ErrorName ¶
func (e HealthCheckValidationError) ErrorName() string
ErrorName returns error name.
func (HealthCheckValidationError) Field ¶
func (e HealthCheckValidationError) Field() string
Field function returns field value.
func (HealthCheckValidationError) Key ¶
func (e HealthCheckValidationError) Key() bool
Key function returns key value.
func (HealthCheckValidationError) Reason ¶
func (e HealthCheckValidationError) Reason() string
Reason function returns reason value.
type HealthCheck_CheckType ¶
type HealthCheck_CheckType int32
const ( HealthCheck_CHECK_TYPE_UNSPECIFIED HealthCheck_CheckType = 0 HealthCheck_CHECK_TYPE_HTTP HealthCheck_CheckType = 1 HealthCheck_CHECK_TYPE_TCP HealthCheck_CheckType = 2 )
func (HealthCheck_CheckType) Descriptor ¶
func (HealthCheck_CheckType) Descriptor() protoreflect.EnumDescriptor
func (HealthCheck_CheckType) Enum ¶
func (x HealthCheck_CheckType) Enum() *HealthCheck_CheckType
func (HealthCheck_CheckType) EnumDescriptor
deprecated
func (HealthCheck_CheckType) EnumDescriptor() ([]byte, []int)
Deprecated: Use HealthCheck_CheckType.Descriptor instead.
func (HealthCheck_CheckType) Number ¶
func (x HealthCheck_CheckType) Number() protoreflect.EnumNumber
func (HealthCheck_CheckType) String ¶
func (x HealthCheck_CheckType) String() string
func (HealthCheck_CheckType) Type ¶
func (HealthCheck_CheckType) Type() protoreflect.EnumType
type Message ¶
type Message struct {
// contains filtered or unexported fields
}
Message defines the configuration for a message queue service consumer/producer.
func (*Message) Descriptor
deprecated
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
func (*Message) Validate ¶
Validate checks the field values on Message 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 (*Message) ValidateAll ¶
ValidateAll checks the field values on Message 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 MessageMultiError, or nil if none found.
type MessageMultiError ¶
type MessageMultiError []error
MessageMultiError is an error wrapping multiple validation errors returned by Message.ValidateAll() if the designated constraints aren't met.
func (MessageMultiError) AllErrors ¶
func (m MessageMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MessageMultiError) Error ¶
func (m MessageMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MessageValidationError ¶
type MessageValidationError struct {
// contains filtered or unexported fields
}
MessageValidationError is the validation error returned by Message.Validate if the designated constraints aren't met.
func (MessageValidationError) Cause ¶
func (e MessageValidationError) Cause() error
Cause function returns cause value.
func (MessageValidationError) Error ¶
func (e MessageValidationError) Error() string
Error satisfies the builtin error interface
func (MessageValidationError) ErrorName ¶
func (e MessageValidationError) ErrorName() string
ErrorName returns error name.
func (MessageValidationError) Field ¶
func (e MessageValidationError) Field() string
Field function returns field value.
func (MessageValidationError) Key ¶
func (e MessageValidationError) Key() bool
Key function returns key value.
func (MessageValidationError) Reason ¶
func (e MessageValidationError) Reason() string
Reason function returns reason value.
type Middleware ¶
type Middleware struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Options []byte `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
Required bool `protobuf:"varint,3,opt,name=required,proto3" json:"required,omitempty"`
// contains filtered or unexported fields
}
func (*Middleware) Descriptor
deprecated
func (*Middleware) Descriptor() ([]byte, []int)
Deprecated: Use Middleware.ProtoReflect.Descriptor instead.
func (*Middleware) GetName ¶
func (x *Middleware) GetName() string
func (*Middleware) GetOptions ¶
func (x *Middleware) GetOptions() []byte
func (*Middleware) GetRequired ¶
func (x *Middleware) GetRequired() bool
func (*Middleware) ProtoMessage ¶
func (*Middleware) ProtoMessage()
func (*Middleware) ProtoReflect ¶
func (x *Middleware) ProtoReflect() protoreflect.Message
func (*Middleware) Reset ¶
func (x *Middleware) Reset()
func (*Middleware) String ¶
func (x *Middleware) String() string
func (*Middleware) Validate ¶
func (m *Middleware) Validate() error
Validate checks the field values on Middleware 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 (*Middleware) ValidateAll ¶
func (m *Middleware) ValidateAll() error
ValidateAll checks the field values on Middleware 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 MiddlewareMultiError, or nil if none found.
type MiddlewareMultiError ¶
type MiddlewareMultiError []error
MiddlewareMultiError is an error wrapping multiple validation errors returned by Middleware.ValidateAll() if the designated constraints aren't met.
func (MiddlewareMultiError) AllErrors ¶
func (m MiddlewareMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MiddlewareMultiError) Error ¶
func (m MiddlewareMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MiddlewareValidationError ¶
type MiddlewareValidationError struct {
// contains filtered or unexported fields
}
MiddlewareValidationError is the validation error returned by Middleware.Validate if the designated constraints aren't met.
func (MiddlewareValidationError) Cause ¶
func (e MiddlewareValidationError) Cause() error
Cause function returns cause value.
func (MiddlewareValidationError) Error ¶
func (e MiddlewareValidationError) Error() string
Error satisfies the builtin error interface
func (MiddlewareValidationError) ErrorName ¶
func (e MiddlewareValidationError) ErrorName() string
ErrorName returns error name.
func (MiddlewareValidationError) Field ¶
func (e MiddlewareValidationError) Field() string
Field function returns field value.
func (MiddlewareValidationError) Key ¶
func (e MiddlewareValidationError) Key() bool
Key function returns key value.
func (MiddlewareValidationError) Reason ¶
func (e MiddlewareValidationError) Reason() string
Reason function returns reason value.
type PriorityConfig ¶
type PriorityConfig struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
Endpoints []*Endpoint `protobuf:"bytes,3,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
// contains filtered or unexported fields
}
func (*PriorityConfig) Descriptor
deprecated
func (*PriorityConfig) Descriptor() ([]byte, []int)
Deprecated: Use PriorityConfig.ProtoReflect.Descriptor instead.
func (*PriorityConfig) GetEndpoints ¶
func (x *PriorityConfig) GetEndpoints() []*Endpoint
func (*PriorityConfig) GetName ¶
func (x *PriorityConfig) GetName() string
func (*PriorityConfig) GetVersion ¶
func (x *PriorityConfig) GetVersion() string
func (*PriorityConfig) ProtoMessage ¶
func (*PriorityConfig) ProtoMessage()
func (*PriorityConfig) ProtoReflect ¶
func (x *PriorityConfig) ProtoReflect() protoreflect.Message
func (*PriorityConfig) Reset ¶
func (x *PriorityConfig) Reset()
func (*PriorityConfig) String ¶
func (x *PriorityConfig) String() string
func (*PriorityConfig) Validate ¶
func (m *PriorityConfig) Validate() error
Validate checks the field values on PriorityConfig 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 (*PriorityConfig) ValidateAll ¶
func (m *PriorityConfig) ValidateAll() error
ValidateAll checks the field values on PriorityConfig 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 PriorityConfigMultiError, or nil if none found.
type PriorityConfigMultiError ¶
type PriorityConfigMultiError []error
PriorityConfigMultiError is an error wrapping multiple validation errors returned by PriorityConfig.ValidateAll() if the designated constraints aren't met.
func (PriorityConfigMultiError) AllErrors ¶
func (m PriorityConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PriorityConfigMultiError) Error ¶
func (m PriorityConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PriorityConfigValidationError ¶
type PriorityConfigValidationError struct {
// contains filtered or unexported fields
}
PriorityConfigValidationError is the validation error returned by PriorityConfig.Validate if the designated constraints aren't met.
func (PriorityConfigValidationError) Cause ¶
func (e PriorityConfigValidationError) Cause() error
Cause function returns cause value.
func (PriorityConfigValidationError) Error ¶
func (e PriorityConfigValidationError) Error() string
Error satisfies the builtin error interface
func (PriorityConfigValidationError) ErrorName ¶
func (e PriorityConfigValidationError) ErrorName() string
ErrorName returns error name.
func (PriorityConfigValidationError) Field ¶
func (e PriorityConfigValidationError) Field() string
Field function returns field value.
func (PriorityConfigValidationError) Key ¶
func (e PriorityConfigValidationError) Key() bool
Key function returns key value.
func (PriorityConfigValidationError) Reason ¶
func (e PriorityConfigValidationError) Reason() string
Reason function returns reason value.
type Protocol ¶
type Protocol int32
func (Protocol) Descriptor ¶
func (Protocol) Descriptor() protoreflect.EnumDescriptor
func (Protocol) EnumDescriptor
deprecated
func (Protocol) Number ¶
func (x Protocol) Number() protoreflect.EnumNumber
func (Protocol) Type ¶
func (Protocol) Type() protoreflect.EnumType
type Retry ¶
type Retry struct {
// default attempts is 1
Attempts uint32 `protobuf:"varint,1,opt,name=attempts,proto3" json:"attempts,omitempty"`
PerTryTimeout int64 `protobuf:"varint,2,opt,name=per_try_timeout,json=perTryTimeout,proto3" json:"per_try_timeout,omitempty"`
Conditions []*Condition `protobuf:"bytes,3,rep,name=conditions,proto3" json:"conditions,omitempty"`
// primary,secondary
Priorities []string `protobuf:"bytes,4,rep,name=priorities,proto3" json:"priorities,omitempty"`
// contains filtered or unexported fields
}
func (*Retry) Descriptor
deprecated
func (*Retry) GetAttempts ¶
func (*Retry) GetConditions ¶
func (*Retry) GetPerTryTimeout ¶
func (*Retry) GetPriorities ¶
func (*Retry) ProtoMessage ¶
func (*Retry) ProtoMessage()
func (*Retry) ProtoReflect ¶
func (x *Retry) ProtoReflect() protoreflect.Message
func (*Retry) Validate ¶
Validate checks the field values on Retry 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 (*Retry) ValidateAll ¶
ValidateAll checks the field values on Retry 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 RetryMultiError, or nil if none found.
type RetryMultiError ¶
type RetryMultiError []error
RetryMultiError is an error wrapping multiple validation errors returned by Retry.ValidateAll() if the designated constraints aren't met.
func (RetryMultiError) AllErrors ¶
func (m RetryMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RetryMultiError) Error ¶
func (m RetryMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RetryValidationError ¶
type RetryValidationError struct {
// contains filtered or unexported fields
}
RetryValidationError is the validation error returned by Retry.Validate if the designated constraints aren't met.
func (RetryValidationError) Cause ¶
func (e RetryValidationError) Cause() error
Cause function returns cause value.
func (RetryValidationError) Error ¶
func (e RetryValidationError) Error() string
Error satisfies the builtin error interface
func (RetryValidationError) ErrorName ¶
func (e RetryValidationError) ErrorName() string
ErrorName returns error name.
func (RetryValidationError) Field ¶
func (e RetryValidationError) Field() string
Field function returns field value.
func (RetryValidationError) Key ¶
func (e RetryValidationError) Key() bool
Key function returns key value.
func (RetryValidationError) Reason ¶
func (e RetryValidationError) Reason() string
Reason function returns reason value.
type Tracer ¶ added in v0.2.7
type Tracer struct {
// name of trace service
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// endpoint is the endpoint of trace service
Endpoint string `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
// contains filtered or unexported fields
}
Tracer config.
func (*Tracer) Descriptor
deprecated
added in
v0.2.7
func (*Tracer) GetEndpoint ¶ added in v0.2.7
func (*Tracer) ProtoMessage ¶ added in v0.2.7
func (*Tracer) ProtoMessage()
func (*Tracer) ProtoReflect ¶ added in v0.2.7
func (x *Tracer) ProtoReflect() protoreflect.Message
func (*Tracer) Validate ¶ added in v0.2.7
Validate checks the field values on Tracer 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 (*Tracer) ValidateAll ¶ added in v0.2.7
ValidateAll checks the field values on Tracer 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 TracerMultiError, or nil if none found.
type TracerMultiError ¶ added in v0.2.7
type TracerMultiError []error
TracerMultiError is an error wrapping multiple validation errors returned by Tracer.ValidateAll() if the designated constraints aren't met.
func (TracerMultiError) AllErrors ¶ added in v0.2.7
func (m TracerMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TracerMultiError) Error ¶ added in v0.2.7
func (m TracerMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TracerValidationError ¶ added in v0.2.7
type TracerValidationError struct {
// contains filtered or unexported fields
}
TracerValidationError is the validation error returned by Tracer.Validate if the designated constraints aren't met.
func (TracerValidationError) Cause ¶ added in v0.2.7
func (e TracerValidationError) Cause() error
Cause function returns cause value.
func (TracerValidationError) Error ¶ added in v0.2.7
func (e TracerValidationError) Error() string
Error satisfies the builtin error interface
func (TracerValidationError) ErrorName ¶ added in v0.2.7
func (e TracerValidationError) ErrorName() string
ErrorName returns error name.
func (TracerValidationError) Field ¶ added in v0.2.7
func (e TracerValidationError) Field() string
Field function returns field value.
func (TracerValidationError) Key ¶ added in v0.2.7
func (e TracerValidationError) Key() bool
Key function returns key value.
func (TracerValidationError) Reason ¶ added in v0.2.7
func (e TracerValidationError) Reason() string
Reason function returns reason value.