connection_limit

package
v1.18.0-beta30 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 22 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 or equal to one.
	MaxActiveConnections *wrapperspb.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 *durationpb.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() *durationpb.Duration

func (*ConnectionLimit) GetMaxActiveConnections

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

func (*ConnectionLimit) Hash deprecated

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

Hash function

Deprecated: due to hashing implemention only using field values. The omission of the field name in the hash calculation can lead to hash collisions. Prefer the HashUnique function instead.

func (*ConnectionLimit) HashUnique added in v1.18.0

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

HashUnique function generates a hash of the object that is unique to the object by hashing field name and value pairs. Replaces Hash due to original hashing implemention only using field values. The omission of the field name in the hash calculation can lead to hash collisions.

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