kill_requestv3

package
v1.33.0-20240426201503... Latest Latest
Warning

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

Go to latest
Published: unknown License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	KillRequest_Direction_name = map[int32]string{
		0: "REQUEST",
		1: "RESPONSE",
	}
	KillRequest_Direction_value = map[string]int32{
		"REQUEST":  0,
		"RESPONSE": 1,
	}
)

Enum value maps for KillRequest_Direction.

View Source
var File_envoy_extensions_filters_http_kill_request_v3_kill_request_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type KillRequest

type KillRequest struct {

	// The probability that a Kill request will be triggered.
	Probability *v3.FractionalPercent `protobuf:"bytes,1,opt,name=probability,proto3" json:"probability,omitempty"`
	// The name of the kill request header. If this field is not empty, it will override the :ref:`default header <config_http_filters_kill_request_http_header>` name. Otherwise the default header name will be used.
	KillRequestHeader string                `protobuf:"bytes,2,opt,name=kill_request_header,json=killRequestHeader,proto3" json:"kill_request_header,omitempty"`
	Direction         KillRequest_Direction `` /* 145-byte string literal not displayed */
	// contains filtered or unexported fields
}

Configuration for KillRequest filter.

func (*KillRequest) Descriptor deprecated

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

Deprecated: Use KillRequest.ProtoReflect.Descriptor instead.

func (*KillRequest) GetDirection

func (x *KillRequest) GetDirection() KillRequest_Direction

func (*KillRequest) GetKillRequestHeader

func (x *KillRequest) GetKillRequestHeader() string

func (*KillRequest) GetProbability

func (x *KillRequest) GetProbability() *v3.FractionalPercent

func (*KillRequest) ProtoMessage

func (*KillRequest) ProtoMessage()

func (*KillRequest) ProtoReflect

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

func (*KillRequest) Reset

func (x *KillRequest) Reset()

func (*KillRequest) String

func (x *KillRequest) String() string

type KillRequest_Direction

type KillRequest_Direction int32

On which direction should the filter check for the “kill_request_header“. Default to “REQUEST“ if unspecified.

const (
	KillRequest_REQUEST  KillRequest_Direction = 0
	KillRequest_RESPONSE KillRequest_Direction = 1
)

func (KillRequest_Direction) Descriptor

func (KillRequest_Direction) Enum

func (KillRequest_Direction) EnumDescriptor deprecated

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

Deprecated: Use KillRequest_Direction.Descriptor instead.

func (KillRequest_Direction) Number

func (KillRequest_Direction) String

func (x KillRequest_Direction) String() string

func (KillRequest_Direction) Type

Jump to

Keyboard shortcuts

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