common_helpers

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapResponseToAPIGatewayProxyResponse

func MapResponseToAPIGatewayProxyResponse(httpStatus int, body interface{}) events.APIGatewayProxyResponse

func MapResponseToAPIGatewayProxyResponseWithHeaders

func MapResponseToAPIGatewayProxyResponseWithHeaders(httpStatus int, body interface{}, headers map[string]string) events.APIGatewayProxyResponse

func MergeResponsesIntoAttributeValueMap

func MergeResponsesIntoAttributeValueMap(tableNames []string, items []types.ItemResponse) map[string]types.AttributeValue

Types

type JwtHelper added in v1.2.1

type JwtHelper interface {
	GenerateJwtToken(claims jwt.Claims) (string, common_errors.GenericApplicationError)
	ValidateJwtToken(jwtToken string) (jwt.Claims, common_errors.GenericApplicationError)
}

func NewJwtHelper added in v1.2.1

func NewJwtHelper(privateKey string) JwtHelper

Jump to

Keyboard shortcuts

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