mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-23 09:18:51 +02:00
api: enrich provider statistifcs
This commit is contained in:
@@ -180,6 +180,13 @@ func (r *HTTPRoute) ServeHTTP(w http.ResponseWriter, req *http.Request) {
|
||||
r.handler.ServeHTTP(w, req)
|
||||
}
|
||||
|
||||
func (r *HTTPRoute) Health() health.Status {
|
||||
if r.HealthMon != nil {
|
||||
return r.HealthMon.Status()
|
||||
}
|
||||
return health.StatusUnknown
|
||||
}
|
||||
|
||||
func (r *HTTPRoute) addToLoadBalancer(parent task.Parent) {
|
||||
var lb *loadbalancer.LoadBalancer
|
||||
cfg := r.Raw.LoadBalance
|
||||
|
||||
Reference in New Issue
Block a user