Documentation
¶
Index ¶
Constants ¶
View Source
const ( BSFunctionAdaptersGroupKey = "boostrap.function.adapters" // MiddlewaresName names the optional []middleware.AnyErrorMiddleware[T] // the function runs after the middlewares given to Module, in order. // builder provides it for @Function(middlewares=[...]). MiddlewaresName = "bootstrap.function.middlewares" )
View Source
const (
Root = bootstrap.Root + ".function"
)
Variables ¶
This section is empty.
Functions ¶
func Module ¶
func Module[T any](m []middleware.AnyErrorMiddleware[T]) fx.Option
Module fx module for bootstrap function. The function runs from the app's OnStart and its context is cancelled on OnStop, so app.Run handles SIGTERM gracefully; when the function ends on its own the app shuts down, with exit code 1 if it failed. The function runs m, then the middlewares named MiddlewaresName when the app provides them.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
contrib/cloud.google.com/pubsub
Package pubsub declares, once, the config the Pub/Sub v1 and v2 function adapter fx modules share: whether the adapter is on and which version it is.
|
Package pubsub declares, once, the config the Pub/Sub v1 and v2 function adapter fx modules share: whether the adapter is on and which version it is. |
Click to show internal directories.
Click to hide internal directories.