Documentation ¶
Index ¶
- Variables
- type Application
- func (app *Application) Home(w http.ResponseWriter, r *http.Request)
- func (app *Application) RenderTodoComponent(w http.ResponseWriter, err error)
- func (app *Application) Routes() http.Handler
- func (app *Application) TodoHandler(w http.ResponseWriter, r *http.Request)
- func (app *Application) TodosHandler(w http.ResponseWriter, r *http.Request)
- func (app *Application) UpdateQuery(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrServerError = errors.New("could not complete request")
)
Functions ¶
This section is empty.
Types ¶
type 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)
Click to show internal directories.
Click to hide internal directories.