cds

package
v0.0.0-...-4b75dde Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Overview

Package cds implements Envoy's Cluster Discovery Service (CDS).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultCircuitBreakerThreshold

func GetDefaultCircuitBreakerThreshold() *xds_cluster.CircuitBreakers_Thresholds

GetDefaultCircuitBreakerThreshold returns the XDS Circuit Breaker thresholds at their max value, effectively disabling circuit breaking

func GetHTTPProtocolOptions

func GetHTTPProtocolOptions(protocol string) *extensions_upstream_http.HttpProtocolOptions

GetHTTPProtocolOptions returns the HttpProtocolOptions for the given protocol. If an empty protocol string is specified, it returns options using the downstream protocol by default.

func GetTypedHTTPProtocolOptions

func GetTypedHTTPProtocolOptions(httpProtocolOptions *extensions_upstream_http.HttpProtocolOptions) (map[string]*any.Any, error)

GetTypedHTTPProtocolOptions marshals the provided httpProtocolOptions into the consumable type for the envoy config.

func NewClusterBuilder

func NewClusterBuilder() *clusterBuilder

Types

This section is empty.

Jump to

Keyboard shortcuts

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