lambda

package
v0.0.0-...-6645d9b Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeHTTP

func DecodeHTTP(r *http.Request) (*strsvcv1.Request, error)

func DecodeSQS

func DecodeSQS(m events.SQSMessage) (*strsvcv1.Request, error)

func EncodeErrorAPIGateway

func EncodeErrorAPIGateway(err error) *events.APIGatewayProxyResponse

func EncodeErrorHTTP

func EncodeErrorHTTP(err error, w http.ResponseWriter)

func EncodeHTTP

func EncodeHTTP(m *strsvcv1.Response, w http.ResponseWriter)

func NewEndpoint

func NewEndpoint() box.Endpoint[*strsvcv1.Request, *strsvcv1.Response]

Types

type Service

type Service interface {
	UpperCase(ctx context.Context, s string) (string, error)
	LowerCase(ctx context.Context, s string) (string, error)
}

Directories

Path Synopsis
proto

Jump to

Keyboard shortcuts

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