handler

package
v0.0.0-...-9e109ee Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RespondJson

func RespondJson(ctx context.Context, w http.ResponseWriter, body any, status int)

Types

type AddTask

type AddTask struct {
	Store     *store.TaskStore
	Validator *validator.Validate
}

func (*AddTask) ServerHttp

func (at *AddTask) ServerHttp(w http.ResponseWriter, r *http.Request)

type ErrResponse

type ErrResponse struct {
	Message string   `json:"message"`
	Details []string `json:"details,omitempty"`
}

type ListTask

type ListTask struct {
	Store *store.TaskStore
}

func (*ListTask) ServeHTTP

func (lt *ListTask) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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