Documentation ¶
Overview ¶
This code is part of handlers package
This code is part of handlers package
Index ¶
- Variables
- func CreatePlayer(req events.APIGatewayProxyRequest, tableName string, ...) (*events.APIGatewayProxyResponse, error)
- func DeletePlayer(req events.APIGatewayProxyRequest, tableName string, ...) (*events.APIGatewayProxyResponse, error)
- func GetPlayer(req events.APIGatewayProxyRequest, tableName string, ...) (*events.APIGatewayProxyResponse, error)
- func Unhandled() (*events.APIGatewayProxyResponse, error)
- func UpdatePlayer(req events.APIGatewayProxyRequest, tableName string, ...) (*events.APIGatewayProxyResponse, error)
- type ErrorBody
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorMethodNotAllowed = "method not allowed"
create a error message variable
Functions ¶
func CreatePlayer ¶
func CreatePlayer(req events.APIGatewayProxyRequest, tableName string, client dynamodbiface.DynamoDBAPI) ( *events.APIGatewayProxyResponse, error, )
this function will be called when the method type is "POST"
func DeletePlayer ¶
func DeletePlayer(req events.APIGatewayProxyRequest, tableName string, client dynamodbiface.DynamoDBAPI) ( *events.APIGatewayProxyResponse, error, )
this function will be called when the method type is "DELETE"
func GetPlayer ¶
func GetPlayer(req events.APIGatewayProxyRequest, tableName string, client dynamodbiface.DynamoDBAPI) ( *events.APIGatewayProxyResponse, error, )
this function will be called when the method type is "GET"
func Unhandled ¶
func Unhandled() (*events.APIGatewayProxyResponse, error)
Function that return a Method not allowed error message for those unhandled method types.
func UpdatePlayer ¶
func UpdatePlayer(req events.APIGatewayProxyRequest, tableName string, client dynamodbiface.DynamoDBAPI) ( *events.APIGatewayProxyResponse, error, )
this function will be called when the method type is "PUT"
Types ¶
Click to show internal directories.
Click to hide internal directories.