lambda_common

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

README

lambda-common

Simple set of go modules that can be used with aws lambda development

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateResponseError

func CreateResponseError(e error) (events.APIGatewayProxyResponse, error)

Types

type ApiError

type ApiError struct {
	Id         int
	StatusCode int
	Body       ApiErrorBody
	Err        error
}

func CreateApiError

func CreateApiError(id int, status int, message string, err error) ApiError

func (ApiError) Error

func (e ApiError) Error() string

type ApiErrorBody

type ApiErrorBody struct {
	Id         int
	StatusCode int
	Message    string
}

Jump to

Keyboard shortcuts

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