routes

package
v0.0.0-...-fa212c4 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrServerError = errors.New("could not complete request")
)

Functions

This section is empty.

Types

type Application

type Application struct {
	Models *data.Models
	// contains filtered or unexported fields
}

func New

func New(config *config.Config, db *sql.DB, logger *log.Logger) *Application

func (*Application) Home

func (app *Application) Home(w http.ResponseWriter, r *http.Request)

func (*Application) RenderTodoComponent

func (app *Application) RenderTodoComponent(w http.ResponseWriter, err error)

func (*Application) Routes

func (app *Application) Routes() http.Handler

func (*Application) TodoHandler

func (app *Application) TodoHandler(w http.ResponseWriter, r *http.Request)

func (*Application) TodosHandler

func (app *Application) TodosHandler(w http.ResponseWriter, r *http.Request)

func (*Application) UpdateQuery

func (app *Application) UpdateQuery(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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