common_helpers

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildCustomAuthorizerResponse

func BuildCustomAuthorizerResponse(effect string, resource string, context map[string]interface{}) events.APIGatewayCustomAuthorizerResponse

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 MergeDynamoDBResponsesIntoAttributeValueMap

func MergeDynamoDBResponsesIntoAttributeValueMap(tableNames []string, items []types.ItemResponse) (map[string]types.AttributeValue, common_errors.GenericApplicationError)

Types

type JwtHelper

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

func NewJwtHelper

func NewJwtHelper(privateKey string) JwtHelper

Jump to

Keyboard shortcuts

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