app

package
v0.0.0-...-fca3bc1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2021 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	IP     string
	DB     *gorm.DB
	Router *mux.Router
}

func (*App) ConnectDB

func (app *App) ConnectDB(name string)

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) ServeJSON

func (app App) ServeJSON(wr http.ResponseWriter, json []byte)

func (App) UpdateEnergyDrink

func (app App) UpdateEnergyDrink(wr http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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