server

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupEngine

func SetupEngine() *gin.Engine

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL