import "github.com/envoyproxy/go-control-plane/envoy/config/health_checker/redis/v2"
redis.pb.go redis.pb.validate.go
var File_envoy_config_health_checker_redis_v2_redis_proto protoreflect.FileDescriptor
type Redis struct { // If set, optionally perform ``EXISTS <key>`` instead of ``PING``. A return value // from Redis of 0 (does not exist) is considered a passing healthcheck. A return value other // than 0 is considered a failure. This allows the user to mark a Redis instance for maintenance // by setting the specified key to any value and waiting for traffic to drain. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
Deprecated: Use Redis.ProtoReflect.Descriptor instead.
func (x *Redis) ProtoReflect() protoreflect.Message
Validate checks the field values on Redis with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type RedisValidationError struct {
// contains filtered or unexported fields
}
RedisValidationError is the validation error returned by Redis.Validate if the designated constraints aren't met.
func (e RedisValidationError) Cause() error
Cause function returns cause value.
func (e RedisValidationError) Error() string
Error satisfies the builtin error interface
func (e RedisValidationError) ErrorName() string
ErrorName returns error name.
func (e RedisValidationError) Field() string
Field function returns field value.
func (e RedisValidationError) Key() bool
Key function returns key value.
func (e RedisValidationError) Reason() string
Reason function returns reason value.
Package envoy_config_health_checker_redis_v2 imports 17 packages (graph) and is imported by 6 packages. Updated 2021-01-08. Refresh now. Tools for package owners.