lambda

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2023 License: GPL-3.0 Imports: 8 Imported by: 1

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 SwitchingListenAndServe

func SwitchingListenAndServe(router *chi.Mux, port string)

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 port argument is ignored if the function is running in a lambda environment.

Types

type ApiConfig added in v1.0.2

type ApiConfig struct {
	Router *chi.Mux
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL