Files
Pulse/internal/monitoring/poller.go
rcourtman 0dc0235f77 chore: remove dead code and unused files
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
2025-11-27 00:05:04 +00:00

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
}