Documentation ¶
Index ¶
- func BuildCustomAuthorizerResponse(effect string, resource string, context map[string]interface{}) events.APIGatewayCustomAuthorizerResponse
- func MapErrorToAPIGatewayProxyResponse(customError common_errors.GenericApplicationError) events.APIGatewayProxyResponse
- func MapResponseToAPIGatewayProxyResponse(httpStatus int, body interface{}) events.APIGatewayProxyResponse
- func MapResponseToAPIGatewayProxyResponseWithHeaders(httpStatus int, body interface{}, headers map[string]string) events.APIGatewayProxyResponse
- func MergeDynamoDBResponsesIntoAttributeValueMap(tableNames []string, items []types.ItemResponse) (map[string]types.AttributeValue, common_errors.GenericApplicationError)
- type JwtHelper
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 MapErrorToAPIGatewayProxyResponse ¶
func MapErrorToAPIGatewayProxyResponse(customError common_errors.GenericApplicationError) events.APIGatewayProxyResponse
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 ¶
Click to show internal directories.
Click to hide internal directories.