Categorygithub.com/gofor-little/xlambda
modulepackage
0.6.16
Repository: https://github.com/gofor-little/xlambda.git
Documentation: pkg.go.dev

# README

A collection of functions, objects and interfaces to help write Lambdas

GitHub tag (latest SemVer pre-release) GitHub go.mod Go version License: MIT GitHub Workflow Status Go Report Card PkgGoDev

Introduction

  • AWS SDK Go v2 support

Testing

Run go test ./... at the root of the project.

# Functions

No description provided by the author
ParseAndValidate unmarshals the query string parameters into validatable and then calls Validate on it.
NewProxyRequest is a helper method to build a events.APIGatewayProxyRequest object.
ProxyResponseHTML builds an API gateway proxy response where the body's content type is text/html.
ProxyResponseJSON builds an API gateway proxy response where the body's content type is application/json.
UnmarshalAndValidate unmarshals the request's body into validatable and then calls Validate on it.
UnmarshalDynamoDBEventAttributeValues unmarshals attributeValues into v.

# Interfaces

Validatable is an interface for an object that can be validated.