mirror of
https://github.com/henrygd/beszel.git
synced 2026-04-21 04:01:50 +02:00
updates
This commit is contained in:
@@ -53,7 +53,6 @@ func NewHandlerRegistry() *HandlerRegistry {
|
||||
registry.Register(common.GetSmartData, &GetSmartDataHandler{})
|
||||
registry.Register(common.GetSystemdInfo, &GetSystemdInfoHandler{})
|
||||
registry.Register(common.SyncNetworkProbes, &SyncNetworkProbesHandler{})
|
||||
registry.Register(common.GetNetworkProbeResults, &GetNetworkProbeResultsHandler{})
|
||||
|
||||
return registry
|
||||
}
|
||||
@@ -222,14 +221,3 @@ func (h *SyncNetworkProbesHandler) Handle(hctx *HandlerContext) error {
|
||||
slog.Info("network probes synced", "count", len(configs))
|
||||
return hctx.SendResponse("ok", hctx.RequestID)
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// GetNetworkProbeResultsHandler handles probe results request from hub
|
||||
type GetNetworkProbeResultsHandler struct{}
|
||||
|
||||
func (h *GetNetworkProbeResultsHandler) Handle(hctx *HandlerContext) error {
|
||||
results := hctx.Agent.probeManager.GetResults()
|
||||
return hctx.SendResponse(results, hctx.RequestID)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user