Documentation ¶
Index ¶
- Variables
- type GrpcHealthCheck
- func (*GrpcHealthCheck) Descriptor() ([]byte, []int)deprecated
- func (x *GrpcHealthCheck) GetAuthority() string
- func (x *GrpcHealthCheck) GetServiceName() string
- func (*GrpcHealthCheck) ProtoMessage()
- func (x *GrpcHealthCheck) ProtoReflect() protoreflect.Message
- func (x *GrpcHealthCheck) Reset()
- func (x *GrpcHealthCheck) String() string
- func (m *GrpcHealthCheck) Validate() error
- func (m *GrpcHealthCheck) ValidateAll() error
- type GrpcHealthCheckMultiError
- type GrpcHealthCheckValidationError
- func (e GrpcHealthCheckValidationError) Cause() error
- func (e GrpcHealthCheckValidationError) Error() string
- func (e GrpcHealthCheckValidationError) ErrorName() string
- func (e GrpcHealthCheckValidationError) Field() string
- func (e GrpcHealthCheckValidationError) Key() bool
- func (e GrpcHealthCheckValidationError) Reason() string
- type HealthCheck
- func (*HealthCheck) Descriptor() ([]byte, []int)deprecated
- func (x *HealthCheck) GetEnableTls() bool
- func (x *HealthCheck) GetGrpcHealthCheck() *GrpcHealthCheck
- func (m *HealthCheck) GetHealthChecker() isHealthCheck_HealthChecker
- func (x *HealthCheck) GetHttpHealthCheck() *HttpHealthCheck
- func (x *HealthCheck) GetInterval() *durationpb.Duration
- func (x *HealthCheck) GetNoHealthCheck() *NoHealthCheck
- func (x *HealthCheck) GetPort() uint32
- func (x *HealthCheck) GetTcpHealthCheck() *TcpHealthCheck
- func (x *HealthCheck) GetTimeout() *durationpb.Duration
- 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 HealthCheckPayload
- func (*HealthCheckPayload) Descriptor() ([]byte, []int)deprecated
- func (x *HealthCheckPayload) GetBinary() []byte
- func (x *HealthCheckPayload) GetData() []byte
- func (m *HealthCheckPayload) GetPayload() isHealthCheckPayload_Payload
- func (x *HealthCheckPayload) GetText() string
- func (*HealthCheckPayload) ProtoMessage()
- func (x *HealthCheckPayload) ProtoReflect() protoreflect.Message
- func (x *HealthCheckPayload) Reset()
- func (x *HealthCheckPayload) String() string
- func (m *HealthCheckPayload) Validate() error
- func (m *HealthCheckPayload) ValidateAll() error
- type HealthCheckPayloadMultiError
- type HealthCheckPayloadValidationError
- func (e HealthCheckPayloadValidationError) Cause() error
- func (e HealthCheckPayloadValidationError) Error() string
- func (e HealthCheckPayloadValidationError) ErrorName() string
- func (e HealthCheckPayloadValidationError) Field() string
- func (e HealthCheckPayloadValidationError) Key() bool
- func (e HealthCheckPayloadValidationError) Reason() string
- type HealthCheckPayload_Binary
- type HealthCheckPayload_Text
- 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_GrpcHealthCheck
- type HealthCheck_HttpHealthCheck
- type HealthCheck_NoHealthCheck
- type HealthCheck_TcpHealthCheck
- type HttpHealthCheck
- func (*HttpHealthCheck) Descriptor() ([]byte, []int)deprecated
- func (x *HttpHealthCheck) GetCodecClientType() v11.CodecClientType
- func (x *HttpHealthCheck) GetExpectedStatuses() *v11.Int64Range
- func (x *HttpHealthCheck) GetHost() string
- func (x *HttpHealthCheck) GetMethod() RequestMethod
- func (x *HttpHealthCheck) GetPath() string
- func (x *HttpHealthCheck) GetReceive() *HealthCheckPayload
- func (x *HttpHealthCheck) GetRequestHeadersToAdd() []*v1.HeaderValueOption
- func (x *HttpHealthCheck) GetSend() *HealthCheckPayload
- func (*HttpHealthCheck) ProtoMessage()
- func (x *HttpHealthCheck) ProtoReflect() protoreflect.Message
- func (x *HttpHealthCheck) Reset()
- func (x *HttpHealthCheck) String() string
- func (m *HttpHealthCheck) Validate() error
- func (m *HttpHealthCheck) ValidateAll() error
- type HttpHealthCheckMultiError
- type HttpHealthCheckValidationError
- func (e HttpHealthCheckValidationError) Cause() error
- func (e HttpHealthCheckValidationError) Error() string
- func (e HttpHealthCheckValidationError) ErrorName() string
- func (e HttpHealthCheckValidationError) Field() string
- func (e HttpHealthCheckValidationError) Key() bool
- func (e HttpHealthCheckValidationError) Reason() string
- type NoHealthCheck
- func (*NoHealthCheck) Descriptor() ([]byte, []int)deprecated
- func (*NoHealthCheck) ProtoMessage()
- func (x *NoHealthCheck) ProtoReflect() protoreflect.Message
- func (x *NoHealthCheck) Reset()
- func (x *NoHealthCheck) String() string
- func (m *NoHealthCheck) Validate() error
- func (m *NoHealthCheck) ValidateAll() error
- type NoHealthCheckMultiError
- type NoHealthCheckValidationError
- func (e NoHealthCheckValidationError) Cause() error
- func (e NoHealthCheckValidationError) Error() string
- func (e NoHealthCheckValidationError) ErrorName() string
- func (e NoHealthCheckValidationError) Field() string
- func (e NoHealthCheckValidationError) Key() bool
- func (e NoHealthCheckValidationError) Reason() string
- type RequestMethod
- func (RequestMethod) Descriptor() protoreflect.EnumDescriptor
- func (x RequestMethod) Enum() *RequestMethod
- func (RequestMethod) EnumDescriptor() ([]byte, []int)deprecated
- func (x RequestMethod) Number() protoreflect.EnumNumber
- func (x RequestMethod) String() string
- func (RequestMethod) Type() protoreflect.EnumType
- type TcpHealthCheck
- func (*TcpHealthCheck) Descriptor() ([]byte, []int)deprecated
- func (x *TcpHealthCheck) GetReceive() []*HealthCheckPayload
- func (x *TcpHealthCheck) GetSend() *HealthCheckPayload
- func (*TcpHealthCheck) ProtoMessage()
- func (x *TcpHealthCheck) ProtoReflect() protoreflect.Message
- func (x *TcpHealthCheck) Reset()
- func (x *TcpHealthCheck) String() string
- func (m *TcpHealthCheck) Validate() error
- func (m *TcpHealthCheck) ValidateAll() error
- type TcpHealthCheckMultiError
- type TcpHealthCheckValidationError
- func (e TcpHealthCheckValidationError) Cause() error
- func (e TcpHealthCheckValidationError) Error() string
- func (e TcpHealthCheckValidationError) ErrorName() string
- func (e TcpHealthCheckValidationError) Field() string
- func (e TcpHealthCheckValidationError) Key() bool
- func (e TcpHealthCheckValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var ( RequestMethod_name = map[int32]string{ 0: "METHOD_UNSPECIFIED", 1: "GET", 2: "HEAD", 3: "POST", 4: "PUT", 5: "DELETE", 6: "CONNECT", 7: "OPTIONS", 8: "TRACE", 9: "PATCH", } RequestMethod_value = map[string]int32{ "METHOD_UNSPECIFIED": 0, "GET": 1, "HEAD": 2, "POST": 3, "PUT": 4, "DELETE": 5, "CONNECT": 6, "OPTIONS": 7, "TRACE": 8, "PATCH": 9, } )
Enum value maps for RequestMethod.
var File_gsloc_api_config_healthchecks_v1_healthcheck_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type GrpcHealthCheck ¶
type GrpcHealthCheck struct { // An optional service name parameter which will be sent to gRPC service in // `grpc.health.v1.HealthCheckRequest // <https://github.com/grpc/grpc/blob/master/src/proto/grpc/health/v1/health.proto#L20>`_. // message. See `gRPC health-checking overview // <https://github.com/grpc/grpc/blob/master/doc/health-checking.md>`_ for more information. ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` // The value of the :authority header in the gRPC health check request. If // left empty (default value), the name of the cluster this health check is associated // with will be used. The authority header can be customized for a specific endpoint by setting // the HealthCheckConfig.hostname field. Authority string `protobuf:"bytes,2,opt,name=authority,proto3" json:"authority,omitempty"` // contains filtered or unexported fields }
`grpc.health.v1.Health <https://github.com/grpc/grpc/blob/master/src/proto/grpc/health/v1/health.proto>`_-based healthcheck. See `gRPC doc <https://github.com/grpc/grpc/blob/master/doc/health-checking.md>`_ for details.
func (*GrpcHealthCheck) Descriptor
deprecated
func (*GrpcHealthCheck) Descriptor() ([]byte, []int)
Deprecated: Use GrpcHealthCheck.ProtoReflect.Descriptor instead.
func (*GrpcHealthCheck) GetAuthority ¶
func (x *GrpcHealthCheck) GetAuthority() string
func (*GrpcHealthCheck) GetServiceName ¶
func (x *GrpcHealthCheck) GetServiceName() string
func (*GrpcHealthCheck) ProtoMessage ¶
func (*GrpcHealthCheck) ProtoMessage()
func (*GrpcHealthCheck) ProtoReflect ¶
func (x *GrpcHealthCheck) ProtoReflect() protoreflect.Message
func (*GrpcHealthCheck) Reset ¶
func (x *GrpcHealthCheck) Reset()
func (*GrpcHealthCheck) String ¶
func (x *GrpcHealthCheck) String() string
func (*GrpcHealthCheck) Validate ¶
func (m *GrpcHealthCheck) Validate() error
Validate checks the field values on GrpcHealthCheck 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 (*GrpcHealthCheck) ValidateAll ¶
func (m *GrpcHealthCheck) ValidateAll() error
ValidateAll checks the field values on GrpcHealthCheck 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 GrpcHealthCheckMultiError, or nil if none found.
type GrpcHealthCheckMultiError ¶
type GrpcHealthCheckMultiError []error
GrpcHealthCheckMultiError is an error wrapping multiple validation errors returned by GrpcHealthCheck.ValidateAll() if the designated constraints aren't met.
func (GrpcHealthCheckMultiError) AllErrors ¶
func (m GrpcHealthCheckMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GrpcHealthCheckMultiError) Error ¶
func (m GrpcHealthCheckMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GrpcHealthCheckValidationError ¶
type GrpcHealthCheckValidationError struct {
// contains filtered or unexported fields
}
GrpcHealthCheckValidationError is the validation error returned by GrpcHealthCheck.Validate if the designated constraints aren't met.
func (GrpcHealthCheckValidationError) Cause ¶
func (e GrpcHealthCheckValidationError) Cause() error
Cause function returns cause value.
func (GrpcHealthCheckValidationError) Error ¶
func (e GrpcHealthCheckValidationError) Error() string
Error satisfies the builtin error interface
func (GrpcHealthCheckValidationError) ErrorName ¶
func (e GrpcHealthCheckValidationError) ErrorName() string
ErrorName returns error name.
func (GrpcHealthCheckValidationError) Field ¶
func (e GrpcHealthCheckValidationError) Field() string
Field function returns field value.
func (GrpcHealthCheckValidationError) Key ¶
func (e GrpcHealthCheckValidationError) Key() bool
Key function returns key value.
func (GrpcHealthCheckValidationError) Reason ¶
func (e GrpcHealthCheckValidationError) Reason() string
Reason function returns reason value.
type HealthCheck ¶
type HealthCheck struct { // The time to wait for a health check response. If the timeout is reached the // health check attempt will be considered a failure. Timeout *durationpb.Duration `protobuf:"bytes,1,opt,name=timeout,proto3" json:"timeout,omitempty"` // The interval between health checks. Interval *durationpb.Duration `protobuf:"bytes,2,opt,name=interval,proto3" json:"interval,omitempty"` // port specifies the port to use when performing health checks. Port uint32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"` // Types that are assignable to HealthChecker: // // *HealthCheck_HttpHealthCheck // *HealthCheck_TcpHealthCheck // *HealthCheck_GrpcHealthCheck // *HealthCheck_NoHealthCheck HealthChecker isHealthCheck_HealthChecker `protobuf_oneof:"health_checker"` // Enable TLS for healthcheck. EnableTls bool `protobuf:"varint,8,opt,name=enable_tls,json=enableTls,proto3" json:"enable_tls,omitempty"` // contains filtered or unexported fields }
Health check configuration.
func (*HealthCheck) Descriptor
deprecated
func (*HealthCheck) Descriptor() ([]byte, []int)
Deprecated: Use HealthCheck.ProtoReflect.Descriptor instead.
func (*HealthCheck) GetEnableTls ¶
func (x *HealthCheck) GetEnableTls() bool
func (*HealthCheck) GetGrpcHealthCheck ¶
func (x *HealthCheck) GetGrpcHealthCheck() *GrpcHealthCheck
func (*HealthCheck) GetHealthChecker ¶
func (m *HealthCheck) GetHealthChecker() isHealthCheck_HealthChecker
func (*HealthCheck) GetHttpHealthCheck ¶
func (x *HealthCheck) GetHttpHealthCheck() *HttpHealthCheck
func (*HealthCheck) GetInterval ¶
func (x *HealthCheck) GetInterval() *durationpb.Duration
func (*HealthCheck) GetNoHealthCheck ¶
func (x *HealthCheck) GetNoHealthCheck() *NoHealthCheck
func (*HealthCheck) GetPort ¶
func (x *HealthCheck) GetPort() uint32
func (*HealthCheck) GetTcpHealthCheck ¶
func (x *HealthCheck) GetTcpHealthCheck() *TcpHealthCheck
func (*HealthCheck) GetTimeout ¶
func (x *HealthCheck) GetTimeout() *durationpb.Duration
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 HealthCheckPayload ¶
type HealthCheckPayload struct { // Types that are assignable to Payload: // // *HealthCheckPayload_Text // *HealthCheckPayload_Binary Payload isHealthCheckPayload_Payload `protobuf_oneof:"payload"` // contains filtered or unexported fields }
Describes the encoding of the payload bytes in the payload.
func (*HealthCheckPayload) Descriptor
deprecated
func (*HealthCheckPayload) Descriptor() ([]byte, []int)
Deprecated: Use HealthCheckPayload.ProtoReflect.Descriptor instead.
func (*HealthCheckPayload) GetBinary ¶
func (x *HealthCheckPayload) GetBinary() []byte
func (*HealthCheckPayload) GetData ¶
func (x *HealthCheckPayload) GetData() []byte
func (*HealthCheckPayload) GetPayload ¶
func (m *HealthCheckPayload) GetPayload() isHealthCheckPayload_Payload
func (*HealthCheckPayload) GetText ¶
func (x *HealthCheckPayload) GetText() string
func (*HealthCheckPayload) ProtoMessage ¶
func (*HealthCheckPayload) ProtoMessage()
func (*HealthCheckPayload) ProtoReflect ¶
func (x *HealthCheckPayload) ProtoReflect() protoreflect.Message
func (*HealthCheckPayload) Reset ¶
func (x *HealthCheckPayload) Reset()
func (*HealthCheckPayload) String ¶
func (x *HealthCheckPayload) String() string
func (*HealthCheckPayload) Validate ¶
func (m *HealthCheckPayload) Validate() error
Validate checks the field values on HealthCheckPayload 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 (*HealthCheckPayload) ValidateAll ¶
func (m *HealthCheckPayload) ValidateAll() error
ValidateAll checks the field values on HealthCheckPayload 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 HealthCheckPayloadMultiError, or nil if none found.
type HealthCheckPayloadMultiError ¶
type HealthCheckPayloadMultiError []error
HealthCheckPayloadMultiError is an error wrapping multiple validation errors returned by HealthCheckPayload.ValidateAll() if the designated constraints aren't met.
func (HealthCheckPayloadMultiError) AllErrors ¶
func (m HealthCheckPayloadMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (HealthCheckPayloadMultiError) Error ¶
func (m HealthCheckPayloadMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type HealthCheckPayloadValidationError ¶
type HealthCheckPayloadValidationError struct {
// contains filtered or unexported fields
}
HealthCheckPayloadValidationError is the validation error returned by HealthCheckPayload.Validate if the designated constraints aren't met.
func (HealthCheckPayloadValidationError) Cause ¶
func (e HealthCheckPayloadValidationError) Cause() error
Cause function returns cause value.
func (HealthCheckPayloadValidationError) Error ¶
func (e HealthCheckPayloadValidationError) Error() string
Error satisfies the builtin error interface
func (HealthCheckPayloadValidationError) ErrorName ¶
func (e HealthCheckPayloadValidationError) ErrorName() string
ErrorName returns error name.
func (HealthCheckPayloadValidationError) Field ¶
func (e HealthCheckPayloadValidationError) Field() string
Field function returns field value.
func (HealthCheckPayloadValidationError) Key ¶
func (e HealthCheckPayloadValidationError) Key() bool
Key function returns key value.
func (HealthCheckPayloadValidationError) Reason ¶
func (e HealthCheckPayloadValidationError) Reason() string
Reason function returns reason value.
type HealthCheckPayload_Binary ¶
type HealthCheckPayload_Binary struct { // Binary payload. Binary []byte `protobuf:"bytes,2,opt,name=binary,proto3,oneof"` }
type HealthCheckPayload_Text ¶
type HealthCheckPayload_Text struct { // Hex encoded payload. E.g., "000000FF". Text string `protobuf:"bytes,1,opt,name=text,proto3,oneof"` }
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_GrpcHealthCheck ¶
type HealthCheck_GrpcHealthCheck struct { // gRPC health check. GrpcHealthCheck *GrpcHealthCheck `protobuf:"bytes,6,opt,name=grpc_health_check,json=grpcHealthCheck,proto3,oneof"` }
type HealthCheck_HttpHealthCheck ¶
type HealthCheck_HttpHealthCheck struct { // HTTP health check. HttpHealthCheck *HttpHealthCheck `protobuf:"bytes,4,opt,name=http_health_check,json=httpHealthCheck,proto3,oneof"` }
type HealthCheck_NoHealthCheck ¶
type HealthCheck_NoHealthCheck struct { // No health check. NoHealthCheck *NoHealthCheck `protobuf:"bytes,7,opt,name=no_health_check,json=noHealthCheck,proto3,oneof"` }
type HealthCheck_TcpHealthCheck ¶
type HealthCheck_TcpHealthCheck struct { // TCP health check. TcpHealthCheck *TcpHealthCheck `protobuf:"bytes,5,opt,name=tcp_health_check,json=tcpHealthCheck,proto3,oneof"` }
type HttpHealthCheck ¶
type HttpHealthCheck struct { // The value of the host header in the HTTP health check request. If // left empty (default value), the name of the cluster this health check is associated // with will be used. Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` // Specifies the HTTP path that will be requested during health checking. For example // */healthcheck*. Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` // HTTP specific payload. Send *HealthCheckPayload `protobuf:"bytes,3,opt,name=send,proto3" json:"send,omitempty"` // HTTP specific response. Receive *HealthCheckPayload `protobuf:"bytes,4,opt,name=receive,proto3" json:"receive,omitempty"` // Specifies a list of HTTP headers that should be added to each request that is sent to the // health checked cluster. RequestHeadersToAdd []*v1.HeaderValueOption `protobuf:"bytes,5,rep,name=request_headers_to_add,json=requestHeadersToAdd,proto3" json:"request_headers_to_add,omitempty"` // Specifies a list of HTTP response statuses considered healthy. If provided, replaces default // 200-only policy - 200 must be included explicitly as needed. Ranges follow half-open // semantics of Int64Range. The start and end of each // range are required. Only statuses in the range [100, 600) are allowed. ExpectedStatuses *v11.Int64Range `protobuf:"bytes,6,opt,name=expected_statuses,json=expectedStatuses,proto3" json:"expected_statuses,omitempty"` // Use specified application protocol for health checks. CodecClientType v11.CodecClientType `` /* 144-byte string literal not displayed */ // HTTP Method that will be used for health checking, default is "GET". // GET, HEAD, POST, PUT, DELETE, OPTIONS, TRACE, PATCH methods are supported, but making request body is not supported. // CONNECT method is disallowed because it is not appropriate for health check request. // If a non-200 response is expected by the method, it needs to be set in expected_statuses. Method RequestMethod `protobuf:"varint,8,opt,name=method,proto3,enum=gsloc.api.config.healthchecks.v1.RequestMethod" json:"method,omitempty"` // contains filtered or unexported fields }
func (*HttpHealthCheck) Descriptor
deprecated
func (*HttpHealthCheck) Descriptor() ([]byte, []int)
Deprecated: Use HttpHealthCheck.ProtoReflect.Descriptor instead.
func (*HttpHealthCheck) GetCodecClientType ¶
func (x *HttpHealthCheck) GetCodecClientType() v11.CodecClientType
func (*HttpHealthCheck) GetExpectedStatuses ¶
func (x *HttpHealthCheck) GetExpectedStatuses() *v11.Int64Range
func (*HttpHealthCheck) GetHost ¶
func (x *HttpHealthCheck) GetHost() string
func (*HttpHealthCheck) GetMethod ¶
func (x *HttpHealthCheck) GetMethod() RequestMethod
func (*HttpHealthCheck) GetPath ¶
func (x *HttpHealthCheck) GetPath() string
func (*HttpHealthCheck) GetReceive ¶
func (x *HttpHealthCheck) GetReceive() *HealthCheckPayload
func (*HttpHealthCheck) GetRequestHeadersToAdd ¶
func (x *HttpHealthCheck) GetRequestHeadersToAdd() []*v1.HeaderValueOption
func (*HttpHealthCheck) GetSend ¶
func (x *HttpHealthCheck) GetSend() *HealthCheckPayload
func (*HttpHealthCheck) ProtoMessage ¶
func (*HttpHealthCheck) ProtoMessage()
func (*HttpHealthCheck) ProtoReflect ¶
func (x *HttpHealthCheck) ProtoReflect() protoreflect.Message
func (*HttpHealthCheck) Reset ¶
func (x *HttpHealthCheck) Reset()
func (*HttpHealthCheck) String ¶
func (x *HttpHealthCheck) String() string
func (*HttpHealthCheck) Validate ¶
func (m *HttpHealthCheck) Validate() error
Validate checks the field values on HttpHealthCheck 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 (*HttpHealthCheck) ValidateAll ¶
func (m *HttpHealthCheck) ValidateAll() error
ValidateAll checks the field values on HttpHealthCheck 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 HttpHealthCheckMultiError, or nil if none found.
type HttpHealthCheckMultiError ¶
type HttpHealthCheckMultiError []error
HttpHealthCheckMultiError is an error wrapping multiple validation errors returned by HttpHealthCheck.ValidateAll() if the designated constraints aren't met.
func (HttpHealthCheckMultiError) AllErrors ¶
func (m HttpHealthCheckMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (HttpHealthCheckMultiError) Error ¶
func (m HttpHealthCheckMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type HttpHealthCheckValidationError ¶
type HttpHealthCheckValidationError struct {
// contains filtered or unexported fields
}
HttpHealthCheckValidationError is the validation error returned by HttpHealthCheck.Validate if the designated constraints aren't met.
func (HttpHealthCheckValidationError) Cause ¶
func (e HttpHealthCheckValidationError) Cause() error
Cause function returns cause value.
func (HttpHealthCheckValidationError) Error ¶
func (e HttpHealthCheckValidationError) Error() string
Error satisfies the builtin error interface
func (HttpHealthCheckValidationError) ErrorName ¶
func (e HttpHealthCheckValidationError) ErrorName() string
ErrorName returns error name.
func (HttpHealthCheckValidationError) Field ¶
func (e HttpHealthCheckValidationError) Field() string
Field function returns field value.
func (HttpHealthCheckValidationError) Key ¶
func (e HttpHealthCheckValidationError) Key() bool
Key function returns key value.
func (HttpHealthCheckValidationError) Reason ¶
func (e HttpHealthCheckValidationError) Reason() string
Reason function returns reason value.
type NoHealthCheck ¶
type NoHealthCheck struct {
// contains filtered or unexported fields
}
No health check. This health check is always considered healthy. This is particularly useful for udp route which cannot be health checked.
func (*NoHealthCheck) Descriptor
deprecated
func (*NoHealthCheck) Descriptor() ([]byte, []int)
Deprecated: Use NoHealthCheck.ProtoReflect.Descriptor instead.
func (*NoHealthCheck) ProtoMessage ¶
func (*NoHealthCheck) ProtoMessage()
func (*NoHealthCheck) ProtoReflect ¶
func (x *NoHealthCheck) ProtoReflect() protoreflect.Message
func (*NoHealthCheck) Reset ¶
func (x *NoHealthCheck) Reset()
func (*NoHealthCheck) String ¶
func (x *NoHealthCheck) String() string
func (*NoHealthCheck) Validate ¶
func (m *NoHealthCheck) Validate() error
Validate checks the field values on NoHealthCheck 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 (*NoHealthCheck) ValidateAll ¶
func (m *NoHealthCheck) ValidateAll() error
ValidateAll checks the field values on NoHealthCheck 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 NoHealthCheckMultiError, or nil if none found.
type NoHealthCheckMultiError ¶
type NoHealthCheckMultiError []error
NoHealthCheckMultiError is an error wrapping multiple validation errors returned by NoHealthCheck.ValidateAll() if the designated constraints aren't met.
func (NoHealthCheckMultiError) AllErrors ¶
func (m NoHealthCheckMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (NoHealthCheckMultiError) Error ¶
func (m NoHealthCheckMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type NoHealthCheckValidationError ¶
type NoHealthCheckValidationError struct {
// contains filtered or unexported fields
}
NoHealthCheckValidationError is the validation error returned by NoHealthCheck.Validate if the designated constraints aren't met.
func (NoHealthCheckValidationError) Cause ¶
func (e NoHealthCheckValidationError) Cause() error
Cause function returns cause value.
func (NoHealthCheckValidationError) Error ¶
func (e NoHealthCheckValidationError) Error() string
Error satisfies the builtin error interface
func (NoHealthCheckValidationError) ErrorName ¶
func (e NoHealthCheckValidationError) ErrorName() string
ErrorName returns error name.
func (NoHealthCheckValidationError) Field ¶
func (e NoHealthCheckValidationError) Field() string
Field function returns field value.
func (NoHealthCheckValidationError) Key ¶
func (e NoHealthCheckValidationError) Key() bool
Key function returns key value.
func (NoHealthCheckValidationError) Reason ¶
func (e NoHealthCheckValidationError) Reason() string
Reason function returns reason value.
type RequestMethod ¶
type RequestMethod int32
HTTP request method.
const ( RequestMethod_METHOD_UNSPECIFIED RequestMethod = 0 RequestMethod_GET RequestMethod = 1 RequestMethod_HEAD RequestMethod = 2 RequestMethod_POST RequestMethod = 3 RequestMethod_PUT RequestMethod = 4 RequestMethod_DELETE RequestMethod = 5 RequestMethod_CONNECT RequestMethod = 6 RequestMethod_OPTIONS RequestMethod = 7 RequestMethod_TRACE RequestMethod = 8 RequestMethod_PATCH RequestMethod = 9 )
func (RequestMethod) Descriptor ¶
func (RequestMethod) Descriptor() protoreflect.EnumDescriptor
func (RequestMethod) Enum ¶
func (x RequestMethod) Enum() *RequestMethod
func (RequestMethod) EnumDescriptor
deprecated
func (RequestMethod) EnumDescriptor() ([]byte, []int)
Deprecated: Use RequestMethod.Descriptor instead.
func (RequestMethod) Number ¶
func (x RequestMethod) Number() protoreflect.EnumNumber
func (RequestMethod) String ¶
func (x RequestMethod) String() string
func (RequestMethod) Type ¶
func (RequestMethod) Type() protoreflect.EnumType
type TcpHealthCheck ¶
type TcpHealthCheck struct { // Empty payloads imply a connect-only health check. Send *HealthCheckPayload `protobuf:"bytes,1,opt,name=send,proto3" json:"send,omitempty"` // When checking the response, “fuzzy” matching is performed such that each // binary block must be found, and in the order specified, but not // necessarily contiguous. Receive []*HealthCheckPayload `protobuf:"bytes,2,rep,name=receive,proto3" json:"receive,omitempty"` // contains filtered or unexported fields }
func (*TcpHealthCheck) Descriptor
deprecated
func (*TcpHealthCheck) Descriptor() ([]byte, []int)
Deprecated: Use TcpHealthCheck.ProtoReflect.Descriptor instead.
func (*TcpHealthCheck) GetReceive ¶
func (x *TcpHealthCheck) GetReceive() []*HealthCheckPayload
func (*TcpHealthCheck) GetSend ¶
func (x *TcpHealthCheck) GetSend() *HealthCheckPayload
func (*TcpHealthCheck) ProtoMessage ¶
func (*TcpHealthCheck) ProtoMessage()
func (*TcpHealthCheck) ProtoReflect ¶
func (x *TcpHealthCheck) ProtoReflect() protoreflect.Message
func (*TcpHealthCheck) Reset ¶
func (x *TcpHealthCheck) Reset()
func (*TcpHealthCheck) String ¶
func (x *TcpHealthCheck) String() string
func (*TcpHealthCheck) Validate ¶
func (m *TcpHealthCheck) Validate() error
Validate checks the field values on TcpHealthCheck 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 (*TcpHealthCheck) ValidateAll ¶
func (m *TcpHealthCheck) ValidateAll() error
ValidateAll checks the field values on TcpHealthCheck 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 TcpHealthCheckMultiError, or nil if none found.
type TcpHealthCheckMultiError ¶
type TcpHealthCheckMultiError []error
TcpHealthCheckMultiError is an error wrapping multiple validation errors returned by TcpHealthCheck.ValidateAll() if the designated constraints aren't met.
func (TcpHealthCheckMultiError) AllErrors ¶
func (m TcpHealthCheckMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TcpHealthCheckMultiError) Error ¶
func (m TcpHealthCheckMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TcpHealthCheckValidationError ¶
type TcpHealthCheckValidationError struct {
// contains filtered or unexported fields
}
TcpHealthCheckValidationError is the validation error returned by TcpHealthCheck.Validate if the designated constraints aren't met.
func (TcpHealthCheckValidationError) Cause ¶
func (e TcpHealthCheckValidationError) Cause() error
Cause function returns cause value.
func (TcpHealthCheckValidationError) Error ¶
func (e TcpHealthCheckValidationError) Error() string
Error satisfies the builtin error interface
func (TcpHealthCheckValidationError) ErrorName ¶
func (e TcpHealthCheckValidationError) ErrorName() string
ErrorName returns error name.
func (TcpHealthCheckValidationError) Field ¶
func (e TcpHealthCheckValidationError) Field() string
Field function returns field value.
func (TcpHealthCheckValidationError) Key ¶
func (e TcpHealthCheckValidationError) Key() bool
Key function returns key value.
func (TcpHealthCheckValidationError) Reason ¶
func (e TcpHealthCheckValidationError) Reason() string
Reason function returns reason value.