feat: HealthCheck
This commit is contained in:
parent
fce32ea5c7
commit
0ab0bdf818
3 changed files with 111 additions and 0 deletions
|
@ -16,6 +16,7 @@ type Backend struct {
|
|||
CircuitBreaker *CircuitBreaker `json:"circuitBreaker,omitempty"`
|
||||
LoadBalancer *LoadBalancer `json:"loadBalancer,omitempty"`
|
||||
MaxConn *MaxConn `json:"maxConn,omitempty"`
|
||||
HealthCheck *HealthCheck `json:"healthCheck,omitempty"`
|
||||
}
|
||||
|
||||
// MaxConn holds maximum connection configuration
|
||||
|
@ -35,6 +36,11 @@ type CircuitBreaker struct {
|
|||
Expression string `json:"expression,omitempty"`
|
||||
}
|
||||
|
||||
// HealthCheck holds healthchk configuration
|
||||
type HealthCheck struct {
|
||||
URL string `json:"url,omitempty"`
|
||||
}
|
||||
|
||||
// Server holds server configuration.
|
||||
type Server struct {
|
||||
URL string `json:"url,omitempty"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue