Documentation
¶
Overview ¶
Package proxyutil handles parsing logic for proxymw configs
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// InsecureListenAddress is the address the proxy HTTP server should listen on
InsecureListenAddress string `yaml:"insecure_listen_addr"`
// InternalListenAddress is the address the HTTP server should listen on for pprof and metrics
InternalListenAddress string `yaml:"internal_listen_addr"`
// Upstream is the upstream URL to proxy to
Upstream string `yaml:"upstream"`
// ProxyPaths is the list of paths to throttle with proxy settings
ProxyPaths []string `yaml:"proxy_paths"`
// PassthroughPaths is a list of paths to pass through instead of applying proxy settings
PassthroughPaths []string `yaml:"passthrough_paths"`
ProxyConfig proxymw.Config `yaml:"proxymw_config"`
ReadTimeout string `yaml:"proxy_read_timeout"`
WriteTimeout string `yaml:"proxy_write_timeout"`
}
func ParseConfigEnvironment ¶ added in v0.1.14
func ParseConfigFile ¶ added in v0.1.14
func ParseConfigFlags ¶ added in v0.1.14
type Float64Slice ¶
type Float64Slice []float64
func (*Float64Slice) Set ¶
func (f *Float64Slice) Set(value string) error
func (*Float64Slice) String ¶
func (f *Float64Slice) String() string
type StringSlice ¶
type StringSlice []string
func (*StringSlice) Set ¶
func (s *StringSlice) Set(value string) error
func (*StringSlice) String ¶
func (s *StringSlice) String() string
Click to show internal directories.
Click to hide internal directories.