mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-24 09:48:49 +02:00
api: add /v1/health/ws for health bubbles on dashboard
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package config
|
||||
|
||||
import (
|
||||
"context"
|
||||
"os"
|
||||
"strconv"
|
||||
"strings"
|
||||
@@ -146,6 +147,10 @@ func (cfg *Config) Task() *task.Task {
|
||||
return cfg.task
|
||||
}
|
||||
|
||||
func (cfg *Config) Context() context.Context {
|
||||
return cfg.task.Context()
|
||||
}
|
||||
|
||||
func (cfg *Config) Start() {
|
||||
cfg.StartAutoCert()
|
||||
cfg.StartProxyProviders()
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package types
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/yusing/go-proxy/internal/net/http/accesslog"
|
||||
"github.com/yusing/go-proxy/internal/utils"
|
||||
|
||||
@@ -31,6 +33,7 @@ type (
|
||||
Value() *Config
|
||||
Reload() E.Error
|
||||
Statistics() map[string]any
|
||||
Context() context.Context
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user