Documentation
¶
Overview ¶
Package handler provides the HTTP entry points and routing for the application.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TaskHandler ¶
type TaskHandler struct {
// contains filtered or unexported fields
}
TaskHandler implements the http.Handler interface to process task-related HTTP requests. It uses a repository.TaskRepository to perform data operations.
func NewTaskHandler ¶
func NewTaskHandler(repo repository.TaskRepository) *TaskHandler
NewTaskHandler initializes and returns a new pointer to TaskHandler. It expects a valid repository.TaskRepository implementation.
func (*TaskHandler) ServeHTTP ¶
func (h *TaskHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP manual routing for tasks
Click to show internal directories.
Click to hide internal directories.