Categorygithub.com/goslogan/lambdahelpers
modulepackage
0.1.3
Repository: https://github.com/goslogan/lambdahelpers.git
Documentation: pkg.go.dev

# README

LambdaHelpers

A slightly less than random set of functions used to simplify using AWS' golang lambda libraries

# Functions

Accept parses the "accept" header and reqturns an array with the accepted content types.
Accepts returns the best content type given a list of available types and a list of accepted types.
CreatedResponse returns a basic "created" response.
ErrorResponse returns a response object with a user defined error.
ForbiddenResponse returns a response object set to Forbidden.
InternalErrorResponse returns a response object for an internal error.
JSONResponse returns a response object with the content type set to "application/json" and the string value as the body.
NewResponse creates a new responses object with the pointer type fields initialised.
NotFoundResponse returns a response object set to NotFound.
ResponseWithType returns a response object with the body and content-type set with the required status.