Documentation ¶
Index ¶
- Constants
- func DeleteUser(req events.APIGatewayProxyRequest, svc dynamodbiface.DynamoDBAPI, ...) (*events.APIGatewayProxyResponse, error)
- func GetUser(req events.APIGatewayProxyRequest, svc dynamodbiface.DynamoDBAPI, ...) (*events.APIGatewayProxyResponse, error)
- func PutUser(req events.APIGatewayProxyRequest, svc dynamodbiface.DynamoDBAPI, ...) (*events.APIGatewayProxyResponse, error)
- func UnhandledMethod(req events.APIGatewayProxyRequest, logger *zap.Logger) (*events.APIGatewayProxyResponse, error)
- type ErrorBody
- type SuccessBody
Constants ¶
View Source
const ( ErrorMethodNotAllowed = "method not allowed" ErrorUserIdNotProvided = "userId not provided" ErrorUserNotProvided = "user not provided in body" )
Variables ¶
This section is empty.
Functions ¶
func DeleteUser ¶
func DeleteUser(req events.APIGatewayProxyRequest, svc dynamodbiface.DynamoDBAPI, logger *zap.Logger) (*events.APIGatewayProxyResponse, error)
func GetUser ¶
func GetUser(req events.APIGatewayProxyRequest, svc dynamodbiface.DynamoDBAPI, logger *zap.Logger) (*events.APIGatewayProxyResponse, error)
func PutUser ¶
func PutUser(req events.APIGatewayProxyRequest, svc dynamodbiface.DynamoDBAPI, logger *zap.Logger) (*events.APIGatewayProxyResponse, error)
func UnhandledMethod ¶
func UnhandledMethod(req events.APIGatewayProxyRequest, logger *zap.Logger) (*events.APIGatewayProxyResponse, error)
Types ¶
type SuccessBody ¶
Click to show internal directories.
Click to hide internal directories.