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

package envoy_config_cluster_redis

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


Package Files

redis_cluster.pb.go redis_cluster.pb.validate.go


var File_envoy_config_cluster_redis_redis_cluster_proto protoreflect.FileDescriptor

type RedisClusterConfig Uses

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 `protobuf:"bytes,2,opt,name=cluster_refresh_timeout,json=clusterRefreshTimeout,proto3" json:"cluster_refresh_timeout,omitempty"`
    // 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 `protobuf:"bytes,3,opt,name=redirect_refresh_interval,json=redirectRefreshInterval,proto3" json:"redirect_refresh_interval,omitempty"`
    // 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 `protobuf:"bytes,4,opt,name=redirect_refresh_threshold,json=redirectRefreshThreshold,proto3" json:"redirect_refresh_threshold,omitempty"`
    // 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 `protobuf:"varint,5,opt,name=failure_refresh_threshold,json=failureRefreshThreshold,proto3" json:"failure_refresh_threshold,omitempty"`
    // 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 `protobuf:"varint,6,opt,name=host_degraded_refresh_threshold,json=hostDegradedRefreshThreshold,proto3" json:"host_degraded_refresh_threshold,omitempty"`
    // contains filtered or unexported fields

[#next-free-field: 7]

func (*RedisClusterConfig) Descriptor Uses

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

Deprecated: Use RedisClusterConfig.ProtoReflect.Descriptor instead.

func (*RedisClusterConfig) GetClusterRefreshRate Uses

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

func (*RedisClusterConfig) GetClusterRefreshTimeout Uses

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

func (*RedisClusterConfig) GetFailureRefreshThreshold Uses

func (x *RedisClusterConfig) GetFailureRefreshThreshold() uint32

func (*RedisClusterConfig) GetHostDegradedRefreshThreshold Uses

func (x *RedisClusterConfig) GetHostDegradedRefreshThreshold() uint32

func (*RedisClusterConfig) GetRedirectRefreshInterval Uses

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

func (*RedisClusterConfig) GetRedirectRefreshThreshold Uses

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

func (*RedisClusterConfig) ProtoMessage Uses

func (*RedisClusterConfig) ProtoMessage()

func (*RedisClusterConfig) ProtoReflect Uses

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

func (*RedisClusterConfig) Reset Uses

func (x *RedisClusterConfig) Reset()

func (*RedisClusterConfig) String Uses

func (x *RedisClusterConfig) String() string

func (*RedisClusterConfig) Validate Uses

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, an error is returned.

type RedisClusterConfigValidationError Uses

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 Uses

func (e RedisClusterConfigValidationError) Cause() error

Cause function returns cause value.

func (RedisClusterConfigValidationError) Error Uses

func (e RedisClusterConfigValidationError) Error() string

Error satisfies the builtin error interface

func (RedisClusterConfigValidationError) ErrorName Uses

func (e RedisClusterConfigValidationError) ErrorName() string

ErrorName returns error name.

func (RedisClusterConfigValidationError) Field Uses

func (e RedisClusterConfigValidationError) Field() string

Field function returns field value.

func (RedisClusterConfigValidationError) Key Uses

func (e RedisClusterConfigValidationError) Key() bool

Key function returns key value.

func (RedisClusterConfigValidationError) Reason Uses

func (e RedisClusterConfigValidationError) Reason() string

Reason function returns reason value.

Package envoy_config_cluster_redis imports 20 packages (graph) and is imported by 3 packages. Updated 2021-01-19. Refresh now. Tools for package owners.