mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-19 17:55:19 +00:00
28aaecd74d
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
Internal API Package
This directory contains the API server implementation for Pulse.
Important Note About frontend-modern/
The frontend-modern/ subdirectory that appears here is:
- AUTO-GENERATED during builds
- NOT the source code - just a build artifact
- IN .gitignore - never committed
- REQUIRED BY GO - The embed directive needs it here
Frontend Development Location
👉 Edit frontend files at: /opt/pulse/frontend-modern/src/
Why This Structure?
Go's //go:embed directive has limitations:
- Cannot use
../paths to access parent directories - Cannot follow symbolic links
- Must embed files within the Go module
This is a known Go limitation and our structure works around it.