Documentation
¶
Index ¶
Constants ¶
View Source
const (
Root = bootstrap.Root + ".function"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Function ¶
type Function[T any] struct { // contains filtered or unexported fields }
func New ¶
func New[T any](m ...middleware.AnyErrorMiddleware[T]) (*Function[T], error)
func (*Function[T]) Run ¶
Run runs fn through the adapter command the first argument names. With no command named, it runs the one boost.bootstrap.function.default names, or the only adapter given: an app wires the one adapter config chose, so it runs without arguments. It fails with NotValid when there is no adapter, or more than one and none is chosen, instead of printing the usage.
type Handler ¶
func Wrapper ¶
func Wrapper[T any](wrp *middleware.AnyErrorWrapper[T], fn Handler[T]) Handler[T]
Click to show internal directories.
Click to hide internal directories.