Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Extension ¶
type Extension[OPTS any, INJ any] interface { // Instance create a instance of extension, one [winter.App] can have multiple instances Instance(altKeys ...string) Instance[OPTS, INJ] // Installer create [Installer] Installer(optFns ...func(opt *OPTS)) Installer // Default setup options by default Default(fn func(opt *OPTS)) Extension[OPTS, INJ] // Startup set startup function Startup(fn func(ctx context.Context, opt *OPTS) (inj INJ, err error)) Extension[OPTS, INJ] // Check set check func Check(fn func(ctx context.Context, inj INJ) (err error)) Extension[OPTS, INJ] // Middleware set middleware generation function Middleware(fn func(ins Instance[OPTS, INJ], opt *OPTS, inj *INJ) winter.MiddlewareFunc) Extension[OPTS, INJ] // Shutdown set the shutdown func Shutdown(fn func(ctx context.Context, inj INJ) (err error)) Extension[OPTS, INJ] }
Extension a abstraction of extension for wboot application
Click to show internal directories.
Click to hide internal directories.