Documentation
¶
Index ¶
- Constants
- func Execute()
- func NewApp(mode service.Mode) *app.App
- func RootCmd() *cobra.Command
- func SetBootstrap(fn BootstrapFunc)
- func SetJobRegistrar(fn JobRegistrar)
- func SetModelRegistry(fn ModelRegistryFunc)
- func SetRoutes(fn RouteRegistrar)
- func SetScheduleRegistrar(fn ScheduleRegistrar)
- func SetSeeder(fn SeederFunc)
- type BootstrapFunc
- type JobRegistrar
- type ModelRegistryFunc
- type RouteRegistrar
- type ScheduleRegistrar
- type SeederFunc
Constants ¶
const Version = "0.2.0"
Version is the current framework version.
Variables ¶
This section is empty.
Functions ¶
func NewApp ¶
NewApp creates and boots a RapidGo application configured for the given mode. Used by commands that need the application lifecycle (serve, migrate, etc.).
func SetBootstrap ¶
func SetBootstrap(fn BootstrapFunc)
SetBootstrap sets the function that registers service providers during app initialization.
func SetJobRegistrar ¶
func SetJobRegistrar(fn JobRegistrar)
SetJobRegistrar sets the function that registers background job handlers.
func SetModelRegistry ¶
func SetModelRegistry(fn ModelRegistryFunc)
SetModelRegistry sets the function that returns all model structs for AutoMigrate.
func SetRoutes ¶
func SetRoutes(fn RouteRegistrar)
SetRoutes sets the function that registers routes on the router.
func SetScheduleRegistrar ¶
func SetScheduleRegistrar(fn ScheduleRegistrar)
SetScheduleRegistrar sets the function that registers scheduled tasks.
func SetSeeder ¶
func SetSeeder(fn SeederFunc)
SetSeeder sets the function that runs database seeders.
Types ¶
type BootstrapFunc ¶
BootstrapFunc registers service providers on the application for the given mode.
type JobRegistrar ¶
type JobRegistrar func()
JobRegistrar registers application job handlers with the queue dispatcher.
type ModelRegistryFunc ¶
type ModelRegistryFunc func() []interface{}
ModelRegistryFunc returns all model structs for AutoMigrate.
type RouteRegistrar ¶
RouteRegistrar registers routes on the router for a given mode.
type ScheduleRegistrar ¶
ScheduleRegistrar registers scheduled tasks on the scheduler.