Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupEngine ¶
SetupEngine creates and configures a new Gin HTTP engine with CORS middleware, custom validators, and all API route definitions for the configuration manager.
The function registers custom validation rules for face_position and face_depth, enables CORS for cross-origin requests, and sets up all v1 API endpoints for resource management, device units, resource groups, nodes, CXL switches, racks, chassis, and devices.
Returns:
- *gin.Engine: A fully configured Gin engine ready to handle HTTP requests
Panics:
- If custom validation registration fails
- If the default validator engine cannot be acquired
Note: This function should be called once during application initialization. The returned engine can be used with engine.Run() to start the HTTP server.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.