config

package
v1.5.1-rc.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

+kubebuilder:validation:Optional

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DistCacheConfig

type DistCacheConfig struct {
	// BindAddr denotes the address that DistCache will bind to for communication with other peer nodes.
	BindAddr string `json:"bind_addr" default:":3320" validate:"hostname_port"`
	// Address to bind [`memberlist`](https://github.com/hashicorp/memberlist) server to.
	MemberlistBindAddr string `json:"memberlist_bind_addr" default:":3322" validate:"hostname_port"`
	// Address of [`memberlist`](https://github.com/hashicorp/memberlist) to advertise to other cluster members. Used for NAT traversal if provided.
	MemberlistAdvertiseAddr string `json:"memberlist_advertise_addr" validate:"omitempty,hostname_port"`
	// ReplicaCount is 1 by default.
	ReplicaCount int `json:"replica_count" default:"1"`
}

DistCacheConfig configures distributed cache that holds per-label counters in distributed rate limiters. swagger:model +kubebuilder:object:generate=true

func (*DistCacheConfig) DeepCopy

func (in *DistCacheConfig) DeepCopy() *DistCacheConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DistCacheConfig.

func (*DistCacheConfig) DeepCopyInto

func (in *DistCacheConfig) DeepCopyInto(out *DistCacheConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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