Documentation
¶
Overview ¶
Package stdfxlambda provides a typed context to standardize handling in our Lambda functions.
Package stdfxlambda allows a lambda to be implemented via a Uber's fx dependency.
Index ¶
- func Handle[I, O any](ctx context.Context, logs *zap.Logger, inb []byte, ...) (outb []byte, err error)
- func Run(opts ...fx.Option)
- func RunApp(app *fx.App, hdlr lambda.Handler, opts ...lambda.Option) (exitCode int)
- func RunNewApp(opts ...fx.Option) (exitCode int)
- func WithLogger(next lambda.Handler, logs *zap.Logger) lambda.Handler
- type Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handle ¶
func Handle[I, O any]( ctx context.Context, logs *zap.Logger, inb []byte, hfn func(Context, I) (O, error), ) (outb []byte, err error)
Handle generalizes the handling of lambda inputs.
func Run ¶ added in v0.0.17
Run will create a new fx app and run it, passing any exit code to os.Exit.
Types ¶
Click to show internal directories.
Click to hide internal directories.