regex_enginesv3

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_envoy_extensions_regex_engines_v3_google_re2_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type GoogleRE2

type GoogleRE2 struct {
	// contains filtered or unexported fields
}

Google's `RE2 <https://github.com/google/re2>`_ regex engine. The regex string must adhere to the documented `syntax <https://github.com/google/re2/wiki/Syntax>`_. The engine is designed to complete execution in linear time as well as limit the amount of memory used.

Envoy emits two stats for tracking the program size of regexes: the histogram “re2.program_size“, which records the program size, and the counter “re2.exceeded_warn_level“, which is incremented each time the program size exceeds the warn level threshold.

func (*GoogleRE2) Descriptor deprecated

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

Deprecated: Use GoogleRE2.ProtoReflect.Descriptor instead.

func (*GoogleRE2) ProtoMessage

func (*GoogleRE2) ProtoMessage()

func (*GoogleRE2) ProtoReflect

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

func (*GoogleRE2) Reset

func (x *GoogleRE2) Reset()

func (*GoogleRE2) String

func (x *GoogleRE2) String() string

func (*GoogleRE2) Validate

func (m *GoogleRE2) Validate() error

Validate checks the field values on GoogleRE2 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 (*GoogleRE2) ValidateAll

func (m *GoogleRE2) ValidateAll() error

ValidateAll checks the field values on GoogleRE2 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 GoogleRE2MultiError, or nil if none found.

type GoogleRE2MultiError

type GoogleRE2MultiError []error

GoogleRE2MultiError is an error wrapping multiple validation errors returned by GoogleRE2.ValidateAll() if the designated constraints aren't met.

func (GoogleRE2MultiError) AllErrors

func (m GoogleRE2MultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GoogleRE2MultiError) Error

func (m GoogleRE2MultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GoogleRE2ValidationError

type GoogleRE2ValidationError struct {
	// contains filtered or unexported fields
}

GoogleRE2ValidationError is the validation error returned by GoogleRE2.Validate if the designated constraints aren't met.

func (GoogleRE2ValidationError) Cause

func (e GoogleRE2ValidationError) Cause() error

Cause function returns cause value.

func (GoogleRE2ValidationError) Error

func (e GoogleRE2ValidationError) Error() string

Error satisfies the builtin error interface

func (GoogleRE2ValidationError) ErrorName

func (e GoogleRE2ValidationError) ErrorName() string

ErrorName returns error name.

func (GoogleRE2ValidationError) Field

func (e GoogleRE2ValidationError) Field() string

Field function returns field value.

func (GoogleRE2ValidationError) Key

Key function returns key value.

func (GoogleRE2ValidationError) Reason

func (e GoogleRE2ValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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