handler

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2026 License: MIT Imports: 8 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL