config

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogLevel added in v0.1.10

func LogLevel() log.Level

func MustLoad added in v0.1.10

func MustLoad(name, path string)

func RefreshIntervalInS added in v0.1.10

func RefreshIntervalInS() int

Types

type AppConfig added in v0.1.10

type AppConfig struct {
	Log
	// contains filtered or unexported fields
}

type CircuitBreakerConfig

type CircuitBreakerConfig struct {
	MaxConnections     uint32
	MaxRequests        uint32
	MaxPendingRequests uint32
	MaxRetries         uint32
}

type DiscoveryMap added in v0.1.10

type DiscoveryMap struct {
	EnvoyId               string `mapstructure:"envoy_id"`
	UpstreamEndpointLabel string `mapstructure:"upstream_endpoint_label"`
	Namespace             string `mapstructure:"namespace"`
}

func GetDiscoveryMapping added in v0.1.10

func GetDiscoveryMapping() []DiscoveryMap

type EnvoyClusterConfig

type EnvoyClusterConfig struct {
	ConnectTimeoutMs int
	CircuitBreaker   CircuitBreakerConfig
	OutlierDetection OutlierDetectionConfig
}

type EnvoyConfig

type EnvoyConfig struct {
	EnvoyVHostConfig
	EnvoyClusterConfig
}

func GetEnvoyConfig added in v0.1.10

func GetEnvoyConfig() EnvoyConfig

type EnvoyVHostConfig

type EnvoyVHostConfig struct {
	RetryConfig RetryConfig
}

type Log added in v0.1.10

type Log struct {
	// contains filtered or unexported fields
}

type OutlierDetectionConfig

type OutlierDetectionConfig struct {
	BaseEjectionTimeInSeconds          int64
	EjectionSweepIntervalInSeconds     int64
	Consecutive5xx                     uint32
	ConsecutiveGatewayFailure          uint32
	EnforcingConsecutive5xx            uint32
	EnforcingConsecutiveGatewayFailure uint32
	MaxEjectionPercent                 uint32
}

type RetryConfig

type RetryConfig struct {
	RetryOn                       string
	RetryPredicate                string
	NumRetries                    uint32
	HostSelectionMaxRetryAttempts int64
}

Jump to

Keyboard shortcuts

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