package
Version:
v0.0.0-...-22c913a
Opens a new window with list of versions in this module.
Published: Feb 8, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Backend struct {
Name string `yaml:"name"`
Hostname string `yaml:"hostname"`
IsHealthy bool
}
type BackendPool struct {
Name string `yaml:"name"`
HealthProbeName string `yaml:"healthProbeName"`
Servers []Backend `yaml:"servers"`
ServerHealthyIndex []int
}
type BackendPoolConfig struct {
Pools []BackendPool `yaml:"pools"`
}
type ConfigType struct {
Properties struct {
SSL struct {
Enable bool `yaml:"enable"`
KeyPath string `yaml:"keyPath"`
CertPath string `yaml:"certPath"`
} `yaml:"ssl"`
Port struct {
Http int `yaml:"http"`
Https int `yaml:"https"`
} `yaml:"port"`
} `yaml:"properties"`
}
type HealthProbe struct {
Name string `yaml:"name"`
Path string `yaml:"path"`
Https bool `yaml:"https"`
StatusCode int `yaml:"statusCode"`
}
type HealthProbeConfig struct {
Probes []HealthProbe `yaml:"probes"`
}
type IPWhiteList struct {
CIDR string `yaml:"cidr"`
}
type RateLimit struct {
RequestPerSecond int `yaml:"requestPerSecond"`
Limiter ratelimit.Limiter
}
type RoutingTypeConfig struct {
HTTP []RuleType `yaml:"http"`
HTTPS []RuleType `yaml:"https"`
}
type RuleEndpointType struct {
PoolName string `yaml:"poolName"`
LoadBalancerMode string `yaml:"loadBalancerMode"`
Https bool `yaml:"https"`
}
type RuleType struct {
Hostname string `yaml:"hostname"`
Features struct {
WAFEnable bool `yaml:"wafEnable"`
RateLimit RateLimit `yaml:"rateLimit"`
IPWhiteList []IPWhiteList `yaml:"ipWhiteList"`
} `yaml:"features"`
Backend RuleEndpointType `yaml:"backend"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.