Documentation ¶
Overview ¶
The routing functions that handle different requests
Index ¶
- Constants
- func CreateUser(req events.APIGatewayProxyRequest, tablename string, ...) (*events.APIGatewayProxyResponse, error)
- func DeleteUser(req events.APIGatewayProxyRequest, tablename string, ...) (*events.APIGatewayProxyResponse, error)
- func GetUser(req events.APIGatewayProxyRequest, tablename string, ...) (*events.APIGatewayProxyResponse, error)
- func UnhandledMethod() (*events.APIGatewayProxyResponse, error)
- func UpdateUser(req events.APIGatewayProxyRequest, tablename string, ...) (*events.APIGatewayProxyResponse, error)
- type ErrorBody
Constants ¶
View Source
const ErrorMethodNotAllowed = "Error, method not allowed"
Variables ¶
This section is empty.
Functions ¶
func CreateUser ¶
func CreateUser(req events.APIGatewayProxyRequest, tablename string, dynaClient dynamodbiface.DynamoDBAPI) (*events.APIGatewayProxyResponse, error)
func DeleteUser ¶
func DeleteUser(req events.APIGatewayProxyRequest, tablename string, dynaClient dynamodbiface.DynamoDBAPI) (*events.APIGatewayProxyResponse, error)
func GetUser ¶
func GetUser(req events.APIGatewayProxyRequest, tablename string, dynaClient dynamodbiface.DynamoDBAPI) (*events.APIGatewayProxyResponse, error)
func UnhandledMethod ¶
func UnhandledMethod() (*events.APIGatewayProxyResponse, error)
func UpdateUser ¶
func UpdateUser(req events.APIGatewayProxyRequest, tablename string, dynaClient dynamodbiface.DynamoDBAPI) (*events.APIGatewayProxyResponse, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.