Documentation ¶
Index ¶
- Variables
- type ConnectionLimit
- func (m *ConnectionLimit) Clone() proto.Message
- func (*ConnectionLimit) Descriptor() ([]byte, []int)deprecated
- func (m *ConnectionLimit) Equal(that interface{}) bool
- func (x *ConnectionLimit) GetDelayBeforeClose() *durationpb.Duration
- func (x *ConnectionLimit) GetMaxActiveConnections() *wrapperspb.UInt32Value
- func (m *ConnectionLimit) Hash(hasher hash.Hash64) (uint64, error)deprecated
- func (m *ConnectionLimit) HashUnique(hasher hash.Hash64) (uint64, error)
- func (*ConnectionLimit) ProtoMessage()
- func (x *ConnectionLimit) ProtoReflect() protoreflect.Message
- func (x *ConnectionLimit) Reset()
- func (x *ConnectionLimit) String() string
Constants ¶
This section is empty.
Variables ¶
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) 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 ¶
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