Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterModule ¶
func RegisterModule(pkg *Module)
RegisterModule adds a new package to be executed after DB initialization Packages will be executed in the order they were registered
Types ¶
type Module ¶
type Module struct {
Name string
Migrations []interface{} // called after PreInit
InitAPIRoutes func(api huma.API) // called after Migratins, registers API routes
InitMain func() error // main init worker, caled in the end
}
Module represents a package of callbacks and attributes required to initialize the module The attributes below are listed in the order of initialization flow
Click to show internal directories.
Click to hide internal directories.