Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultUpstream = "http://localhost:8080" DefaultRuleFile = "configs/default.rules.hcl" DefaultAccessLog = "events.jsonl" DefaultListenBind = "0.0.0.0:8443" DefaultProxyCacheSize = proxy.DefaultProxyCacheSize )
Built-in defaults used when synthesising configs.
Variables ¶
This section is empty.
Functions ¶
func AbsFromCWD ¶
AbsFromCWD resolves p against the current working directory when not already absolute and returns a canonical absolute path.
Types ¶
type Overrides ¶
type Overrides struct {
Upstream string
UpstreamSet bool
RuleFile string
RuleFileSet bool
AccessLog string
AccessLogSet bool
ProxyCacheSize int
ProxyCacheSizeSet bool
DefaultAction string
DefaultActionSet bool
UpstreamCAFile string
UpstreamCAFileSet bool
UpstreamSkipTLSVerify bool
UpstreamSkipSet bool
AdminEnabled bool
AdminEnabledSet bool
AdminAddr string
AdminAddrSet bool
AdminToken string
AdminTokenSet bool
SSEEnabled bool
SSEEnabledSet bool
SSEAddr string
SSEAddrSet bool
}
Overrides contains CLI override values applied when a main config is loaded. Zero-value fields are ignored unless the corresponding Set flag is true.
Click to show internal directories.
Click to hide internal directories.