Documentation
¶
Index ¶
- Variables
- type DefaultSocketInterface
- func (*DefaultSocketInterface) Descriptor() ([]byte, []int)deprecated
- func (x *DefaultSocketInterface) GetIoUringOptions() *IoUringOptions
- func (*DefaultSocketInterface) ProtoMessage()
- func (x *DefaultSocketInterface) ProtoReflect() protoreflect.Message
- func (x *DefaultSocketInterface) Reset()
- func (x *DefaultSocketInterface) String() string
- func (m *DefaultSocketInterface) Validate() error
- func (m *DefaultSocketInterface) ValidateAll() error
- type DefaultSocketInterfaceMultiError
- type DefaultSocketInterfaceValidationError
- func (e DefaultSocketInterfaceValidationError) Cause() error
- func (e DefaultSocketInterfaceValidationError) Error() string
- func (e DefaultSocketInterfaceValidationError) ErrorName() string
- func (e DefaultSocketInterfaceValidationError) Field() string
- func (e DefaultSocketInterfaceValidationError) Key() bool
- func (e DefaultSocketInterfaceValidationError) Reason() string
- type IoUringOptions
- func (*IoUringOptions) Descriptor() ([]byte, []int)deprecated
- func (x *IoUringOptions) GetEnableSubmissionQueuePolling() bool
- func (x *IoUringOptions) GetIoUringSize() *wrapperspb.UInt32Value
- func (x *IoUringOptions) GetReadBufferSize() *wrapperspb.UInt32Value
- func (x *IoUringOptions) GetWriteTimeoutMs() *wrapperspb.UInt32Value
- func (*IoUringOptions) ProtoMessage()
- func (x *IoUringOptions) ProtoReflect() protoreflect.Message
- func (x *IoUringOptions) Reset()
- func (x *IoUringOptions) String() string
- func (m *IoUringOptions) Validate() error
- func (m *IoUringOptions) ValidateAll() error
- type IoUringOptionsMultiError
- type IoUringOptionsValidationError
- func (e IoUringOptionsValidationError) Cause() error
- func (e IoUringOptionsValidationError) Error() string
- func (e IoUringOptionsValidationError) ErrorName() string
- func (e IoUringOptionsValidationError) Field() string
- func (e IoUringOptionsValidationError) Key() bool
- func (e IoUringOptionsValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_envoy_extensions_network_socket_interface_v3_default_socket_interface_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type DefaultSocketInterface ¶
type DefaultSocketInterface struct { // io_uring options. io_uring is only valid in Linux with at least kernel version 5.11. Otherwise, // Envoy will fall back to use the default socket API. If not set then io_uring will not be // enabled. IoUringOptions *IoUringOptions `protobuf:"bytes,1,opt,name=io_uring_options,json=ioUringOptions,proto3" json:"io_uring_options,omitempty"` // contains filtered or unexported fields }
Configuration for default socket interface that relies on OS dependent syscall to create sockets.
func (*DefaultSocketInterface) Descriptor
deprecated
func (*DefaultSocketInterface) Descriptor() ([]byte, []int)
Deprecated: Use DefaultSocketInterface.ProtoReflect.Descriptor instead.
func (*DefaultSocketInterface) GetIoUringOptions ¶ added in v1.35.0
func (x *DefaultSocketInterface) GetIoUringOptions() *IoUringOptions
func (*DefaultSocketInterface) ProtoMessage ¶
func (*DefaultSocketInterface) ProtoMessage()
func (*DefaultSocketInterface) ProtoReflect ¶
func (x *DefaultSocketInterface) ProtoReflect() protoreflect.Message
func (*DefaultSocketInterface) Reset ¶
func (x *DefaultSocketInterface) Reset()
func (*DefaultSocketInterface) String ¶
func (x *DefaultSocketInterface) String() string
func (*DefaultSocketInterface) Validate ¶
func (m *DefaultSocketInterface) Validate() error
Validate checks the field values on DefaultSocketInterface 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 (*DefaultSocketInterface) ValidateAll ¶
func (m *DefaultSocketInterface) ValidateAll() error
ValidateAll checks the field values on DefaultSocketInterface 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 DefaultSocketInterfaceMultiError, or nil if none found.
type DefaultSocketInterfaceMultiError ¶
type DefaultSocketInterfaceMultiError []error
DefaultSocketInterfaceMultiError is an error wrapping multiple validation errors returned by DefaultSocketInterface.ValidateAll() if the designated constraints aren't met.
func (DefaultSocketInterfaceMultiError) AllErrors ¶
func (m DefaultSocketInterfaceMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DefaultSocketInterfaceMultiError) Error ¶
func (m DefaultSocketInterfaceMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DefaultSocketInterfaceValidationError ¶
type DefaultSocketInterfaceValidationError struct {
// contains filtered or unexported fields
}
DefaultSocketInterfaceValidationError is the validation error returned by DefaultSocketInterface.Validate if the designated constraints aren't met.
func (DefaultSocketInterfaceValidationError) Cause ¶
func (e DefaultSocketInterfaceValidationError) Cause() error
Cause function returns cause value.
func (DefaultSocketInterfaceValidationError) Error ¶
func (e DefaultSocketInterfaceValidationError) Error() string
Error satisfies the builtin error interface
func (DefaultSocketInterfaceValidationError) ErrorName ¶
func (e DefaultSocketInterfaceValidationError) ErrorName() string
ErrorName returns error name.
func (DefaultSocketInterfaceValidationError) Field ¶
func (e DefaultSocketInterfaceValidationError) Field() string
Field function returns field value.
func (DefaultSocketInterfaceValidationError) Key ¶
func (e DefaultSocketInterfaceValidationError) Key() bool
Key function returns key value.
func (DefaultSocketInterfaceValidationError) Reason ¶
func (e DefaultSocketInterfaceValidationError) Reason() string
Reason function returns reason value.
type IoUringOptions ¶ added in v1.35.0
type IoUringOptions struct { // The size for io_uring submission queues (SQ). io_uring is built with a fixed size in each // thread during configuration, and each io_uring operation creates a submission queue // entry (SQE). The default is 1000. IoUringSize *wrapperspb.UInt32Value `protobuf:"bytes,1,opt,name=io_uring_size,json=ioUringSize,proto3" json:"io_uring_size,omitempty"` // Enable io_uring submission queue polling (SQPOLL). io_uring SQPOLL mode polls all SQEs in the // SQ in the kernel thread. io_uring SQPOLL mode may reduce latency and increase CPU usage as a // cost. The default is false. EnableSubmissionQueuePolling bool `` /* 150-byte string literal not displayed */ // The size of an io_uring socket's read buffer. Each io_uring read operation will allocate a // buffer of the given size. If the given buffer is too small, the socket will have read multiple // times for all the data. The default is 8192. ReadBufferSize *wrapperspb.UInt32Value `protobuf:"bytes,3,opt,name=read_buffer_size,json=readBufferSize,proto3" json:"read_buffer_size,omitempty"` // The write timeout of an io_uring socket on closing in ms. io_uring writes and closes // asynchronously. If the remote stops reading, the io_uring write operation may never complete. // The operation is canceled and the socket is closed after the timeout. The default is 1000. WriteTimeoutMs *wrapperspb.UInt32Value `protobuf:"bytes,4,opt,name=write_timeout_ms,json=writeTimeoutMs,proto3" json:"write_timeout_ms,omitempty"` // contains filtered or unexported fields }
func (*IoUringOptions) Descriptor
deprecated
added in
v1.35.0
func (*IoUringOptions) Descriptor() ([]byte, []int)
Deprecated: Use IoUringOptions.ProtoReflect.Descriptor instead.
func (*IoUringOptions) GetEnableSubmissionQueuePolling ¶ added in v1.35.0
func (x *IoUringOptions) GetEnableSubmissionQueuePolling() bool
func (*IoUringOptions) GetIoUringSize ¶ added in v1.35.0
func (x *IoUringOptions) GetIoUringSize() *wrapperspb.UInt32Value
func (*IoUringOptions) GetReadBufferSize ¶ added in v1.35.0
func (x *IoUringOptions) GetReadBufferSize() *wrapperspb.UInt32Value
func (*IoUringOptions) GetWriteTimeoutMs ¶ added in v1.35.0
func (x *IoUringOptions) GetWriteTimeoutMs() *wrapperspb.UInt32Value
func (*IoUringOptions) ProtoMessage ¶ added in v1.35.0
func (*IoUringOptions) ProtoMessage()
func (*IoUringOptions) ProtoReflect ¶ added in v1.35.0
func (x *IoUringOptions) ProtoReflect() protoreflect.Message
func (*IoUringOptions) Reset ¶ added in v1.35.0
func (x *IoUringOptions) Reset()
func (*IoUringOptions) String ¶ added in v1.35.0
func (x *IoUringOptions) String() string
func (*IoUringOptions) Validate ¶ added in v1.35.0
func (m *IoUringOptions) Validate() error
Validate checks the field values on IoUringOptions 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 (*IoUringOptions) ValidateAll ¶ added in v1.35.0
func (m *IoUringOptions) ValidateAll() error
ValidateAll checks the field values on IoUringOptions 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 IoUringOptionsMultiError, or nil if none found.
type IoUringOptionsMultiError ¶ added in v1.35.0
type IoUringOptionsMultiError []error
IoUringOptionsMultiError is an error wrapping multiple validation errors returned by IoUringOptions.ValidateAll() if the designated constraints aren't met.
func (IoUringOptionsMultiError) AllErrors ¶ added in v1.35.0
func (m IoUringOptionsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (IoUringOptionsMultiError) Error ¶ added in v1.35.0
func (m IoUringOptionsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type IoUringOptionsValidationError ¶ added in v1.35.0
type IoUringOptionsValidationError struct {
// contains filtered or unexported fields
}
IoUringOptionsValidationError is the validation error returned by IoUringOptions.Validate if the designated constraints aren't met.
func (IoUringOptionsValidationError) Cause ¶ added in v1.35.0
func (e IoUringOptionsValidationError) Cause() error
Cause function returns cause value.
func (IoUringOptionsValidationError) Error ¶ added in v1.35.0
func (e IoUringOptionsValidationError) Error() string
Error satisfies the builtin error interface
func (IoUringOptionsValidationError) ErrorName ¶ added in v1.35.0
func (e IoUringOptionsValidationError) ErrorName() string
ErrorName returns error name.
func (IoUringOptionsValidationError) Field ¶ added in v1.35.0
func (e IoUringOptionsValidationError) Field() string
Field function returns field value.
func (IoUringOptionsValidationError) Key ¶ added in v1.35.0
func (e IoUringOptionsValidationError) Key() bool
Key function returns key value.
func (IoUringOptionsValidationError) Reason ¶ added in v1.35.0
func (e IoUringOptionsValidationError) Reason() string
Reason function returns reason value.