redisv3

package
v0.0.0-...-c499cad Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_envoy_extensions_clusters_redis_v3_redis_cluster_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type RedisClusterConfig

type RedisClusterConfig struct {

	// Interval between successive topology refresh requests. If not set, this defaults to 5s.
	ClusterRefreshRate *duration.Duration `protobuf:"bytes,1,opt,name=cluster_refresh_rate,json=clusterRefreshRate,proto3" json:"cluster_refresh_rate,omitempty"`
	// Timeout for topology refresh request. If not set, this defaults to 3s.
	ClusterRefreshTimeout *duration.Duration `` /* 126-byte string literal not displayed */
	// The minimum interval that must pass after triggering a topology refresh request before a new
	// request can possibly be triggered again. Any errors received during one of these
	// time intervals are ignored. If not set, this defaults to 5s.
	RedirectRefreshInterval *duration.Duration `` /* 132-byte string literal not displayed */
	// The number of redirection errors that must be received before
	// triggering a topology refresh request. If not set, this defaults to 5.
	// If this is set to 0, topology refresh after redirect is disabled.
	RedirectRefreshThreshold *wrappers.UInt32Value `` /* 135-byte string literal not displayed */
	// The number of failures that must be received before triggering a topology refresh request.
	// If not set, this defaults to 0, which disables the topology refresh due to failure.
	FailureRefreshThreshold uint32 `` /* 133-byte string literal not displayed */
	// The number of hosts became degraded or unhealthy before triggering a topology refresh request.
	// If not set, this defaults to 0, which disables the topology refresh due to degraded or
	// unhealthy host.
	HostDegradedRefreshThreshold uint32 `` /* 150-byte string literal not displayed */
	// contains filtered or unexported fields
}

[#next-free-field: 7]

func (*RedisClusterConfig) Descriptor deprecated

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

Deprecated: Use RedisClusterConfig.ProtoReflect.Descriptor instead.

func (*RedisClusterConfig) GetClusterRefreshRate

func (x *RedisClusterConfig) GetClusterRefreshRate() *duration.Duration

func (*RedisClusterConfig) GetClusterRefreshTimeout

func (x *RedisClusterConfig) GetClusterRefreshTimeout() *duration.Duration

func (*RedisClusterConfig) GetFailureRefreshThreshold

func (x *RedisClusterConfig) GetFailureRefreshThreshold() uint32

func (*RedisClusterConfig) GetHostDegradedRefreshThreshold

func (x *RedisClusterConfig) GetHostDegradedRefreshThreshold() uint32

func (*RedisClusterConfig) GetRedirectRefreshInterval

func (x *RedisClusterConfig) GetRedirectRefreshInterval() *duration.Duration

func (*RedisClusterConfig) GetRedirectRefreshThreshold

func (x *RedisClusterConfig) GetRedirectRefreshThreshold() *wrappers.UInt32Value

func (*RedisClusterConfig) ProtoMessage

func (*RedisClusterConfig) ProtoMessage()

func (*RedisClusterConfig) ProtoReflect

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

func (*RedisClusterConfig) Reset

func (x *RedisClusterConfig) Reset()

func (*RedisClusterConfig) String

func (x *RedisClusterConfig) String() string

func (*RedisClusterConfig) Validate

func (m *RedisClusterConfig) Validate() error

Validate checks the field values on RedisClusterConfig 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 (*RedisClusterConfig) ValidateAll

func (m *RedisClusterConfig) ValidateAll() error

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

type RedisClusterConfigMultiError

type RedisClusterConfigMultiError []error

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

func (RedisClusterConfigMultiError) AllErrors

func (m RedisClusterConfigMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RedisClusterConfigMultiError) Error

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

type RedisClusterConfigValidationError

type RedisClusterConfigValidationError struct {
	// contains filtered or unexported fields
}

RedisClusterConfigValidationError is the validation error returned by RedisClusterConfig.Validate if the designated constraints aren't met.

func (RedisClusterConfigValidationError) Cause

Cause function returns cause value.

func (RedisClusterConfigValidationError) Error

Error satisfies the builtin error interface

func (RedisClusterConfigValidationError) ErrorName

ErrorName returns error name.

func (RedisClusterConfigValidationError) Field

Field function returns field value.

func (RedisClusterConfigValidationError) Key

Key function returns key value.

func (RedisClusterConfigValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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