Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInLambda ¶ added in v1.0.2
func IsInLambda() bool
Returns true if the function is running in a lambda environment.
func RunHandler ¶ added in v1.0.3
func RunHandler( handler func( context.Context, interface{}) (interface{}, error), event interface{}) error
RunHandler runs the handler function in an AWS Lambda environment if it detects one and defaults to the local environment if not. The event is ignored if the function is running in a lambda environment.
func SwitchingHttpHandler ¶ added in v1.0.3
A function that runs an http handler in a lambda environment or a local server depending on whether the function is running in a lambda environment or not. The addr argument is ignored if the function is running in a lambda environment.
func SwitchingRouter ¶ added in v1.0.3
A function that runs a router in a lambda environment or a local server depending on whether the function is running in a lambda environment or not. The addr argument is ignored if the function is running in a lambda environment.
Types ¶
This section is empty.