Documentation ¶
Index ¶
- Variables
- type CodecClientType
- func (CodecClientType) Descriptor() protoreflect.EnumDescriptor
- func (x CodecClientType) Enum() *CodecClientType
- func (CodecClientType) EnumDescriptor() ([]byte, []int)deprecated
- func (x CodecClientType) Number() protoreflect.EnumNumber
- func (x CodecClientType) String() string
- func (CodecClientType) Type() protoreflect.EnumType
- type DoubleRange
- func (*DoubleRange) Descriptor() ([]byte, []int)deprecated
- func (x *DoubleRange) GetEnd() float64
- func (x *DoubleRange) GetStart() float64
- func (*DoubleRange) ProtoMessage()
- func (x *DoubleRange) ProtoReflect() protoreflect.Message
- func (x *DoubleRange) Reset()
- func (x *DoubleRange) String() string
- func (m *DoubleRange) Validate() error
- func (m *DoubleRange) ValidateAll() error
- type DoubleRangeMultiError
- type DoubleRangeValidationError
- func (e DoubleRangeValidationError) Cause() error
- func (e DoubleRangeValidationError) Error() string
- func (e DoubleRangeValidationError) ErrorName() string
- func (e DoubleRangeValidationError) Field() string
- func (e DoubleRangeValidationError) Key() bool
- func (e DoubleRangeValidationError) Reason() string
- type FractionalPercent
- func (*FractionalPercent) Descriptor() ([]byte, []int)deprecated
- func (x *FractionalPercent) GetDenominator() FractionalPercent_DenominatorType
- func (x *FractionalPercent) GetNumerator() uint32
- func (*FractionalPercent) ProtoMessage()
- func (x *FractionalPercent) ProtoReflect() protoreflect.Message
- func (x *FractionalPercent) Reset()
- func (x *FractionalPercent) String() string
- func (m *FractionalPercent) Validate() error
- func (m *FractionalPercent) ValidateAll() error
- type FractionalPercentMultiError
- type FractionalPercentValidationError
- func (e FractionalPercentValidationError) Cause() error
- func (e FractionalPercentValidationError) Error() string
- func (e FractionalPercentValidationError) ErrorName() string
- func (e FractionalPercentValidationError) Field() string
- func (e FractionalPercentValidationError) Key() bool
- func (e FractionalPercentValidationError) Reason() string
- type FractionalPercent_DenominatorType
- func (FractionalPercent_DenominatorType) Descriptor() protoreflect.EnumDescriptor
- func (x FractionalPercent_DenominatorType) Enum() *FractionalPercent_DenominatorType
- func (FractionalPercent_DenominatorType) EnumDescriptor() ([]byte, []int)deprecated
- func (x FractionalPercent_DenominatorType) Number() protoreflect.EnumNumber
- func (x FractionalPercent_DenominatorType) String() string
- func (FractionalPercent_DenominatorType) Type() protoreflect.EnumType
- type HashPolicy
- func (*HashPolicy) Descriptor() ([]byte, []int)deprecated
- func (m *HashPolicy) GetPolicySpecifier() isHashPolicy_PolicySpecifier
- func (x *HashPolicy) GetSourceIp() *HashPolicy_SourceIp
- func (*HashPolicy) ProtoMessage()
- func (x *HashPolicy) ProtoReflect() protoreflect.Message
- func (x *HashPolicy) Reset()
- func (x *HashPolicy) String() string
- func (m *HashPolicy) Validate() error
- func (m *HashPolicy) ValidateAll() error
- type HashPolicyMultiError
- type HashPolicyValidationError
- type HashPolicy_SourceIp
- func (*HashPolicy_SourceIp) Descriptor() ([]byte, []int)deprecated
- func (*HashPolicy_SourceIp) ProtoMessage()
- func (x *HashPolicy_SourceIp) ProtoReflect() protoreflect.Message
- func (x *HashPolicy_SourceIp) Reset()
- func (x *HashPolicy_SourceIp) String() string
- func (m *HashPolicy_SourceIp) Validate() error
- func (m *HashPolicy_SourceIp) ValidateAll() error
- type HashPolicy_SourceIpMultiError
- type HashPolicy_SourceIpValidationError
- func (e HashPolicy_SourceIpValidationError) Cause() error
- func (e HashPolicy_SourceIpValidationError) Error() string
- func (e HashPolicy_SourceIpValidationError) ErrorName() string
- func (e HashPolicy_SourceIpValidationError) Field() string
- func (e HashPolicy_SourceIpValidationError) Key() bool
- func (e HashPolicy_SourceIpValidationError) Reason() string
- type HashPolicy_SourceIp_
- type HttpStatus
- func (*HttpStatus) Descriptor() ([]byte, []int)deprecated
- func (x *HttpStatus) GetCode() StatusCode
- func (*HttpStatus) ProtoMessage()
- func (x *HttpStatus) ProtoReflect() protoreflect.Message
- func (x *HttpStatus) Reset()
- func (x *HttpStatus) String() string
- func (m *HttpStatus) Validate() error
- func (m *HttpStatus) ValidateAll() error
- type HttpStatusMultiError
- type HttpStatusValidationError
- type Int32Range
- func (*Int32Range) Descriptor() ([]byte, []int)deprecated
- func (x *Int32Range) GetEnd() int32
- func (x *Int32Range) GetStart() int32
- func (*Int32Range) ProtoMessage()
- func (x *Int32Range) ProtoReflect() protoreflect.Message
- func (x *Int32Range) Reset()
- func (x *Int32Range) String() string
- func (m *Int32Range) Validate() error
- func (m *Int32Range) ValidateAll() error
- type Int32RangeMultiError
- type Int32RangeValidationError
- type Int64Range
- func (*Int64Range) Descriptor() ([]byte, []int)deprecated
- func (x *Int64Range) GetEnd() int64
- func (x *Int64Range) GetStart() int64
- func (*Int64Range) ProtoMessage()
- func (x *Int64Range) ProtoReflect() protoreflect.Message
- func (x *Int64Range) Reset()
- func (x *Int64Range) String() string
- func (m *Int64Range) Validate() error
- func (m *Int64Range) ValidateAll() error
- type Int64RangeMultiError
- type Int64RangeValidationError
- type Percent
- func (*Percent) Descriptor() ([]byte, []int)deprecated
- func (x *Percent) GetValue() float64
- func (*Percent) ProtoMessage()
- func (x *Percent) ProtoReflect() protoreflect.Message
- func (x *Percent) Reset()
- func (x *Percent) String() string
- func (m *Percent) Validate() error
- func (m *Percent) ValidateAll() error
- type PercentMultiError
- type PercentValidationError
- type RateLimitUnit
- func (RateLimitUnit) Descriptor() protoreflect.EnumDescriptor
- func (x RateLimitUnit) Enum() *RateLimitUnit
- func (RateLimitUnit) EnumDescriptor() ([]byte, []int)deprecated
- func (x RateLimitUnit) Number() protoreflect.EnumNumber
- func (x RateLimitUnit) String() string
- func (RateLimitUnit) Type() protoreflect.EnumType
- type SemanticVersion
- func (*SemanticVersion) Descriptor() ([]byte, []int)deprecated
- func (x *SemanticVersion) GetMajorNumber() uint32
- func (x *SemanticVersion) GetMinorNumber() uint32
- func (x *SemanticVersion) GetPatch() uint32
- func (*SemanticVersion) ProtoMessage()
- func (x *SemanticVersion) ProtoReflect() protoreflect.Message
- func (x *SemanticVersion) Reset()
- func (x *SemanticVersion) String() string
- func (m *SemanticVersion) Validate() error
- func (m *SemanticVersion) ValidateAll() error
- type SemanticVersionMultiError
- type SemanticVersionValidationError
- func (e SemanticVersionValidationError) Cause() error
- func (e SemanticVersionValidationError) Error() string
- func (e SemanticVersionValidationError) ErrorName() string
- func (e SemanticVersionValidationError) Field() string
- func (e SemanticVersionValidationError) Key() bool
- func (e SemanticVersionValidationError) Reason() string
- type StatusCode
- type TokenBucket
- func (*TokenBucket) Descriptor() ([]byte, []int)deprecated
- func (x *TokenBucket) GetFillInterval() *duration.Duration
- func (x *TokenBucket) GetMaxTokens() uint32
- func (x *TokenBucket) GetTokensPerFill() *wrappers.UInt32Value
- func (*TokenBucket) ProtoMessage()
- func (x *TokenBucket) ProtoReflect() protoreflect.Message
- func (x *TokenBucket) Reset()
- func (x *TokenBucket) String() string
- func (m *TokenBucket) Validate() error
- func (m *TokenBucket) ValidateAll() error
- type TokenBucketMultiError
- type TokenBucketValidationError
- func (e TokenBucketValidationError) Cause() error
- func (e TokenBucketValidationError) Error() string
- func (e TokenBucketValidationError) ErrorName() string
- func (e TokenBucketValidationError) Field() string
- func (e TokenBucketValidationError) Key() bool
- func (e TokenBucketValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var ( CodecClientType_name = map[int32]string{ 0: "HTTP1", 1: "HTTP2", 2: "HTTP3", } CodecClientType_value = map[string]int32{ "HTTP1": 0, "HTTP2": 1, "HTTP3": 2, } )
Enum value maps for CodecClientType.
var ( StatusCode_name = map[int32]string{ 0: "Empty", 100: "Continue", 200: "OK", 201: "Created", 202: "Accepted", 203: "NonAuthoritativeInformation", 204: "NoContent", 205: "ResetContent", 206: "PartialContent", 207: "MultiStatus", 208: "AlreadyReported", 226: "IMUsed", 300: "MultipleChoices", 301: "MovedPermanently", 302: "Found", 303: "SeeOther", 304: "NotModified", 305: "UseProxy", 307: "TemporaryRedirect", 308: "PermanentRedirect", 400: "BadRequest", 401: "Unauthorized", 402: "PaymentRequired", 403: "Forbidden", 404: "NotFound", 405: "MethodNotAllowed", 406: "NotAcceptable", 407: "ProxyAuthenticationRequired", 408: "RequestTimeout", 409: "Conflict", 410: "Gone", 411: "LengthRequired", 412: "PreconditionFailed", 413: "PayloadTooLarge", 414: "URITooLong", 415: "UnsupportedMediaType", 416: "RangeNotSatisfiable", 417: "ExpectationFailed", 421: "MisdirectedRequest", 422: "UnprocessableEntity", 423: "Locked", 424: "FailedDependency", 426: "UpgradeRequired", 428: "PreconditionRequired", 429: "TooManyRequests", 431: "RequestHeaderFieldsTooLarge", 500: "InternalServerError", 501: "NotImplemented", 502: "BadGateway", 503: "ServiceUnavailable", 504: "GatewayTimeout", 505: "HTTPVersionNotSupported", 506: "VariantAlsoNegotiates", 507: "InsufficientStorage", 508: "LoopDetected", 510: "NotExtended", 511: "NetworkAuthenticationRequired", } StatusCode_value = map[string]int32{ "Empty": 0, "Continue": 100, "OK": 200, "Created": 201, "Accepted": 202, "NonAuthoritativeInformation": 203, "NoContent": 204, "ResetContent": 205, "PartialContent": 206, "MultiStatus": 207, "AlreadyReported": 208, "IMUsed": 226, "MultipleChoices": 300, "MovedPermanently": 301, "Found": 302, "SeeOther": 303, "NotModified": 304, "UseProxy": 305, "TemporaryRedirect": 307, "PermanentRedirect": 308, "BadRequest": 400, "Unauthorized": 401, "PaymentRequired": 402, "Forbidden": 403, "NotFound": 404, "MethodNotAllowed": 405, "NotAcceptable": 406, "ProxyAuthenticationRequired": 407, "RequestTimeout": 408, "Conflict": 409, "Gone": 410, "LengthRequired": 411, "PreconditionFailed": 412, "PayloadTooLarge": 413, "URITooLong": 414, "UnsupportedMediaType": 415, "RangeNotSatisfiable": 416, "ExpectationFailed": 417, "MisdirectedRequest": 421, "UnprocessableEntity": 422, "Locked": 423, "FailedDependency": 424, "UpgradeRequired": 426, "PreconditionRequired": 428, "TooManyRequests": 429, "RequestHeaderFieldsTooLarge": 431, "InternalServerError": 500, "NotImplemented": 501, "BadGateway": 502, "ServiceUnavailable": 503, "GatewayTimeout": 504, "HTTPVersionNotSupported": 505, "VariantAlsoNegotiates": 506, "InsufficientStorage": 507, "LoopDetected": 508, "NotExtended": 510, "NetworkAuthenticationRequired": 511, } )
Enum value maps for StatusCode.
var ( FractionalPercent_DenominatorType_name = map[int32]string{ 0: "HUNDRED", 1: "TEN_THOUSAND", 2: "MILLION", } FractionalPercent_DenominatorType_value = map[string]int32{ "HUNDRED": 0, "TEN_THOUSAND": 1, "MILLION": 2, } )
Enum value maps for FractionalPercent_DenominatorType.
var ( RateLimitUnit_name = map[int32]string{ 0: "UNKNOWN", 1: "SECOND", 2: "MINUTE", 3: "HOUR", 4: "DAY", } RateLimitUnit_value = map[string]int32{ "UNKNOWN": 0, "SECOND": 1, "MINUTE": 2, "HOUR": 3, "DAY": 4, } )
Enum value maps for RateLimitUnit.
var File_envoy_type_v3_hash_policy_proto protoreflect.FileDescriptor
var File_envoy_type_v3_http_proto protoreflect.FileDescriptor
var File_envoy_type_v3_http_status_proto protoreflect.FileDescriptor
var File_envoy_type_v3_percent_proto protoreflect.FileDescriptor
var File_envoy_type_v3_range_proto protoreflect.FileDescriptor
var File_envoy_type_v3_ratelimit_unit_proto protoreflect.FileDescriptor
var File_envoy_type_v3_semantic_version_proto protoreflect.FileDescriptor
var File_envoy_type_v3_token_bucket_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type CodecClientType ¶
type CodecClientType int32
const ( CodecClientType_HTTP1 CodecClientType = 0 CodecClientType_HTTP2 CodecClientType = 1 // [#not-implemented-hide:] QUIC implementation is not production ready yet. Use this enum with // caution to prevent accidental execution of QUIC code. I.e. `!= HTTP2` is no longer sufficient // to distinguish HTTP1 and HTTP2 traffic. CodecClientType_HTTP3 CodecClientType = 2 )
func (CodecClientType) Descriptor ¶ added in v0.9.6
func (CodecClientType) Descriptor() protoreflect.EnumDescriptor
func (CodecClientType) Enum ¶ added in v0.9.6
func (x CodecClientType) Enum() *CodecClientType
func (CodecClientType) EnumDescriptor
deprecated
func (CodecClientType) EnumDescriptor() ([]byte, []int)
Deprecated: Use CodecClientType.Descriptor instead.
func (CodecClientType) Number ¶ added in v0.9.6
func (x CodecClientType) Number() protoreflect.EnumNumber
func (CodecClientType) String ¶
func (x CodecClientType) String() string
func (CodecClientType) Type ¶ added in v0.9.6
func (CodecClientType) Type() protoreflect.EnumType
type DoubleRange ¶
type DoubleRange struct { // start of the range (inclusive) Start float64 `protobuf:"fixed64,1,opt,name=start,proto3" json:"start,omitempty"` // end of the range (exclusive) End float64 `protobuf:"fixed64,2,opt,name=end,proto3" json:"end,omitempty"` // contains filtered or unexported fields }
Specifies the double start and end of the range using half-open interval semantics [start, end).
func (*DoubleRange) Descriptor
deprecated
func (*DoubleRange) Descriptor() ([]byte, []int)
Deprecated: Use DoubleRange.ProtoReflect.Descriptor instead.
func (*DoubleRange) GetEnd ¶
func (x *DoubleRange) GetEnd() float64
func (*DoubleRange) GetStart ¶
func (x *DoubleRange) GetStart() float64
func (*DoubleRange) ProtoMessage ¶
func (*DoubleRange) ProtoMessage()
func (*DoubleRange) ProtoReflect ¶ added in v0.9.6
func (x *DoubleRange) ProtoReflect() protoreflect.Message
func (*DoubleRange) Reset ¶
func (x *DoubleRange) Reset()
func (*DoubleRange) String ¶
func (x *DoubleRange) String() string
func (*DoubleRange) Validate ¶
func (m *DoubleRange) Validate() error
Validate checks the field values on DoubleRange 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 (*DoubleRange) ValidateAll ¶ added in v0.10.0
func (m *DoubleRange) ValidateAll() error
ValidateAll checks the field values on DoubleRange 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 DoubleRangeMultiError, or nil if none found.
type DoubleRangeMultiError ¶ added in v0.10.0
type DoubleRangeMultiError []error
DoubleRangeMultiError is an error wrapping multiple validation errors returned by DoubleRange.ValidateAll() if the designated constraints aren't met.
func (DoubleRangeMultiError) AllErrors ¶ added in v0.10.0
func (m DoubleRangeMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DoubleRangeMultiError) Error ¶ added in v0.10.0
func (m DoubleRangeMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DoubleRangeValidationError ¶
type DoubleRangeValidationError struct {
// contains filtered or unexported fields
}
DoubleRangeValidationError is the validation error returned by DoubleRange.Validate if the designated constraints aren't met.
func (DoubleRangeValidationError) Cause ¶
func (e DoubleRangeValidationError) Cause() error
Cause function returns cause value.
func (DoubleRangeValidationError) Error ¶
func (e DoubleRangeValidationError) Error() string
Error satisfies the builtin error interface
func (DoubleRangeValidationError) ErrorName ¶
func (e DoubleRangeValidationError) ErrorName() string
ErrorName returns error name.
func (DoubleRangeValidationError) Field ¶
func (e DoubleRangeValidationError) Field() string
Field function returns field value.
func (DoubleRangeValidationError) Key ¶
func (e DoubleRangeValidationError) Key() bool
Key function returns key value.
func (DoubleRangeValidationError) Reason ¶
func (e DoubleRangeValidationError) Reason() string
Reason function returns reason value.
type FractionalPercent ¶
type FractionalPercent struct { // Specifies the numerator. Defaults to 0. Numerator uint32 `protobuf:"varint,1,opt,name=numerator,proto3" json:"numerator,omitempty"` // Specifies the denominator. If the denominator specified is less than the numerator, the final // fractional percentage is capped at 1 (100%). Denominator FractionalPercent_DenominatorType `` /* 129-byte string literal not displayed */ // contains filtered or unexported fields }
A fractional percentage is used in cases in which for performance reasons performing floating point to integer conversions during randomness calculations is undesirable. The message includes both a numerator and denominator that together determine the final fractional value.
* **Example**: 1/100 = 1%. * **Example**: 3/10000 = 0.03%.
func (*FractionalPercent) Descriptor
deprecated
func (*FractionalPercent) Descriptor() ([]byte, []int)
Deprecated: Use FractionalPercent.ProtoReflect.Descriptor instead.
func (*FractionalPercent) GetDenominator ¶
func (x *FractionalPercent) GetDenominator() FractionalPercent_DenominatorType
func (*FractionalPercent) GetNumerator ¶
func (x *FractionalPercent) GetNumerator() uint32
func (*FractionalPercent) ProtoMessage ¶
func (*FractionalPercent) ProtoMessage()
func (*FractionalPercent) ProtoReflect ¶ added in v0.9.6
func (x *FractionalPercent) ProtoReflect() protoreflect.Message
func (*FractionalPercent) Reset ¶
func (x *FractionalPercent) Reset()
func (*FractionalPercent) String ¶
func (x *FractionalPercent) String() string
func (*FractionalPercent) Validate ¶
func (m *FractionalPercent) Validate() error
Validate checks the field values on FractionalPercent 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 (*FractionalPercent) ValidateAll ¶ added in v0.10.0
func (m *FractionalPercent) ValidateAll() error
ValidateAll checks the field values on FractionalPercent 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 FractionalPercentMultiError, or nil if none found.
type FractionalPercentMultiError ¶ added in v0.10.0
type FractionalPercentMultiError []error
FractionalPercentMultiError is an error wrapping multiple validation errors returned by FractionalPercent.ValidateAll() if the designated constraints aren't met.
func (FractionalPercentMultiError) AllErrors ¶ added in v0.10.0
func (m FractionalPercentMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FractionalPercentMultiError) Error ¶ added in v0.10.0
func (m FractionalPercentMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FractionalPercentValidationError ¶
type FractionalPercentValidationError struct {
// contains filtered or unexported fields
}
FractionalPercentValidationError is the validation error returned by FractionalPercent.Validate if the designated constraints aren't met.
func (FractionalPercentValidationError) Cause ¶
func (e FractionalPercentValidationError) Cause() error
Cause function returns cause value.
func (FractionalPercentValidationError) Error ¶
func (e FractionalPercentValidationError) Error() string
Error satisfies the builtin error interface
func (FractionalPercentValidationError) ErrorName ¶
func (e FractionalPercentValidationError) ErrorName() string
ErrorName returns error name.
func (FractionalPercentValidationError) Field ¶
func (e FractionalPercentValidationError) Field() string
Field function returns field value.
func (FractionalPercentValidationError) Key ¶
func (e FractionalPercentValidationError) Key() bool
Key function returns key value.
func (FractionalPercentValidationError) Reason ¶
func (e FractionalPercentValidationError) Reason() string
Reason function returns reason value.
type FractionalPercent_DenominatorType ¶
type FractionalPercent_DenominatorType int32
Fraction percentages support several fixed denominator values.
const ( // 100. // // **Example**: 1/100 = 1%. FractionalPercent_HUNDRED FractionalPercent_DenominatorType = 0 // 10,000. // // **Example**: 1/10000 = 0.01%. FractionalPercent_TEN_THOUSAND FractionalPercent_DenominatorType = 1 // 1,000,000. // // **Example**: 1/1000000 = 0.0001%. FractionalPercent_MILLION FractionalPercent_DenominatorType = 2 )
func (FractionalPercent_DenominatorType) Descriptor ¶ added in v0.9.6
func (FractionalPercent_DenominatorType) Descriptor() protoreflect.EnumDescriptor
func (FractionalPercent_DenominatorType) Enum ¶ added in v0.9.6
func (x FractionalPercent_DenominatorType) Enum() *FractionalPercent_DenominatorType
func (FractionalPercent_DenominatorType) EnumDescriptor
deprecated
func (FractionalPercent_DenominatorType) EnumDescriptor() ([]byte, []int)
Deprecated: Use FractionalPercent_DenominatorType.Descriptor instead.
func (FractionalPercent_DenominatorType) Number ¶ added in v0.9.6
func (x FractionalPercent_DenominatorType) Number() protoreflect.EnumNumber
func (FractionalPercent_DenominatorType) String ¶
func (x FractionalPercent_DenominatorType) String() string
func (FractionalPercent_DenominatorType) Type ¶ added in v0.9.6
func (FractionalPercent_DenominatorType) Type() protoreflect.EnumType
type HashPolicy ¶
type HashPolicy struct { // Types that are assignable to PolicySpecifier: // *HashPolicy_SourceIp_ PolicySpecifier isHashPolicy_PolicySpecifier `protobuf_oneof:"policy_specifier"` // contains filtered or unexported fields }
Specifies the hash policy
func (*HashPolicy) Descriptor
deprecated
func (*HashPolicy) Descriptor() ([]byte, []int)
Deprecated: Use HashPolicy.ProtoReflect.Descriptor instead.
func (*HashPolicy) GetPolicySpecifier ¶
func (m *HashPolicy) GetPolicySpecifier() isHashPolicy_PolicySpecifier
func (*HashPolicy) GetSourceIp ¶
func (x *HashPolicy) GetSourceIp() *HashPolicy_SourceIp
func (*HashPolicy) ProtoMessage ¶
func (*HashPolicy) ProtoMessage()
func (*HashPolicy) ProtoReflect ¶ added in v0.9.6
func (x *HashPolicy) ProtoReflect() protoreflect.Message
func (*HashPolicy) Reset ¶
func (x *HashPolicy) Reset()
func (*HashPolicy) String ¶
func (x *HashPolicy) String() string
func (*HashPolicy) Validate ¶
func (m *HashPolicy) Validate() error
Validate checks the field values on HashPolicy 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 (*HashPolicy) ValidateAll ¶ added in v0.10.0
func (m *HashPolicy) ValidateAll() error
ValidateAll checks the field values on HashPolicy 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 HashPolicyMultiError, or nil if none found.
type HashPolicyMultiError ¶ added in v0.10.0
type HashPolicyMultiError []error
HashPolicyMultiError is an error wrapping multiple validation errors returned by HashPolicy.ValidateAll() if the designated constraints aren't met.
func (HashPolicyMultiError) AllErrors ¶ added in v0.10.0
func (m HashPolicyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (HashPolicyMultiError) Error ¶ added in v0.10.0
func (m HashPolicyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type HashPolicyValidationError ¶
type HashPolicyValidationError struct {
// contains filtered or unexported fields
}
HashPolicyValidationError is the validation error returned by HashPolicy.Validate if the designated constraints aren't met.
func (HashPolicyValidationError) Cause ¶
func (e HashPolicyValidationError) Cause() error
Cause function returns cause value.
func (HashPolicyValidationError) Error ¶
func (e HashPolicyValidationError) Error() string
Error satisfies the builtin error interface
func (HashPolicyValidationError) ErrorName ¶
func (e HashPolicyValidationError) ErrorName() string
ErrorName returns error name.
func (HashPolicyValidationError) Field ¶
func (e HashPolicyValidationError) Field() string
Field function returns field value.
func (HashPolicyValidationError) Key ¶
func (e HashPolicyValidationError) Key() bool
Key function returns key value.
func (HashPolicyValidationError) Reason ¶
func (e HashPolicyValidationError) Reason() string
Reason function returns reason value.
type HashPolicy_SourceIp ¶
type HashPolicy_SourceIp struct {
// contains filtered or unexported fields
}
The source IP will be used to compute the hash used by hash-based load balancing algorithms.
func (*HashPolicy_SourceIp) Descriptor
deprecated
func (*HashPolicy_SourceIp) Descriptor() ([]byte, []int)
Deprecated: Use HashPolicy_SourceIp.ProtoReflect.Descriptor instead.
func (*HashPolicy_SourceIp) ProtoMessage ¶
func (*HashPolicy_SourceIp) ProtoMessage()
func (*HashPolicy_SourceIp) ProtoReflect ¶ added in v0.9.6
func (x *HashPolicy_SourceIp) ProtoReflect() protoreflect.Message
func (*HashPolicy_SourceIp) Reset ¶
func (x *HashPolicy_SourceIp) Reset()
func (*HashPolicy_SourceIp) String ¶
func (x *HashPolicy_SourceIp) String() string
func (*HashPolicy_SourceIp) Validate ¶
func (m *HashPolicy_SourceIp) Validate() error
Validate checks the field values on HashPolicy_SourceIp 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 (*HashPolicy_SourceIp) ValidateAll ¶ added in v0.10.0
func (m *HashPolicy_SourceIp) ValidateAll() error
ValidateAll checks the field values on HashPolicy_SourceIp 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 HashPolicy_SourceIpMultiError, or nil if none found.
type HashPolicy_SourceIpMultiError ¶ added in v0.10.0
type HashPolicy_SourceIpMultiError []error
HashPolicy_SourceIpMultiError is an error wrapping multiple validation errors returned by HashPolicy_SourceIp.ValidateAll() if the designated constraints aren't met.
func (HashPolicy_SourceIpMultiError) AllErrors ¶ added in v0.10.0
func (m HashPolicy_SourceIpMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (HashPolicy_SourceIpMultiError) Error ¶ added in v0.10.0
func (m HashPolicy_SourceIpMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type HashPolicy_SourceIpValidationError ¶
type HashPolicy_SourceIpValidationError struct {
// contains filtered or unexported fields
}
HashPolicy_SourceIpValidationError is the validation error returned by HashPolicy_SourceIp.Validate if the designated constraints aren't met.
func (HashPolicy_SourceIpValidationError) Cause ¶
func (e HashPolicy_SourceIpValidationError) Cause() error
Cause function returns cause value.
func (HashPolicy_SourceIpValidationError) Error ¶
func (e HashPolicy_SourceIpValidationError) Error() string
Error satisfies the builtin error interface
func (HashPolicy_SourceIpValidationError) ErrorName ¶
func (e HashPolicy_SourceIpValidationError) ErrorName() string
ErrorName returns error name.
func (HashPolicy_SourceIpValidationError) Field ¶
func (e HashPolicy_SourceIpValidationError) Field() string
Field function returns field value.
func (HashPolicy_SourceIpValidationError) Key ¶
func (e HashPolicy_SourceIpValidationError) Key() bool
Key function returns key value.
func (HashPolicy_SourceIpValidationError) Reason ¶
func (e HashPolicy_SourceIpValidationError) Reason() string
Reason function returns reason value.
type HashPolicy_SourceIp_ ¶
type HashPolicy_SourceIp_ struct {
SourceIp *HashPolicy_SourceIp `protobuf:"bytes,1,opt,name=source_ip,json=sourceIp,proto3,oneof"`
}
type HttpStatus ¶
type HttpStatus struct { // Supplies HTTP response code. Code StatusCode `protobuf:"varint,1,opt,name=code,proto3,enum=envoy.type.v3.StatusCode" json:"code,omitempty"` // contains filtered or unexported fields }
HTTP status.
func (*HttpStatus) Descriptor
deprecated
func (*HttpStatus) Descriptor() ([]byte, []int)
Deprecated: Use HttpStatus.ProtoReflect.Descriptor instead.
func (*HttpStatus) GetCode ¶
func (x *HttpStatus) GetCode() StatusCode
func (*HttpStatus) ProtoMessage ¶
func (*HttpStatus) ProtoMessage()
func (*HttpStatus) ProtoReflect ¶ added in v0.9.6
func (x *HttpStatus) ProtoReflect() protoreflect.Message
func (*HttpStatus) Reset ¶
func (x *HttpStatus) Reset()
func (*HttpStatus) String ¶
func (x *HttpStatus) String() string
func (*HttpStatus) Validate ¶
func (m *HttpStatus) Validate() error
Validate checks the field values on HttpStatus 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 (*HttpStatus) ValidateAll ¶ added in v0.10.0
func (m *HttpStatus) ValidateAll() error
ValidateAll checks the field values on HttpStatus 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 HttpStatusMultiError, or nil if none found.
type HttpStatusMultiError ¶ added in v0.10.0
type HttpStatusMultiError []error
HttpStatusMultiError is an error wrapping multiple validation errors returned by HttpStatus.ValidateAll() if the designated constraints aren't met.
func (HttpStatusMultiError) AllErrors ¶ added in v0.10.0
func (m HttpStatusMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (HttpStatusMultiError) Error ¶ added in v0.10.0
func (m HttpStatusMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type HttpStatusValidationError ¶
type HttpStatusValidationError struct {
// contains filtered or unexported fields
}
HttpStatusValidationError is the validation error returned by HttpStatus.Validate if the designated constraints aren't met.
func (HttpStatusValidationError) Cause ¶
func (e HttpStatusValidationError) Cause() error
Cause function returns cause value.
func (HttpStatusValidationError) Error ¶
func (e HttpStatusValidationError) Error() string
Error satisfies the builtin error interface
func (HttpStatusValidationError) ErrorName ¶
func (e HttpStatusValidationError) ErrorName() string
ErrorName returns error name.
func (HttpStatusValidationError) Field ¶
func (e HttpStatusValidationError) Field() string
Field function returns field value.
func (HttpStatusValidationError) Key ¶
func (e HttpStatusValidationError) Key() bool
Key function returns key value.
func (HttpStatusValidationError) Reason ¶
func (e HttpStatusValidationError) Reason() string
Reason function returns reason value.
type Int32Range ¶
type Int32Range struct { // start of the range (inclusive) Start int32 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"` // end of the range (exclusive) End int32 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"` // contains filtered or unexported fields }
Specifies the int32 start and end of the range using half-open interval semantics [start, end).
func (*Int32Range) Descriptor
deprecated
func (*Int32Range) Descriptor() ([]byte, []int)
Deprecated: Use Int32Range.ProtoReflect.Descriptor instead.
func (*Int32Range) GetEnd ¶
func (x *Int32Range) GetEnd() int32
func (*Int32Range) GetStart ¶
func (x *Int32Range) GetStart() int32
func (*Int32Range) ProtoMessage ¶
func (*Int32Range) ProtoMessage()
func (*Int32Range) ProtoReflect ¶ added in v0.9.6
func (x *Int32Range) ProtoReflect() protoreflect.Message
func (*Int32Range) Reset ¶
func (x *Int32Range) Reset()
func (*Int32Range) String ¶
func (x *Int32Range) String() string
func (*Int32Range) Validate ¶
func (m *Int32Range) Validate() error
Validate checks the field values on Int32Range 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 (*Int32Range) ValidateAll ¶ added in v0.10.0
func (m *Int32Range) ValidateAll() error
ValidateAll checks the field values on Int32Range 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 Int32RangeMultiError, or nil if none found.
type Int32RangeMultiError ¶ added in v0.10.0
type Int32RangeMultiError []error
Int32RangeMultiError is an error wrapping multiple validation errors returned by Int32Range.ValidateAll() if the designated constraints aren't met.
func (Int32RangeMultiError) AllErrors ¶ added in v0.10.0
func (m Int32RangeMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Int32RangeMultiError) Error ¶ added in v0.10.0
func (m Int32RangeMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Int32RangeValidationError ¶
type Int32RangeValidationError struct {
// contains filtered or unexported fields
}
Int32RangeValidationError is the validation error returned by Int32Range.Validate if the designated constraints aren't met.
func (Int32RangeValidationError) Cause ¶
func (e Int32RangeValidationError) Cause() error
Cause function returns cause value.
func (Int32RangeValidationError) Error ¶
func (e Int32RangeValidationError) Error() string
Error satisfies the builtin error interface
func (Int32RangeValidationError) ErrorName ¶
func (e Int32RangeValidationError) ErrorName() string
ErrorName returns error name.
func (Int32RangeValidationError) Field ¶
func (e Int32RangeValidationError) Field() string
Field function returns field value.
func (Int32RangeValidationError) Key ¶
func (e Int32RangeValidationError) Key() bool
Key function returns key value.
func (Int32RangeValidationError) Reason ¶
func (e Int32RangeValidationError) Reason() string
Reason function returns reason value.
type Int64Range ¶
type Int64Range struct { // start of the range (inclusive) Start int64 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"` // end of the range (exclusive) End int64 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"` // contains filtered or unexported fields }
Specifies the int64 start and end of the range using half-open interval semantics [start, end).
func (*Int64Range) Descriptor
deprecated
func (*Int64Range) Descriptor() ([]byte, []int)
Deprecated: Use Int64Range.ProtoReflect.Descriptor instead.
func (*Int64Range) GetEnd ¶
func (x *Int64Range) GetEnd() int64
func (*Int64Range) GetStart ¶
func (x *Int64Range) GetStart() int64
func (*Int64Range) ProtoMessage ¶
func (*Int64Range) ProtoMessage()
func (*Int64Range) ProtoReflect ¶ added in v0.9.6
func (x *Int64Range) ProtoReflect() protoreflect.Message
func (*Int64Range) Reset ¶
func (x *Int64Range) Reset()
func (*Int64Range) String ¶
func (x *Int64Range) String() string
func (*Int64Range) Validate ¶
func (m *Int64Range) Validate() error
Validate checks the field values on Int64Range 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 (*Int64Range) ValidateAll ¶ added in v0.10.0
func (m *Int64Range) ValidateAll() error
ValidateAll checks the field values on Int64Range 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 Int64RangeMultiError, or nil if none found.
type Int64RangeMultiError ¶ added in v0.10.0
type Int64RangeMultiError []error
Int64RangeMultiError is an error wrapping multiple validation errors returned by Int64Range.ValidateAll() if the designated constraints aren't met.
func (Int64RangeMultiError) AllErrors ¶ added in v0.10.0
func (m Int64RangeMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Int64RangeMultiError) Error ¶ added in v0.10.0
func (m Int64RangeMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Int64RangeValidationError ¶
type Int64RangeValidationError struct {
// contains filtered or unexported fields
}
Int64RangeValidationError is the validation error returned by Int64Range.Validate if the designated constraints aren't met.
func (Int64RangeValidationError) Cause ¶
func (e Int64RangeValidationError) Cause() error
Cause function returns cause value.
func (Int64RangeValidationError) Error ¶
func (e Int64RangeValidationError) Error() string
Error satisfies the builtin error interface
func (Int64RangeValidationError) ErrorName ¶
func (e Int64RangeValidationError) ErrorName() string
ErrorName returns error name.
func (Int64RangeValidationError) Field ¶
func (e Int64RangeValidationError) Field() string
Field function returns field value.
func (Int64RangeValidationError) Key ¶
func (e Int64RangeValidationError) Key() bool
Key function returns key value.
func (Int64RangeValidationError) Reason ¶
func (e Int64RangeValidationError) Reason() string
Reason function returns reason value.
type Percent ¶
type Percent struct { Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
Identifies a percentage, in the range [0.0, 100.0].
func (*Percent) Descriptor
deprecated
func (*Percent) ProtoMessage ¶
func (*Percent) ProtoMessage()
func (*Percent) ProtoReflect ¶ added in v0.9.6
func (x *Percent) ProtoReflect() protoreflect.Message
func (*Percent) Validate ¶
Validate checks the field values on Percent 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 (*Percent) ValidateAll ¶ added in v0.10.0
ValidateAll checks the field values on Percent 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 PercentMultiError, or nil if none found.
type PercentMultiError ¶ added in v0.10.0
type PercentMultiError []error
PercentMultiError is an error wrapping multiple validation errors returned by Percent.ValidateAll() if the designated constraints aren't met.
func (PercentMultiError) AllErrors ¶ added in v0.10.0
func (m PercentMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PercentMultiError) Error ¶ added in v0.10.0
func (m PercentMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PercentValidationError ¶
type PercentValidationError struct {
// contains filtered or unexported fields
}
PercentValidationError is the validation error returned by Percent.Validate if the designated constraints aren't met.
func (PercentValidationError) Cause ¶
func (e PercentValidationError) Cause() error
Cause function returns cause value.
func (PercentValidationError) Error ¶
func (e PercentValidationError) Error() string
Error satisfies the builtin error interface
func (PercentValidationError) ErrorName ¶
func (e PercentValidationError) ErrorName() string
ErrorName returns error name.
func (PercentValidationError) Field ¶
func (e PercentValidationError) Field() string
Field function returns field value.
func (PercentValidationError) Key ¶
func (e PercentValidationError) Key() bool
Key function returns key value.
func (PercentValidationError) Reason ¶
func (e PercentValidationError) Reason() string
Reason function returns reason value.
type RateLimitUnit ¶ added in v0.9.6
type RateLimitUnit int32
Identifies the unit of of time for rate limit.
const ( // The time unit is not known. RateLimitUnit_UNKNOWN RateLimitUnit = 0 // The time unit representing a second. RateLimitUnit_SECOND RateLimitUnit = 1 // The time unit representing a minute. RateLimitUnit_MINUTE RateLimitUnit = 2 // The time unit representing an hour. RateLimitUnit_HOUR RateLimitUnit = 3 // The time unit representing a day. RateLimitUnit_DAY RateLimitUnit = 4 )
func (RateLimitUnit) Descriptor ¶ added in v0.9.6
func (RateLimitUnit) Descriptor() protoreflect.EnumDescriptor
func (RateLimitUnit) Enum ¶ added in v0.9.6
func (x RateLimitUnit) Enum() *RateLimitUnit
func (RateLimitUnit) EnumDescriptor
deprecated
added in
v0.9.6
func (RateLimitUnit) EnumDescriptor() ([]byte, []int)
Deprecated: Use RateLimitUnit.Descriptor instead.
func (RateLimitUnit) Number ¶ added in v0.9.6
func (x RateLimitUnit) Number() protoreflect.EnumNumber
func (RateLimitUnit) String ¶ added in v0.9.6
func (x RateLimitUnit) String() string
func (RateLimitUnit) Type ¶ added in v0.9.6
func (RateLimitUnit) Type() protoreflect.EnumType
type SemanticVersion ¶
type SemanticVersion struct { MajorNumber uint32 `protobuf:"varint,1,opt,name=major_number,json=majorNumber,proto3" json:"major_number,omitempty"` MinorNumber uint32 `protobuf:"varint,2,opt,name=minor_number,json=minorNumber,proto3" json:"minor_number,omitempty"` Patch uint32 `protobuf:"varint,3,opt,name=patch,proto3" json:"patch,omitempty"` // contains filtered or unexported fields }
Envoy uses SemVer (https://semver.org/). Major/minor versions indicate expected behaviors and APIs, the patch version field is used only for security fixes and can be generally ignored.
func (*SemanticVersion) Descriptor
deprecated
func (*SemanticVersion) Descriptor() ([]byte, []int)
Deprecated: Use SemanticVersion.ProtoReflect.Descriptor instead.
func (*SemanticVersion) GetMajorNumber ¶
func (x *SemanticVersion) GetMajorNumber() uint32
func (*SemanticVersion) GetMinorNumber ¶
func (x *SemanticVersion) GetMinorNumber() uint32
func (*SemanticVersion) GetPatch ¶
func (x *SemanticVersion) GetPatch() uint32
func (*SemanticVersion) ProtoMessage ¶
func (*SemanticVersion) ProtoMessage()
func (*SemanticVersion) ProtoReflect ¶ added in v0.9.6
func (x *SemanticVersion) ProtoReflect() protoreflect.Message
func (*SemanticVersion) Reset ¶
func (x *SemanticVersion) Reset()
func (*SemanticVersion) String ¶
func (x *SemanticVersion) String() string
func (*SemanticVersion) Validate ¶
func (m *SemanticVersion) Validate() error
Validate checks the field values on SemanticVersion 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 (*SemanticVersion) ValidateAll ¶ added in v0.10.0
func (m *SemanticVersion) ValidateAll() error
ValidateAll checks the field values on SemanticVersion 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 SemanticVersionMultiError, or nil if none found.
type SemanticVersionMultiError ¶ added in v0.10.0
type SemanticVersionMultiError []error
SemanticVersionMultiError is an error wrapping multiple validation errors returned by SemanticVersion.ValidateAll() if the designated constraints aren't met.
func (SemanticVersionMultiError) AllErrors ¶ added in v0.10.0
func (m SemanticVersionMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SemanticVersionMultiError) Error ¶ added in v0.10.0
func (m SemanticVersionMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SemanticVersionValidationError ¶
type SemanticVersionValidationError struct {
// contains filtered or unexported fields
}
SemanticVersionValidationError is the validation error returned by SemanticVersion.Validate if the designated constraints aren't met.
func (SemanticVersionValidationError) Cause ¶
func (e SemanticVersionValidationError) Cause() error
Cause function returns cause value.
func (SemanticVersionValidationError) Error ¶
func (e SemanticVersionValidationError) Error() string
Error satisfies the builtin error interface
func (SemanticVersionValidationError) ErrorName ¶
func (e SemanticVersionValidationError) ErrorName() string
ErrorName returns error name.
func (SemanticVersionValidationError) Field ¶
func (e SemanticVersionValidationError) Field() string
Field function returns field value.
func (SemanticVersionValidationError) Key ¶
func (e SemanticVersionValidationError) Key() bool
Key function returns key value.
func (SemanticVersionValidationError) Reason ¶
func (e SemanticVersionValidationError) Reason() string
Reason function returns reason value.
type StatusCode ¶
type StatusCode int32
HTTP response codes supported in Envoy. For more details: https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
const ( // Empty - This code not part of the HTTP status code specification, but it is needed for proto // `enum` type. StatusCode_Empty StatusCode = 0 StatusCode_Continue StatusCode = 100 StatusCode_OK StatusCode = 200 StatusCode_Created StatusCode = 201 StatusCode_Accepted StatusCode = 202 StatusCode_NonAuthoritativeInformation StatusCode = 203 StatusCode_NoContent StatusCode = 204 StatusCode_ResetContent StatusCode = 205 StatusCode_PartialContent StatusCode = 206 StatusCode_MultiStatus StatusCode = 207 StatusCode_AlreadyReported StatusCode = 208 StatusCode_IMUsed StatusCode = 226 StatusCode_MultipleChoices StatusCode = 300 StatusCode_MovedPermanently StatusCode = 301 StatusCode_Found StatusCode = 302 StatusCode_SeeOther StatusCode = 303 StatusCode_NotModified StatusCode = 304 StatusCode_UseProxy StatusCode = 305 StatusCode_TemporaryRedirect StatusCode = 307 StatusCode_PermanentRedirect StatusCode = 308 StatusCode_BadRequest StatusCode = 400 StatusCode_PaymentRequired StatusCode = 402 StatusCode_Forbidden StatusCode = 403 StatusCode_NotFound StatusCode = 404 StatusCode_MethodNotAllowed StatusCode = 405 StatusCode_NotAcceptable StatusCode = 406 StatusCode_ProxyAuthenticationRequired StatusCode = 407 StatusCode_RequestTimeout StatusCode = 408 StatusCode_Conflict StatusCode = 409 StatusCode_Gone StatusCode = 410 StatusCode_LengthRequired StatusCode = 411 StatusCode_PreconditionFailed StatusCode = 412 StatusCode_PayloadTooLarge StatusCode = 413 StatusCode_URITooLong StatusCode = 414 StatusCode_UnsupportedMediaType StatusCode = 415 StatusCode_RangeNotSatisfiable StatusCode = 416 StatusCode_ExpectationFailed StatusCode = 417 StatusCode_MisdirectedRequest StatusCode = 421 StatusCode_UnprocessableEntity StatusCode = 422 StatusCode_Locked StatusCode = 423 StatusCode_FailedDependency StatusCode = 424 StatusCode_UpgradeRequired StatusCode = 426 StatusCode_PreconditionRequired StatusCode = 428 StatusCode_TooManyRequests StatusCode = 429 StatusCode_RequestHeaderFieldsTooLarge StatusCode = 431 StatusCode_InternalServerError StatusCode = 500 StatusCode_NotImplemented StatusCode = 501 StatusCode_BadGateway StatusCode = 502 StatusCode_GatewayTimeout StatusCode = 504 StatusCode_HTTPVersionNotSupported StatusCode = 505 StatusCode_VariantAlsoNegotiates StatusCode = 506 StatusCode_InsufficientStorage StatusCode = 507 StatusCode_LoopDetected StatusCode = 508 StatusCode_NotExtended StatusCode = 510 StatusCode_NetworkAuthenticationRequired StatusCode = 511 )
func (StatusCode) Descriptor ¶ added in v0.9.6
func (StatusCode) Descriptor() protoreflect.EnumDescriptor
func (StatusCode) Enum ¶ added in v0.9.6
func (x StatusCode) Enum() *StatusCode
func (StatusCode) EnumDescriptor
deprecated
func (StatusCode) EnumDescriptor() ([]byte, []int)
Deprecated: Use StatusCode.Descriptor instead.
func (StatusCode) Number ¶ added in v0.9.6
func (x StatusCode) Number() protoreflect.EnumNumber
func (StatusCode) String ¶
func (x StatusCode) String() string
func (StatusCode) Type ¶ added in v0.9.6
func (StatusCode) Type() protoreflect.EnumType
type TokenBucket ¶
type TokenBucket struct { // The maximum tokens that the bucket can hold. This is also the number of tokens that the bucket // initially contains. MaxTokens uint32 `protobuf:"varint,1,opt,name=max_tokens,json=maxTokens,proto3" json:"max_tokens,omitempty"` // The number of tokens added to the bucket during each fill interval. If not specified, defaults // to a single token. TokensPerFill *wrappers.UInt32Value `protobuf:"bytes,2,opt,name=tokens_per_fill,json=tokensPerFill,proto3" json:"tokens_per_fill,omitempty"` // The fill interval that tokens are added to the bucket. During each fill interval // `tokens_per_fill` are added to the bucket. The bucket will never contain more than // `max_tokens` tokens. FillInterval *duration.Duration `protobuf:"bytes,3,opt,name=fill_interval,json=fillInterval,proto3" json:"fill_interval,omitempty"` // contains filtered or unexported fields }
Configures a token bucket, typically used for rate limiting.
func (*TokenBucket) Descriptor
deprecated
func (*TokenBucket) Descriptor() ([]byte, []int)
Deprecated: Use TokenBucket.ProtoReflect.Descriptor instead.
func (*TokenBucket) GetFillInterval ¶
func (x *TokenBucket) GetFillInterval() *duration.Duration
func (*TokenBucket) GetMaxTokens ¶
func (x *TokenBucket) GetMaxTokens() uint32
func (*TokenBucket) GetTokensPerFill ¶
func (x *TokenBucket) GetTokensPerFill() *wrappers.UInt32Value
func (*TokenBucket) ProtoMessage ¶
func (*TokenBucket) ProtoMessage()
func (*TokenBucket) ProtoReflect ¶ added in v0.9.6
func (x *TokenBucket) ProtoReflect() protoreflect.Message
func (*TokenBucket) Reset ¶
func (x *TokenBucket) Reset()
func (*TokenBucket) String ¶
func (x *TokenBucket) String() string
func (*TokenBucket) Validate ¶
func (m *TokenBucket) Validate() error
Validate checks the field values on TokenBucket 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 (*TokenBucket) ValidateAll ¶ added in v0.10.0
func (m *TokenBucket) ValidateAll() error
ValidateAll checks the field values on TokenBucket 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 TokenBucketMultiError, or nil if none found.
type TokenBucketMultiError ¶ added in v0.10.0
type TokenBucketMultiError []error
TokenBucketMultiError is an error wrapping multiple validation errors returned by TokenBucket.ValidateAll() if the designated constraints aren't met.
func (TokenBucketMultiError) AllErrors ¶ added in v0.10.0
func (m TokenBucketMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TokenBucketMultiError) Error ¶ added in v0.10.0
func (m TokenBucketMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TokenBucketValidationError ¶
type TokenBucketValidationError struct {
// contains filtered or unexported fields
}
TokenBucketValidationError is the validation error returned by TokenBucket.Validate if the designated constraints aren't met.
func (TokenBucketValidationError) Cause ¶
func (e TokenBucketValidationError) Cause() error
Cause function returns cause value.
func (TokenBucketValidationError) Error ¶
func (e TokenBucketValidationError) Error() string
Error satisfies the builtin error interface
func (TokenBucketValidationError) ErrorName ¶
func (e TokenBucketValidationError) ErrorName() string
ErrorName returns error name.
func (TokenBucketValidationError) Field ¶
func (e TokenBucketValidationError) Field() string
Field function returns field value.
func (TokenBucketValidationError) Key ¶
func (e TokenBucketValidationError) Key() bool
Key function returns key value.
func (TokenBucketValidationError) Reason ¶
func (e TokenBucketValidationError) Reason() string
Reason function returns reason value.
Source Files ¶
- hash_policy.pb.go
- hash_policy.pb.validate.go
- http.pb.go
- http.pb.validate.go
- http_status.pb.go
- http_status.pb.validate.go
- percent.pb.go
- percent.pb.validate.go
- range.pb.go
- range.pb.validate.go
- ratelimit_unit.pb.go
- ratelimit_unit.pb.validate.go
- semantic_version.pb.go
- semantic_version.pb.validate.go
- token_bucket.pb.go
- token_bucket.pb.validate.go