Documentation
¶
Index ¶
- type App
- func (a *App) Bootstrap()
- func (a *App) BootstrapLogger()
- func (a *App) BootstrapServer()
- func (a *App) CreateCat(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (a *App) DeleteCat(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (a *App) GetCat(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (a *App) GetCats(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (a *App) Health(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (a *App) Run()
- func (a *App) UpdateCat(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- type Error
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { Server *http.Server Storage model.Storage Router http.Handler Config conf.Config }
App ...
func (*App) Bootstrap ¶
func (a *App) Bootstrap()
Bootstrap prepares app for run by setting things up based on provided config.
func (*App) BootstrapLogger ¶
func (a *App) BootstrapLogger()
func (*App) BootstrapServer ¶
func (a *App) BootstrapServer()
func (*App) CreateCat ¶
func (a *App) CreateCat(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func (*App) DeleteCat ¶
func (a *App) DeleteCat(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func (*App) GetCat ¶
func (a *App) GetCat(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func (*App) GetCats ¶
func (a *App) GetCats(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func (*App) Health ¶
func (a *App) Health(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func (*App) UpdateCat ¶
func (a *App) UpdateCat(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
Click to show internal directories.
Click to hide internal directories.