Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHttpServer ¶
func NewHttpServer() httpserver.Runner
NewHttpServer returns an httpserver.Runner for AWS Lambda deployments.
Example ¶
ExampleNewHttpServer shows how to create a Lambda runner. Import this sub-package only for Lambda deployments; it pulls in the AWS SDK. For plain HTTP/HTTPS servers use the parent httpserver package instead.
package main
import (
"fmt"
lambdarunner "github.com/phcp-tech/common-library-golang/httpserver/lambda"
)
func main() {
runner := lambdarunner.NewHttpServer()
fmt.Println(runner != nil)
}
Output: true
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.