redisv2

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2024 License: Apache-2.0 Imports: 17 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_envoy_config_health_checker_redis_v2_redis_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Redis

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 deprecated

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

Deprecated: Use Redis.ProtoReflect.Descriptor instead.

func (*Redis) GetKey

func (x *Redis) GetKey() string

func (*Redis) ProtoMessage

func (*Redis) ProtoMessage()

func (*Redis) ProtoReflect added in v0.9.6

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

func (*Redis) Reset

func (x *Redis) Reset()

func (*Redis) String

func (x *Redis) String() string

func (*Redis) Validate

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, the first error encountered is returned, or nil if there are no violations.

func (*Redis) ValidateAll added in v0.10.0

func (m *Redis) ValidateAll() error

ValidateAll checks the field values on Redis 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 RedisMultiError, or nil if none found.

type RedisMultiError added in v0.10.0

type RedisMultiError []error

RedisMultiError is an error wrapping multiple validation errors returned by Redis.ValidateAll() if the designated constraints aren't met.

func (RedisMultiError) AllErrors added in v0.10.0

func (m RedisMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RedisMultiError) Error added in v0.10.0

func (m RedisMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type RedisValidationError

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

func (e RedisValidationError) Cause() error

Cause function returns cause value.

func (RedisValidationError) Error

func (e RedisValidationError) Error() string

Error satisfies the builtin error interface

func (RedisValidationError) ErrorName added in v0.7.0

func (e RedisValidationError) ErrorName() string

ErrorName returns error name.

func (RedisValidationError) Field

func (e RedisValidationError) Field() string

Field function returns field value.

func (RedisValidationError) Key

func (e RedisValidationError) Key() bool

Key function returns key value.

func (RedisValidationError) Reason

func (e RedisValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL