core

package
v0.0.0-...-98367f4 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(cfg *config.Config) error

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

Jump to

Keyboard shortcuts

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