Documentation ¶
Overview ¶
Package envoy_type is a generated protocol buffer package.
It is generated from these files:
envoy/type/http_status.proto envoy/type/percent.proto envoy/type/range.proto
It has these top-level messages:
HttpStatus Percent FractionalPercent Int64Range DoubleRange
Index ¶
- Variables
- type DoubleRange
- func (*DoubleRange) Descriptor() ([]byte, []int)
- func (this *DoubleRange) Equal(that interface{}) bool
- func (m *DoubleRange) GetEnd() float64
- func (m *DoubleRange) GetStart() float64
- func (m *DoubleRange) Marshal() (dAtA []byte, err error)
- func (m *DoubleRange) MarshalTo(dAtA []byte) (int, error)
- func (*DoubleRange) ProtoMessage()
- func (m *DoubleRange) Reset()
- func (m *DoubleRange) Size() (n int)
- func (m *DoubleRange) String() string
- func (m *DoubleRange) Unmarshal(dAtA []byte) error
- func (m *DoubleRange) Validate() error
- type DoubleRangeValidationError
- type FractionalPercent
- func (*FractionalPercent) Descriptor() ([]byte, []int)
- func (this *FractionalPercent) Equal(that interface{}) bool
- func (m *FractionalPercent) GetDenominator() FractionalPercent_DenominatorType
- func (m *FractionalPercent) GetNumerator() uint32
- func (m *FractionalPercent) Marshal() (dAtA []byte, err error)
- func (m *FractionalPercent) MarshalTo(dAtA []byte) (int, error)
- func (*FractionalPercent) ProtoMessage()
- func (m *FractionalPercent) Reset()
- func (m *FractionalPercent) Size() (n int)
- func (m *FractionalPercent) String() string
- func (m *FractionalPercent) Unmarshal(dAtA []byte) error
- func (m *FractionalPercent) Validate() error
- type FractionalPercentValidationError
- type FractionalPercent_DenominatorType
- type HttpStatus
- func (*HttpStatus) Descriptor() ([]byte, []int)
- func (m *HttpStatus) GetCode() StatusCode
- func (m *HttpStatus) Marshal() (dAtA []byte, err error)
- func (m *HttpStatus) MarshalTo(dAtA []byte) (int, error)
- func (*HttpStatus) ProtoMessage()
- func (m *HttpStatus) Reset()
- func (m *HttpStatus) Size() (n int)
- func (m *HttpStatus) String() string
- func (m *HttpStatus) Unmarshal(dAtA []byte) error
- func (m *HttpStatus) Validate() error
- type HttpStatusValidationError
- type Int64Range
- func (*Int64Range) Descriptor() ([]byte, []int)
- func (this *Int64Range) Equal(that interface{}) bool
- func (m *Int64Range) GetEnd() int64
- func (m *Int64Range) GetStart() int64
- func (m *Int64Range) Marshal() (dAtA []byte, err error)
- func (m *Int64Range) MarshalTo(dAtA []byte) (int, error)
- func (*Int64Range) ProtoMessage()
- func (m *Int64Range) Reset()
- func (m *Int64Range) Size() (n int)
- func (m *Int64Range) String() string
- func (m *Int64Range) Unmarshal(dAtA []byte) error
- func (m *Int64Range) Validate() error
- type Int64RangeValidationError
- type Percent
- func (*Percent) Descriptor() ([]byte, []int)
- func (this *Percent) Equal(that interface{}) bool
- func (m *Percent) GetValue() float64
- func (m *Percent) Marshal() (dAtA []byte, err error)
- func (m *Percent) MarshalTo(dAtA []byte) (int, error)
- func (*Percent) ProtoMessage()
- func (m *Percent) Reset()
- func (m *Percent) Size() (n int)
- func (m *Percent) String() string
- func (m *Percent) Unmarshal(dAtA []byte) error
- func (m *Percent) Validate() error
- type PercentValidationError
- type StatusCode
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthHttpStatus = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowHttpStatus = fmt.Errorf("proto: integer overflow") )
var ( ErrInvalidLengthPercent = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowPercent = fmt.Errorf("proto: integer overflow") )
var ( ErrInvalidLengthRange = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowRange = fmt.Errorf("proto: integer overflow") )
var FractionalPercent_DenominatorType_name = map[int32]string{
0: "HUNDRED",
1: "TEN_THOUSAND",
2: "MILLION",
}
var FractionalPercent_DenominatorType_value = map[string]int32{
"HUNDRED": 0,
"TEN_THOUSAND": 1,
"MILLION": 2,
}
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",
}
var 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,
}
Functions ¶
This section is empty.
Types ¶
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"` }
Specifies the double start and end of the range using half-open interval semantics [start, end).
func (*DoubleRange) Descriptor ¶
func (*DoubleRange) Descriptor() ([]byte, []int)
func (*DoubleRange) Equal ¶
func (this *DoubleRange) Equal(that interface{}) bool
func (*DoubleRange) GetEnd ¶
func (m *DoubleRange) GetEnd() float64
func (*DoubleRange) GetStart ¶
func (m *DoubleRange) GetStart() float64
func (*DoubleRange) Marshal ¶
func (m *DoubleRange) Marshal() (dAtA []byte, err error)
func (*DoubleRange) ProtoMessage ¶
func (*DoubleRange) ProtoMessage()
func (*DoubleRange) Reset ¶
func (m *DoubleRange) Reset()
func (*DoubleRange) Size ¶
func (m *DoubleRange) Size() (n int)
func (*DoubleRange) String ¶
func (m *DoubleRange) String() string
func (*DoubleRange) Unmarshal ¶
func (m *DoubleRange) Unmarshal(dAtA []byte) error
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, an error is returned.
type DoubleRangeValidationError ¶
DoubleRangeValidationError is the validation error returned by DoubleRange.Validate if the designated constraints aren't met.
func (DoubleRangeValidationError) Error ¶
func (e DoubleRangeValidationError) Error() string
Error satisfies the builtin error interface
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 `` /* 126-byte string literal not displayed */ }
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 ¶
func (*FractionalPercent) Descriptor() ([]byte, []int)
func (*FractionalPercent) Equal ¶
func (this *FractionalPercent) Equal(that interface{}) bool
func (*FractionalPercent) GetDenominator ¶
func (m *FractionalPercent) GetDenominator() FractionalPercent_DenominatorType
func (*FractionalPercent) GetNumerator ¶
func (m *FractionalPercent) GetNumerator() uint32
func (*FractionalPercent) Marshal ¶
func (m *FractionalPercent) Marshal() (dAtA []byte, err error)
func (*FractionalPercent) MarshalTo ¶
func (m *FractionalPercent) MarshalTo(dAtA []byte) (int, error)
func (*FractionalPercent) ProtoMessage ¶
func (*FractionalPercent) ProtoMessage()
func (*FractionalPercent) Reset ¶
func (m *FractionalPercent) Reset()
func (*FractionalPercent) Size ¶
func (m *FractionalPercent) Size() (n int)
func (*FractionalPercent) String ¶
func (m *FractionalPercent) String() string
func (*FractionalPercent) Unmarshal ¶
func (m *FractionalPercent) Unmarshal(dAtA []byte) error
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, an error is returned.
type FractionalPercentValidationError ¶
FractionalPercentValidationError is the validation error returned by FractionalPercent.Validate if the designated constraints aren't met.
func (FractionalPercentValidationError) Error ¶
func (e FractionalPercentValidationError) Error() string
Error satisfies the builtin error interface
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) EnumDescriptor ¶
func (FractionalPercent_DenominatorType) EnumDescriptor() ([]byte, []int)
func (FractionalPercent_DenominatorType) String ¶
func (x FractionalPercent_DenominatorType) String() string
type HttpStatus ¶
type HttpStatus struct { // Supplies HTTP response code. Code StatusCode `protobuf:"varint,1,opt,name=code,proto3,enum=envoy.type.StatusCode" json:"code,omitempty"` }
HTTP status.
func (*HttpStatus) Descriptor ¶
func (*HttpStatus) Descriptor() ([]byte, []int)
func (*HttpStatus) GetCode ¶
func (m *HttpStatus) GetCode() StatusCode
func (*HttpStatus) Marshal ¶
func (m *HttpStatus) Marshal() (dAtA []byte, err error)
func (*HttpStatus) ProtoMessage ¶
func (*HttpStatus) ProtoMessage()
func (*HttpStatus) Reset ¶
func (m *HttpStatus) Reset()
func (*HttpStatus) Size ¶
func (m *HttpStatus) Size() (n int)
func (*HttpStatus) String ¶
func (m *HttpStatus) String() string
func (*HttpStatus) Unmarshal ¶
func (m *HttpStatus) Unmarshal(dAtA []byte) error
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, an error is returned.
type HttpStatusValidationError ¶
HttpStatusValidationError is the validation error returned by HttpStatus.Validate if the designated constraints aren't met.
func (HttpStatusValidationError) Error ¶
func (e HttpStatusValidationError) Error() string
Error satisfies the builtin error interface
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"` }
Specifies the int64 start and end of the range using half-open interval semantics [start, end).
func (*Int64Range) Descriptor ¶
func (*Int64Range) Descriptor() ([]byte, []int)
func (*Int64Range) Equal ¶
func (this *Int64Range) Equal(that interface{}) bool
func (*Int64Range) GetEnd ¶
func (m *Int64Range) GetEnd() int64
func (*Int64Range) GetStart ¶
func (m *Int64Range) GetStart() int64
func (*Int64Range) Marshal ¶
func (m *Int64Range) Marshal() (dAtA []byte, err error)
func (*Int64Range) ProtoMessage ¶
func (*Int64Range) ProtoMessage()
func (*Int64Range) Reset ¶
func (m *Int64Range) Reset()
func (*Int64Range) Size ¶
func (m *Int64Range) Size() (n int)
func (*Int64Range) String ¶
func (m *Int64Range) String() string
func (*Int64Range) Unmarshal ¶
func (m *Int64Range) Unmarshal(dAtA []byte) error
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, an error is returned.
type Int64RangeValidationError ¶
Int64RangeValidationError is the validation error returned by Int64Range.Validate if the designated constraints aren't met.
func (Int64RangeValidationError) Error ¶
func (e Int64RangeValidationError) Error() string
Error satisfies the builtin error interface
type Percent ¶
type Percent struct {
Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"`
}
Identifies a percentage, in the range [0.0, 100.0].
func (*Percent) Descriptor ¶
func (*Percent) ProtoMessage ¶
func (*Percent) ProtoMessage()
type PercentValidationError ¶
PercentValidationError is the validation error returned by Percent.Validate if the designated constraints aren't met.
func (PercentValidationError) Error ¶
func (e PercentValidationError) Error() string
Error satisfies the builtin error interface
type StatusCode ¶
type StatusCode int32
HTTP response codes supported in Envoy. For more details: http://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) EnumDescriptor ¶
func (StatusCode) EnumDescriptor() ([]byte, []int)
func (StatusCode) String ¶
func (x StatusCode) String() string