config

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Config{
	Enabled: false,
	Routes:  []Route{},
}

DefaultConfig is the default configuration for Lite mode.

Functions

This section is empty.

Types

type Config

type Config struct {
	Enabled bool
	Routes  []Route
}

Config is the configuration for Lite mode.

func (Config) Validate

func (c Config) Validate() (warns []error, errs []error)

type Route

type Route struct {
	Host          configutil.SingleOrMulti[string]
	Backend       configutil.SingleOrMulti[string]
	CachePingTTL  time.Duration // 0 = default, < 0 = disabled
	ProxyProtocol bool
	RealIP        bool
}

func (*Route) CachePingEnabled added in v0.26.0

func (r *Route) CachePingEnabled() bool

func (*Route) GetCachePingTTL added in v0.26.0

func (r *Route) GetCachePingTTL() time.Duration

Jump to

Keyboard shortcuts

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