proxy

package
v0.1.3-0...-2ebbb99 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildEvent

Build and return an API Gateway v2 request event from a given HTTP request.

func Handle

func Handle(w http.ResponseWriter, r *http.Request)

Emit a Lambda event and return the payload as an HTTP response.

func Invoke

func Invoke(ctx context.Context, api LambdaAPI, payload []byte) (*lambda.InvokeOutput, error)

Invoke a Lambda function and return the payload.

Types

type LambdaAPI

type LambdaAPI interface {
	Invoke(context.Context, *lambda.InvokeInput, ...func(*lambda.Options)) (*lambda.InvokeOutput, error)
}

Jump to

Keyboard shortcuts

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