Documentation ¶
Index ¶
- func ContextWithApp(ctx context.Context, app *App) context.Context
- func FS() fs.FS
- func OnStart(name string, fn HookFunc)
- func WaitExitSignal() os.Signal
- type App
- func AppFromContext(ctx context.Context) *App
- func New(ctx context.Context, cfg *AppConfig) *App
- func Start(ctx context.Context, service, envName string) (context.Context, *App, error)
- func StartCLI(c *cli.Context) (context.Context, *App, error)
- func StartConfig(ctx context.Context, cfg *AppConfig) (context.Context, *App, error)
- func (app *App) APIRouter() *bunrouter.Group
- func (app *App) Config() *AppConfig
- func (app *App) Context() context.Context
- func (app *App) DB() *bun.DB
- func (app *App) IsDebug() bool
- func (app *App) OnAfterStop(name string, fn HookFunc)
- func (app *App) OnStop(name string, fn HookFunc)
- func (app *App) Router() *bunrouter.Router
- func (app *App) Running() bool
- func (app *App) Stop()
- func (app *App) Stopping() bool
- type AppConfig
- type HookFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WaitExitSignal ¶
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func AppFromContext ¶
func StartConfig ¶
func (*App) OnAfterStop ¶
Click to show internal directories.
Click to hide internal directories.