lambda

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIGateway

type APIGateway struct {
	*Lambda
	// contains filtered or unexported fields
}

func NewAPIGateway

func NewAPIGateway(handler APIGatewayHandler) (apiGateway *APIGateway)

func (*APIGateway) SetHandler

func (apiGateway *APIGateway) SetHandler(handler APIGatewayHandler) *APIGateway

type Lambda

type Lambda struct {
	*server.Server
	// contains filtered or unexported fields
}

func NewLambda

func NewLambda(handler LambdaHandler) *Lambda

func (*Lambda) Invoke

func (lambda *Lambda) Invoke(context context.Context, request []byte) (response []byte, err error)

func (*Lambda) SetHandler

func (lambda *Lambda) SetHandler(handler LambdaHandler) *Lambda

type LambdaHandler

type LambdaHandler func(*Lambda, context.Context, []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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