Documentation
¶
Overview ¶
Package server provides the unified server functionality.
Package server provides the unified server functionality.
cmd/server/signals.go Package server provides signal handling utilities.
cmd/server/worker.go Package server provides monitoring worker functionality. Wave 2: Contains extracted worker code from apps/worker/main.go.
Index ¶
- func HealthCheckHandler() gin.HandlerFunc
- func RegisterAPIRoutes(r *gin.Engine, hub *handlers.Hub, cfg *configs.Config)
- func RunServer() error
- func SeedAdmin(db *mongo.Database, cfg *configs.Config)
- func SetupShutdownSignalHandler(cancel context.CancelFunc, timeout time.Duration)
- func StartWorker(ctx context.Context, db *mongo.Database, rdb *redis.Client)
- func StaticFileServer() gin.HandlerFunc
- func StopWorker() error
- type HealthResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HealthCheckHandler ¶
func HealthCheckHandler() gin.HandlerFunc
func RegisterAPIRoutes ¶
RegisterAPIRoutes registers all API routes on the given Gin engine
func RunServer ¶
func RunServer() error
RunServer starts the unified server with API, Worker, and Web functionality
func SetupShutdownSignalHandler ¶
func SetupShutdownSignalHandler(cancel context.CancelFunc, timeout time.Duration)
SetupShutdownSignalHandler sets up a signal handler for graceful shutdown
func StartWorker ¶
StartWorker starts the monitoring worker
func StaticFileServer ¶
func StaticFileServer() gin.HandlerFunc
Types ¶
type HealthResponse ¶
Click to show internal directories.
Click to hide internal directories.