api: add /v1/health/ws for health bubbles on dashboard

This commit is contained in:
yusing
2025-01-19 04:34:20 +08:00
parent fe7740f1b0
commit 1adba05065
13 changed files with 89 additions and 23 deletions

View File

@@ -8,14 +8,16 @@ import (
)
type (
HTTPRoute interface {
Route interface {
Entry
HealthMonitor() health.HealthMonitor
}
HTTPRoute interface {
Route
http.Handler
Health() health.Status
}
StreamRoute interface {
Entry
Route
net.Stream
Health() health.Status
}
)