Documentation ¶
Index ¶
- Variables
- type Router
- func (*Router) Descriptor() ([]byte, []int)
- func (m *Router) GetDynamicStats() *types.BoolValue
- func (m *Router) GetStartChildSpan() bool
- func (m *Router) GetSuppressEnvoyHeaders() bool
- func (m *Router) GetUpstreamLog() []*v2.AccessLog
- func (m *Router) Marshal() (dAtA []byte, err error)
- func (m *Router) MarshalTo(dAtA []byte) (int, error)
- func (*Router) ProtoMessage()
- func (m *Router) Reset()
- func (m *Router) Size() (n int)
- func (m *Router) String() string
- func (m *Router) Unmarshal(dAtA []byte) error
- func (m *Router) Validate() error
- func (m *Router) XXX_DiscardUnknown()
- func (m *Router) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Router) XXX_Merge(src proto.Message)
- func (m *Router) XXX_Size() int
- func (m *Router) XXX_Unmarshal(b []byte) error
- type RouterValidationError
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthRouter = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowRouter = fmt.Errorf("proto: integer overflow") )
Functions ¶
This section is empty.
Types ¶
type Router ¶
type Router struct { // Whether the router generates dynamic cluster statistics. Defaults to // true. Can be disabled in high performance scenarios. DynamicStats *types.BoolValue `protobuf:"bytes,1,opt,name=dynamic_stats,json=dynamicStats,proto3" json:"dynamic_stats,omitempty"` // Whether to start a child span for egress routed calls. This can be // useful in scenarios where other filters (auth, ratelimit, etc.) make // outbound calls and have child spans rooted at the same ingress // parent. Defaults to false. StartChildSpan bool `protobuf:"varint,2,opt,name=start_child_span,json=startChildSpan,proto3" json:"start_child_span,omitempty"` // Configuration for HTTP upstream logs emitted by the router. Upstream logs // are configured in the same way as access logs, but each log entry represents // an upstream request. Presuming retries are configured, multiple upstream // requests may be made for each downstream (inbound) request. UpstreamLog []*v2.AccessLog `protobuf:"bytes,3,rep,name=upstream_log,json=upstreamLog,proto3" json:"upstream_log,omitempty"` // Do not add any additional *x-envoy-* headers to requests or responses. This // only affects the :ref:`router filter generated *x-envoy-* headers // <config_http_filters_router_headers_set>`, other Envoy filters and the HTTP // connection manager may continue to set *x-envoy-* headers. SuppressEnvoyHeaders bool `protobuf:"varint,4,opt,name=suppress_envoy_headers,json=suppressEnvoyHeaders,proto3" json:"suppress_envoy_headers,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Router) Descriptor ¶
func (*Router) GetDynamicStats ¶
func (*Router) GetStartChildSpan ¶
func (*Router) GetSuppressEnvoyHeaders ¶
func (*Router) GetUpstreamLog ¶
func (*Router) ProtoMessage ¶
func (*Router) ProtoMessage()
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, an error is returned.
func (*Router) XXX_DiscardUnknown ¶
func (m *Router) XXX_DiscardUnknown()
func (*Router) XXX_Marshal ¶
func (*Router) XXX_Unmarshal ¶
type RouterValidationError ¶
RouterValidationError is the validation error returned by Router.Validate if the designated constraints aren't met.
func (RouterValidationError) Error ¶
func (e RouterValidationError) Error() string
Error satisfies the builtin error interface
Click to show internal directories.
Click to hide internal directories.