api: enrich provider statistifcs

This commit is contained in:
yusing
2025-01-15 09:06:54 +08:00
parent 2af2346e35
commit 04e118c081
7 changed files with 97 additions and 32 deletions

View File

@@ -4,15 +4,18 @@ import (
"net/http"
net "github.com/yusing/go-proxy/internal/net/types"
"github.com/yusing/go-proxy/internal/watcher/health"
)
type (
HTTPRoute interface {
Entry
http.Handler
Health() health.Status
}
StreamRoute interface {
Entry
net.Stream
Health() health.Status
}
)