go-control-plane: github.com/envoyproxy/go-control-plane/envoy/config/health_checker/redis/v2 Index | Files

package envoy_config_health_checker_redis_v2

import "github.com/envoyproxy/go-control-plane/envoy/config/health_checker/redis/v2"

Index

Package Files

redis.pb.go redis.pb.validate.go

Variables

var File_envoy_config_health_checker_redis_v2_redis_proto protoreflect.FileDescriptor

type Redis Uses

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
}

func (*Redis) Descriptor Uses

func (*Redis) Descriptor() ([]byte, []int)

Deprecated: Use Redis.ProtoReflect.Descriptor instead.

func (*Redis) GetKey Uses

func (x *Redis) GetKey() string

func (*Redis) ProtoMessage Uses

func (*Redis) ProtoMessage()

func (*Redis) ProtoReflect Uses

func (x *Redis) ProtoReflect() protoreflect.Message

func (*Redis) Reset Uses

func (x *Redis) Reset()

func (*Redis) String Uses

func (x *Redis) String() string

func (*Redis) Validate Uses

func (m *Redis) Validate() error

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 Uses

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 (RedisValidationError) Cause Uses

func (e RedisValidationError) Cause() error

Cause function returns cause value.

func (RedisValidationError) Error Uses

func (e RedisValidationError) Error() string

Error satisfies the builtin error interface

func (RedisValidationError) ErrorName Uses

func (e RedisValidationError) ErrorName() string

ErrorName returns error name.

func (RedisValidationError) Field Uses

func (e RedisValidationError) Field() string

Field function returns field value.

func (RedisValidationError) Key Uses

func (e RedisValidationError) Key() bool

Key function returns key value.

func (RedisValidationError) Reason Uses

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.