Documentation ¶
Index ¶
- type App
- func (app *App) ConnectDB(name string)
- func (app App) CreateEnergyDrink(wr http.ResponseWriter, req *http.Request)
- func (app App) DeleteEnergyDrink(wr http.ResponseWriter, req *http.Request)
- func (app App) GetAllEnergyDrinks(wr http.ResponseWriter, req *http.Request)
- func (app App) GetEnergyDrink(wr http.ResponseWriter, req *http.Request)
- func (app App) HandleDrinksRequests()
- func (app *App) HandleRequests()
- func (app App) SendEmptyResponse(wr http.ResponseWriter)
- func (app App) ServeJSON(wr http.ResponseWriter, json []byte)
- func (app App) UpdateEnergyDrink(wr http.ResponseWriter, req *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
func (App) CreateEnergyDrink ¶
func (app App) CreateEnergyDrink(wr http.ResponseWriter, req *http.Request)
func (App) DeleteEnergyDrink ¶
func (app App) DeleteEnergyDrink(wr http.ResponseWriter, req *http.Request)
func (App) GetAllEnergyDrinks ¶
func (app App) GetAllEnergyDrinks(wr http.ResponseWriter, req *http.Request)
func (App) GetEnergyDrink ¶
func (app App) GetEnergyDrink(wr http.ResponseWriter, req *http.Request)
func (App) HandleDrinksRequests ¶
func (app App) HandleDrinksRequests()
func (*App) HandleRequests ¶
func (app *App) HandleRequests()
func (App) SendEmptyResponse ¶
func (app App) SendEmptyResponse(wr http.ResponseWriter)
func (App) UpdateEnergyDrink ¶
func (app App) UpdateEnergyDrink(wr http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.