Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App is a configured schemaf application. Use New to create one.
func New ¶
New creates a new App with the given project name. The project name determines the database name, host, and migration prefix. Pass the generated ProjectName constant from constants.gen.go.
func (*App) AddApi ¶
func (a *App) AddApi(provider func())
AddApi registers all API endpoints by calling the generated provider function. Wire up in go/main.go: app.AddApi(api.Provider)
func (*App) AddDb ¶
AddDb registers the project's database migrations. Wire up in go/main.go: app.AddDb(db.Provider)
func (*App) AddSubcommand ¶ added in v0.2.0
func (a *App) AddSubcommand(provider cli.SubcommandProvider)
AddSubcommand registers a subcommand provider. Providers follow the same pattern as framework CLI subcommands (see cli/cmd/* for examples). Wire up in go/main.go: app.AddSubcommand(importer.SubcommandProvider)