connection_limit

package
v1.16.0-beta3 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_github_com_solo_io_gloo_projects_gloo_api_v1_options_connection_limit_connection_limit_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ConnectionLimit

type ConnectionLimit struct {

	// The maximum number of active connections for this gateway. When this limit is reached, any incoming connection
	// will be closed after delay duration.
	// Must be greater than one.
	MaxActiveConnections *wrappers.UInt32Value `protobuf:"bytes,1,opt,name=max_active_connections,json=maxActiveConnections,proto3" json:"max_active_connections,omitempty"`
	// The time to wait before a connection is dropped. Useful for DoS prevention.
	// Defaults to zero and the connection will be closed immediately.
	DelayBeforeClose *duration.Duration `protobuf:"bytes,2,opt,name=delay_before_close,json=delayBeforeClose,proto3" json:"delay_before_close,omitempty"`
	// contains filtered or unexported fields
}

These options provide the ability to limit the active connections in envoy. Ref. https://www.envoyproxy.io/docs/envoy/latest/configuration/listeners/network_filters/connection_limit_filter

func (*ConnectionLimit) Clone

func (m *ConnectionLimit) Clone() proto.Message

Clone function

func (*ConnectionLimit) Descriptor deprecated

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

Deprecated: Use ConnectionLimit.ProtoReflect.Descriptor instead.

func (*ConnectionLimit) Equal

func (m *ConnectionLimit) Equal(that interface{}) bool

Equal function

func (*ConnectionLimit) GetDelayBeforeClose

func (x *ConnectionLimit) GetDelayBeforeClose() *duration.Duration

func (*ConnectionLimit) GetMaxActiveConnections

func (x *ConnectionLimit) GetMaxActiveConnections() *wrappers.UInt32Value

func (*ConnectionLimit) Hash

func (m *ConnectionLimit) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (*ConnectionLimit) ProtoMessage

func (*ConnectionLimit) ProtoMessage()

func (*ConnectionLimit) ProtoReflect

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

func (*ConnectionLimit) Reset

func (x *ConnectionLimit) Reset()

func (*ConnectionLimit) String

func (x *ConnectionLimit) String() string

Jump to

Keyboard shortcuts

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