zookeeper_proxyv3

package
v0.0.0-...-5360bea Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LatencyThresholdOverride_Opcode_name = map[int32]string{
		0:  "Connect",
		1:  "Create",
		2:  "Delete",
		3:  "Exists",
		4:  "GetData",
		5:  "SetData",
		6:  "GetAcl",
		7:  "SetAcl",
		8:  "GetChildren",
		9:  "Sync",
		10: "Ping",
		11: "GetChildren2",
		12: "Check",
		13: "Multi",
		14: "Create2",
		15: "Reconfig",
		16: "CheckWatches",
		17: "RemoveWatches",
		18: "CreateContainer",
		19: "CreateTtl",
		20: "Close",
		21: "SetAuth",
		22: "SetWatches",
		23: "GetEphemerals",
		24: "GetAllChildrenNumber",
		25: "SetWatches2",
	}
	LatencyThresholdOverride_Opcode_value = map[string]int32{
		"Connect":              0,
		"Create":               1,
		"Delete":               2,
		"Exists":               3,
		"GetData":              4,
		"SetData":              5,
		"GetAcl":               6,
		"SetAcl":               7,
		"GetChildren":          8,
		"Sync":                 9,
		"Ping":                 10,
		"GetChildren2":         11,
		"Check":                12,
		"Multi":                13,
		"Create2":              14,
		"Reconfig":             15,
		"CheckWatches":         16,
		"RemoveWatches":        17,
		"CreateContainer":      18,
		"CreateTtl":            19,
		"Close":                20,
		"SetAuth":              21,
		"SetWatches":           22,
		"GetEphemerals":        23,
		"GetAllChildrenNumber": 24,
		"SetWatches2":          25,
	}
)

Enum value maps for LatencyThresholdOverride_Opcode.

View Source
var File_envoy_extensions_filters_network_zookeeper_proxy_v3_zookeeper_proxy_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type LatencyThresholdOverride

type LatencyThresholdOverride struct {

	// The ZooKeeper opcodes. Can be found as part of the ZooKeeper source code:
	//
	// https://github.com/apache/zookeeper/blob/master/zookeeper-server/src/main/java/org/apache/zookeeper/ZooDefs.java
	//
	Opcode LatencyThresholdOverride_Opcode `` /* 155-byte string literal not displayed */
	// The latency threshold override of certain opcode.
	Threshold *duration.Duration `protobuf:"bytes,2,opt,name=threshold,proto3" json:"threshold,omitempty"`
	// contains filtered or unexported fields
}

func (*LatencyThresholdOverride) Descriptor deprecated

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

Deprecated: Use LatencyThresholdOverride.ProtoReflect.Descriptor instead.

func (*LatencyThresholdOverride) GetOpcode

func (*LatencyThresholdOverride) GetThreshold

func (x *LatencyThresholdOverride) GetThreshold() *duration.Duration

func (*LatencyThresholdOverride) ProtoMessage

func (*LatencyThresholdOverride) ProtoMessage()

func (*LatencyThresholdOverride) ProtoReflect

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

func (*LatencyThresholdOverride) Reset

func (x *LatencyThresholdOverride) Reset()

func (*LatencyThresholdOverride) String

func (x *LatencyThresholdOverride) String() string

func (*LatencyThresholdOverride) Validate

func (m *LatencyThresholdOverride) Validate() error

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

func (m *LatencyThresholdOverride) ValidateAll() error

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

type LatencyThresholdOverrideMultiError

type LatencyThresholdOverrideMultiError []error

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

func (LatencyThresholdOverrideMultiError) AllErrors

func (m LatencyThresholdOverrideMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LatencyThresholdOverrideMultiError) Error

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

type LatencyThresholdOverrideValidationError

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

LatencyThresholdOverrideValidationError is the validation error returned by LatencyThresholdOverride.Validate if the designated constraints aren't met.

func (LatencyThresholdOverrideValidationError) Cause

Cause function returns cause value.

func (LatencyThresholdOverrideValidationError) Error

Error satisfies the builtin error interface

func (LatencyThresholdOverrideValidationError) ErrorName

ErrorName returns error name.

func (LatencyThresholdOverrideValidationError) Field

Field function returns field value.

func (LatencyThresholdOverrideValidationError) Key

Key function returns key value.

func (LatencyThresholdOverrideValidationError) Reason

Reason function returns reason value.

type LatencyThresholdOverride_Opcode

type LatencyThresholdOverride_Opcode int32
const (
	LatencyThresholdOverride_Connect              LatencyThresholdOverride_Opcode = 0
	LatencyThresholdOverride_Create               LatencyThresholdOverride_Opcode = 1
	LatencyThresholdOverride_Delete               LatencyThresholdOverride_Opcode = 2
	LatencyThresholdOverride_Exists               LatencyThresholdOverride_Opcode = 3
	LatencyThresholdOverride_GetData              LatencyThresholdOverride_Opcode = 4
	LatencyThresholdOverride_SetData              LatencyThresholdOverride_Opcode = 5
	LatencyThresholdOverride_GetAcl               LatencyThresholdOverride_Opcode = 6
	LatencyThresholdOverride_SetAcl               LatencyThresholdOverride_Opcode = 7
	LatencyThresholdOverride_GetChildren          LatencyThresholdOverride_Opcode = 8
	LatencyThresholdOverride_Sync                 LatencyThresholdOverride_Opcode = 9
	LatencyThresholdOverride_Ping                 LatencyThresholdOverride_Opcode = 10
	LatencyThresholdOverride_GetChildren2         LatencyThresholdOverride_Opcode = 11
	LatencyThresholdOverride_Check                LatencyThresholdOverride_Opcode = 12
	LatencyThresholdOverride_Multi                LatencyThresholdOverride_Opcode = 13
	LatencyThresholdOverride_Create2              LatencyThresholdOverride_Opcode = 14
	LatencyThresholdOverride_Reconfig             LatencyThresholdOverride_Opcode = 15
	LatencyThresholdOverride_CheckWatches         LatencyThresholdOverride_Opcode = 16
	LatencyThresholdOverride_RemoveWatches        LatencyThresholdOverride_Opcode = 17
	LatencyThresholdOverride_CreateContainer      LatencyThresholdOverride_Opcode = 18
	LatencyThresholdOverride_CreateTtl            LatencyThresholdOverride_Opcode = 19
	LatencyThresholdOverride_Close                LatencyThresholdOverride_Opcode = 20
	LatencyThresholdOverride_SetAuth              LatencyThresholdOverride_Opcode = 21
	LatencyThresholdOverride_SetWatches           LatencyThresholdOverride_Opcode = 22
	LatencyThresholdOverride_GetEphemerals        LatencyThresholdOverride_Opcode = 23
	LatencyThresholdOverride_GetAllChildrenNumber LatencyThresholdOverride_Opcode = 24
	LatencyThresholdOverride_SetWatches2          LatencyThresholdOverride_Opcode = 25
)

func (LatencyThresholdOverride_Opcode) Descriptor

func (LatencyThresholdOverride_Opcode) Enum

func (LatencyThresholdOverride_Opcode) EnumDescriptor deprecated

func (LatencyThresholdOverride_Opcode) EnumDescriptor() ([]byte, []int)

Deprecated: Use LatencyThresholdOverride_Opcode.Descriptor instead.

func (LatencyThresholdOverride_Opcode) Number

func (LatencyThresholdOverride_Opcode) String

func (LatencyThresholdOverride_Opcode) Type

type ZooKeeperProxy

type ZooKeeperProxy struct {

	// The human readable prefix to use when emitting :ref:`statistics
	// <config_network_filters_zookeeper_proxy_stats>`.
	StatPrefix string `protobuf:"bytes,1,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"`
	// [#not-implemented-hide:] The optional path to use for writing ZooKeeper access logs.
	// If the access log field is empty, access logs will not be written.
	AccessLog string `protobuf:"bytes,2,opt,name=access_log,json=accessLog,proto3" json:"access_log,omitempty"`
	// Messages — requests, responses and events — that are bigger than this value will
	// be ignored. If it is not set, the default value is 1Mb.
	//
	// The value here should match the jute.maxbuffer property in your cluster configuration:
	//
	// https://zookeeper.apache.org/doc/r3.4.10/zookeeperAdmin.html#Unsafe+Options
	//
	// if that is set. If it isn't, ZooKeeper's default is also 1Mb.
	MaxPacketBytes *wrappers.UInt32Value `protobuf:"bytes,3,opt,name=max_packet_bytes,json=maxPacketBytes,proto3" json:"max_packet_bytes,omitempty"`
	// Whether to emit latency threshold metrics. If not set, defaults to false.
	// If false, setting `default_latency_threshold` and `latency_threshold_overrides` will not have effect.
	EnableLatencyThresholdMetrics bool `` /* 153-byte string literal not displayed */
	// The default latency threshold to decide the fast/slow responses and emit metrics (used for error budget calculation).
	//
	// https://sre.google/workbook/implementing-slos/
	//
	// If it is not set, the default value is 100 milliseconds.
	DefaultLatencyThreshold *duration.Duration `` /* 132-byte string literal not displayed */
	// List of latency threshold overrides for opcodes.
	// If the threshold override of one opcode is not set, it will fallback to the default latency
	// threshold.
	// Specifying latency threshold overrides multiple times for one opcode is not allowed.
	LatencyThresholdOverrides []*LatencyThresholdOverride `` /* 138-byte string literal not displayed */
	// contains filtered or unexported fields
}

[#next-free-field: 7]

func (*ZooKeeperProxy) Descriptor deprecated

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

Deprecated: Use ZooKeeperProxy.ProtoReflect.Descriptor instead.

func (*ZooKeeperProxy) GetAccessLog

func (x *ZooKeeperProxy) GetAccessLog() string

func (*ZooKeeperProxy) GetDefaultLatencyThreshold

func (x *ZooKeeperProxy) GetDefaultLatencyThreshold() *duration.Duration

func (*ZooKeeperProxy) GetEnableLatencyThresholdMetrics

func (x *ZooKeeperProxy) GetEnableLatencyThresholdMetrics() bool

func (*ZooKeeperProxy) GetLatencyThresholdOverrides

func (x *ZooKeeperProxy) GetLatencyThresholdOverrides() []*LatencyThresholdOverride

func (*ZooKeeperProxy) GetMaxPacketBytes

func (x *ZooKeeperProxy) GetMaxPacketBytes() *wrappers.UInt32Value

func (*ZooKeeperProxy) GetStatPrefix

func (x *ZooKeeperProxy) GetStatPrefix() string

func (*ZooKeeperProxy) ProtoMessage

func (*ZooKeeperProxy) ProtoMessage()

func (*ZooKeeperProxy) ProtoReflect

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

func (*ZooKeeperProxy) Reset

func (x *ZooKeeperProxy) Reset()

func (*ZooKeeperProxy) String

func (x *ZooKeeperProxy) String() string

func (*ZooKeeperProxy) Validate

func (m *ZooKeeperProxy) Validate() error

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

func (m *ZooKeeperProxy) ValidateAll() error

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

type ZooKeeperProxyMultiError

type ZooKeeperProxyMultiError []error

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

func (ZooKeeperProxyMultiError) AllErrors

func (m ZooKeeperProxyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ZooKeeperProxyMultiError) Error

func (m ZooKeeperProxyMultiError) Error() string

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

type ZooKeeperProxyValidationError

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

ZooKeeperProxyValidationError is the validation error returned by ZooKeeperProxy.Validate if the designated constraints aren't met.

func (ZooKeeperProxyValidationError) Cause

Cause function returns cause value.

func (ZooKeeperProxyValidationError) Error

Error satisfies the builtin error interface

func (ZooKeeperProxyValidationError) ErrorName

func (e ZooKeeperProxyValidationError) ErrorName() string

ErrorName returns error name.

func (ZooKeeperProxyValidationError) Field

Field function returns field value.

func (ZooKeeperProxyValidationError) Key

Key function returns key value.

func (ZooKeeperProxyValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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