Documentation
¶
Index ¶
- Constants
- func CreateUser(req events.APIGatewayProxyRequest, usersRepository *database.UsersRepository) (*events.APIGatewayProxyResponse, error)
- func DeleteUser(req events.APIGatewayProxyRequest, usersRepository *database.UsersRepository) (*events.APIGatewayProxyResponse, error)
- func GetUser(req events.APIGatewayProxyRequest, usersRepository *database.UsersRepository) (*events.APIGatewayProxyResponse, error)
- func UnhandledMethod() (*events.APIGatewayProxyResponse, error)
- func UpdateUser(req events.APIGatewayProxyRequest, usersRepository *database.UsersRepository) (*events.APIGatewayProxyResponse, error)
Constants ¶
View Source
const ( ErrorInvalidUserData = "invalid user data" ErrorInvalidEmail = "invalid email" )
View Source
const ErrorMethodNotAllowed = "method not allowed"
Variables ¶
This section is empty.
Functions ¶
func CreateUser ¶
func CreateUser(req events.APIGatewayProxyRequest, usersRepository *database.UsersRepository) (*events.APIGatewayProxyResponse, error)
func DeleteUser ¶
func DeleteUser(req events.APIGatewayProxyRequest, usersRepository *database.UsersRepository) (*events.APIGatewayProxyResponse, error)
func GetUser ¶
func GetUser(req events.APIGatewayProxyRequest, usersRepository *database.UsersRepository) (*events.APIGatewayProxyResponse, error)
func UnhandledMethod ¶
func UnhandledMethod() (*events.APIGatewayProxyResponse, error)
func UpdateUser ¶
func UpdateUser(req events.APIGatewayProxyRequest, usersRepository *database.UsersRepository) (*events.APIGatewayProxyResponse, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.