Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupAPI ¶
func SetupAPI(router *gin.Engine, apiGroup *gin.RouterGroup, cfg *config.Config, svc *Services) huma.API
SetupAPI creates and configures the Huma API alongside the existing Gin router.
func SetupAPIForSpec ¶
SetupAPIForSpec creates a Huma API instance for OpenAPI spec generation only. No services are required - this is purely for schema generation.
Types ¶
type Services ¶
type Services struct {
User *services.UserService
Auth *services.AuthService
Oidc *services.OidcService
ApiKey *services.ApiKeyService
AppImages *services.ApplicationImagesService
Font *services.FontService
Project *services.ProjectService
Event *services.EventService
Version *services.VersionService
Environment *services.EnvironmentService
Settings *services.SettingsService
JobSchedule *services.JobService
SettingsSearch *services.SettingsSearchService
ContainerRegistry *services.ContainerRegistryService
Template *services.TemplateService
Docker *services.DockerClientService
Image *services.ImageService
ImageUpdate *services.ImageUpdateService
Volume *services.VolumeService
Container *services.ContainerService
Network *services.NetworkService
Notification *services.NotificationService
Apprise *services.AppriseService //nolint:staticcheck // Apprise still functional, deprecated in favor of Shoutrrr
Updater *services.UpdaterService
CustomizeSearch *services.CustomizeSearchService
System *services.SystemService
SystemUpgrade *services.SystemUpgradeService
GitRepository *services.GitRepositoryService
GitOpsSync *services.GitOpsSyncService
Vulnerability *services.VulnerabilityService
Config *config.Config
}
Services holds all service dependencies needed by Huma handlers.
Click to show internal directories.
Click to hide internal directories.