Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetIDFromURL ¶
GetIDFromURL returns the ID from the essay URL path.
func Log ¶
func Log(key string, value interface{})
Log provides a basic wrapper to format log output.
func SendResponse ¶
func SendResponse(statusCode int, payload interface{}, message string) (events.APIGatewayProxyResponse, error)
SendResponse is a helper function for sendin g responses to API Gateway.
func ValidateToken ¶
ValidateToken evaluates the JWT received by the API.
Types ¶
type DynamoDB ¶
type DynamoDB struct { QuestionsTableName string `json:"questions_table_name"` SummariesTableName string `json:"summaries_table_name"` }
DynamoDB represents dynamodb config.json file field.
Click to show internal directories.
Click to hide internal directories.