mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-02-18 00:17:39 +01:00
Remove 604 lines of unreachable code identified by deadcode analysis: - internal/config/credentials.go: unused credential resolver - internal/config/registration.go: unused registration config - internal/monitoring/poller.go: unused channel-based polling (keep types) - internal/api/middleware.go: unused TimeoutHandler, JSONHandler, NewAPIError, ValidationError - internal/api/security.go: unused IsLockedOut, SecurityHeaders - internal/api/auth.go: unused min helper - internal/config/config.go: unused SaveConfig - internal/config/client_helpers.go: unused CreatePBSConfigFromFields - internal/logging/logging.go: unused NewRequestID
28 lines
612 B
Go
28 lines
612 B
Go
package monitoring
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/rcourtman/pulse-go-rewrite/pkg/pbs"
|
|
"github.com/rcourtman/pulse-go-rewrite/pkg/pmg"
|
|
)
|
|
|
|
// PollResult represents the result of a polling operation
|
|
type PollResult struct {
|
|
InstanceName string
|
|
InstanceType string // "pve", "pbs", or "pmg"
|
|
Success bool
|
|
Error error
|
|
StartTime time.Time
|
|
EndTime time.Time
|
|
}
|
|
|
|
// PollTask represents a polling task to be executed
|
|
type PollTask struct {
|
|
InstanceName string
|
|
InstanceType string // "pve", "pbs", or "pmg"
|
|
PVEClient PVEClientInterface
|
|
PBSClient *pbs.Client
|
|
PMGClient *pmg.Client
|
|
}
|