httpadapter

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package httpadapter makes it easy to test a Golang AWS Lambda outside of AWS, without needing Docker, by providing HTTP trigger support.

See documentation: https://pkg.go.dev/github.com/Evernorth/aws-lambda-go-adapter

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetLogger

func SetLogger(l *slog.Logger)

func Start

func Start(port int, handler interface{})

Start starts the HTTP server on the specified port and listens for incoming requests. When a request is received, it is converted to the appropriate Lambda event type and passed to the handler function. The response from the handler function is then converted to an HTTP response and returned to the client.

Types

This section is empty.

Jump to

Keyboard shortcuts

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