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:
@@ -116,6 +116,14 @@ func (r *StreamRoute) Finish(reason any) {
|
||||
r.task.Finish(reason)
|
||||
}
|
||||
|
||||
|
||||
func (r *StreamRoute) Health() health.Status {
|
||||
if r.HealthMon != nil {
|
||||
return r.HealthMon.Status()
|
||||
}
|
||||
return health.StatusUnknown
|
||||
}
|
||||
|
||||
func (r *StreamRoute) acceptConnections() {
|
||||
defer r.task.Finish("listener closed")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user