Documentation ¶
Index ¶
- func ErrorResponse(rw http.ResponseWriter, status, message string, statusCode int)
- func HandleCreateTaskEndpoint(tasksService *tasks.Service, usersService *users.Service) http.HandlerFunc
- func HandleCreateUserEndpoint(usersService *users.Service) http.HandlerFunc
- func HandleDeleteTaskEndpoint(tasksService *tasks.Service) http.HandlerFunc
- func HandleDeleteUserEndpoint(usersService *users.Service) http.HandlerFunc
- func HandleGetTaskEndpoint(tasksService *tasks.Service) http.HandlerFunc
- func HandleGetTasksEndpoint(tasksService *tasks.Service) http.HandlerFunc
- func HandleGetUserEndpoint(usersService *users.Service) http.HandlerFunc
- func HandleGetUsersEndpoint(usersService *users.Service) http.HandlerFunc
- func HandleUpdateTaskEndpoint(tasksService *tasks.Service) http.HandlerFunc
- func HandleUserLoginEndpoint(usersService *users.Service) http.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorResponse ¶
func ErrorResponse(rw http.ResponseWriter, status, message string, statusCode int)
func HandleCreateTaskEndpoint ¶
func HandleCreateTaskEndpoint(tasksService *tasks.Service, usersService *users.Service) http.HandlerFunc
HandleCreateTaskEndpoint is the http endpoint handler for creating a new task.
func HandleCreateUserEndpoint ¶
func HandleCreateUserEndpoint(usersService *users.Service) http.HandlerFunc
func HandleDeleteTaskEndpoint ¶
func HandleDeleteTaskEndpoint(tasksService *tasks.Service) http.HandlerFunc
HandleDeleteTaskEndpoint is the http endpoint handler for deleting task.
func HandleDeleteUserEndpoint ¶
func HandleDeleteUserEndpoint(usersService *users.Service) http.HandlerFunc
HandleDeleteUserEndpoint is the http endpoint handler for deleting user.
func HandleGetTaskEndpoint ¶
func HandleGetTaskEndpoint(tasksService *tasks.Service) http.HandlerFunc
HandleGetTaskEndpoint is the http endpoint handler to get task details.
func HandleGetTasksEndpoint ¶
func HandleGetTasksEndpoint(tasksService *tasks.Service) http.HandlerFunc
HandleGetTasksEndpoint is the http endpoint handler for retrieving user tasks.
func HandleGetUserEndpoint ¶
func HandleGetUserEndpoint(usersService *users.Service) http.HandlerFunc
HandleGetUserEndpoint is the http endpoint handler to get user details.
func HandleGetUsersEndpoint ¶
func HandleGetUsersEndpoint(usersService *users.Service) http.HandlerFunc
HandleGetUsersEndpoint is the http endpoint handler for retrieving users.
func HandleUpdateTaskEndpoint ¶
func HandleUpdateTaskEndpoint(tasksService *tasks.Service) http.HandlerFunc
HandleUpdateTaskEndpoint is the http endpoint handler for task update.
func HandleUserLoginEndpoint ¶
func HandleUserLoginEndpoint(usersService *users.Service) http.HandlerFunc
HandleUserLoginEndpoint is the http endpoint handler for user login.
Types ¶
This section is empty.