Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Node ¶
type Node struct {
Host string `json:"host,omitempty"`
Port int `json:"port,omitempty"`
Weight int `json:"weight,omitempty"`
// contains filtered or unexported fields
}
func (*Node) UnmarshalJSON ¶
type Override ¶
type Override struct {
Scheme string
Host string
PassHost string
UpstreamHost string
Timeout resource.Timeout
Retries int
NextRetry func() *Override
HealthReporter pxy.HealthReporter
HealthTarget string
}
func GetOverride ¶
type Plugin ¶
type Plugin struct {
base.BasePlugin
// contains filtered or unexported fields
}
type Rule ¶
type Rule struct {
Match []Match `json:"match,omitempty"`
WeightedUpstreams []WeightedUpstream `json:"weighted_upstreams,omitempty"`
}
type Upstream ¶
type Upstream struct {
Type string `json:"type,omitempty"`
Scheme string `json:"scheme,omitempty"`
PassHost string `json:"pass_host,omitempty"`
UpstreamHost string `json:"upstream_host,omitempty"`
HashOn string `json:"hash_on,omitempty"`
Key string `json:"key,omitempty"`
Timeout resource.Timeout `json:"timeout"`
Retries int `json:"retries,omitempty"`
Checks map[string]any `json:"checks,omitempty"`
Nodes []Node `json:"nodes,omitempty"`
// contains filtered or unexported fields
}
func (*Upstream) UnmarshalJSON ¶
type WeightedUpstream ¶
type WeightedUpstream struct {
UpstreamID string `json:"upstream_id,omitempty"`
Upstream *Upstream `json:"upstream,omitempty"`
Weight int `json:"weight,omitempty"`
// contains filtered or unexported fields
}
func (*WeightedUpstream) UnmarshalJSON ¶
func (w *WeightedUpstream) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.