types

package
v0.0.0-...-22c913a Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	Name      string `yaml:"name"`
	Hostname  string `yaml:"hostname"`
	IsHealthy bool
}

type BackendPool

type BackendPool struct {
	Name               string    `yaml:"name"`
	HealthProbeName    string    `yaml:"healthProbeName"`
	Servers            []Backend `yaml:"servers"`
	ServerHealthyIndex []int
}

type BackendPoolConfig

type BackendPoolConfig struct {
	Pools []BackendPool `yaml:"pools"`
}

type ConfigType

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

type HealthProbe struct {
	Name       string `yaml:"name"`
	Path       string `yaml:"path"`
	Https      bool   `yaml:"https"`
	StatusCode int    `yaml:"statusCode"`
}

type HealthProbeConfig

type HealthProbeConfig struct {
	Probes []HealthProbe `yaml:"probes"`
}

type IPWhiteList

type IPWhiteList struct {
	CIDR string `yaml:"cidr"`
}

type RateLimit

type RateLimit struct {
	RequestPerSecond int `yaml:"requestPerSecond"`
	Limiter          ratelimit.Limiter
}

type RoutingTypeConfig

type RoutingTypeConfig struct {
	HTTP  []RuleType `yaml:"http"`
	HTTPS []RuleType `yaml:"https"`
}

type RuleEndpointType

type RuleEndpointType struct {
	PoolName         string `yaml:"poolName"`
	LoadBalancerMode string `yaml:"loadBalancerMode"`
	Https            bool   `yaml:"https"`
}

type RuleType

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"`
}

Jump to

Keyboard shortcuts

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