Documentation ¶
Index ¶
- Variables
- type Router
- func (*Router) Descriptor() ([]byte, []int)deprecated
- func (x *Router) GetBindUpstreamConnection() bool
- func (*Router) ProtoMessage()
- func (x *Router) ProtoReflect() protoreflect.Message
- func (x *Router) Reset()
- func (x *Router) String() string
- func (m *Router) Validate() error
- func (m *Router) ValidateAll() error
- type RouterMultiError
- type RouterValidationError
Constants ¶
This section is empty.
Variables ¶
var File_contrib_envoy_extensions_filters_network_generic_proxy_router_v3_router_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Router ¶
type Router struct { // Set to true if the upstream connection should be bound to the downstream connection, false // otherwise. // // By default, one random upstream connection will be selected from the upstream connection pool // and used for every request. And after the request is finished, the upstream connection will be // released back to the upstream connection pool. // // If this option is true, the upstream connection will be bound to the downstream connection and // have same lifetime as the downstream connection. The same upstream connection will be used for // all requests from the same downstream connection. // // And if this options is true, one of the following requirements must be met: // // 1. The request must be handled one by one. That is, the next request can not be sent to the // upstream until the previous request is finished. // 2. Unique request id must be provided for each request and response. The request id must be // unique for each request and response pair in same connection pair. And the request id must // be the same for the corresponding request and response. // // This could be useful for some protocols that require the same upstream connection to be used // for all requests from the same downstream connection. For example, the protocol using stateful // connection. BindUpstreamConnection bool `` /* 130-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Router) Descriptor
deprecated
func (*Router) GetBindUpstreamConnection ¶ added in v0.12.0
func (*Router) ProtoMessage ¶
func (*Router) ProtoMessage()
func (*Router) ProtoReflect ¶
func (x *Router) ProtoReflect() protoreflect.Message
func (*Router) Validate ¶
Validate checks the field values on Router 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 (*Router) ValidateAll ¶
ValidateAll checks the field values on Router 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 RouterMultiError, or nil if none found.
type RouterMultiError ¶
type RouterMultiError []error
RouterMultiError is an error wrapping multiple validation errors returned by Router.ValidateAll() if the designated constraints aren't met.
func (RouterMultiError) AllErrors ¶
func (m RouterMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RouterMultiError) Error ¶
func (m RouterMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RouterValidationError ¶
type RouterValidationError struct {
// contains filtered or unexported fields
}
RouterValidationError is the validation error returned by Router.Validate if the designated constraints aren't met.
func (RouterValidationError) Cause ¶
func (e RouterValidationError) Cause() error
Cause function returns cause value.
func (RouterValidationError) Error ¶
func (e RouterValidationError) Error() string
Error satisfies the builtin error interface
func (RouterValidationError) ErrorName ¶
func (e RouterValidationError) ErrorName() string
ErrorName returns error name.
func (RouterValidationError) Field ¶
func (e RouterValidationError) Field() string
Field function returns field value.
func (RouterValidationError) Key ¶
func (e RouterValidationError) Key() bool
Key function returns key value.
func (RouterValidationError) Reason ¶
func (e RouterValidationError) Reason() string
Reason function returns reason value.