Documentation ¶
Index ¶
- func GetFiles(path string) http.HandlerFunc
- func GetProtocol(r *http.Request) string
- func HeaderMiddleware(next http.Handler) http.Handler
- func HealthCheck(w http.ResponseWriter, r *http.Request)
- func Info(w http.ResponseWriter, r *http.Request)
- func Login(w http.ResponseWriter, r *http.Request)
- func UploadFile(uploadPath string, maxUploadSize int64) http.HandlerFunc
- type Cards
- func (c *Cards) AddCard(w http.ResponseWriter, r *http.Request)
- func (c *Cards) DeleteCard(w http.ResponseWriter, r *http.Request)
- func (c *Cards) GetCard(w http.ResponseWriter, r *http.Request)
- func (c *Cards) GetCards(w http.ResponseWriter, r *http.Request)
- func (c *Cards) SecuredContent(w http.ResponseWriter, r *http.Request)
- func (c *Cards) UpdateCard(w http.ResponseWriter, r *http.Request)
- type Menus
- func (m *Menus) AddMenu(w http.ResponseWriter, r *http.Request)
- func (m *Menus) DeleteMenu(w http.ResponseWriter, r *http.Request)
- func (m *Menus) GetCardOfMenu(w http.ResponseWriter, r *http.Request)
- func (m *Menus) GetMenu(w http.ResponseWriter, r *http.Request)
- func (m *Menus) GetMenus(w http.ResponseWriter, r *http.Request)
- func (m *Menus) UpdateMenu(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFiles ¶
func GetFiles(path string) http.HandlerFunc
func GetProtocol ¶
GetProtocol returns type of HTTP protocol
func HeaderMiddleware ¶
HeaderMiddleware makes every handler use headers CORS and JSON
func HealthCheck ¶
func HealthCheck(w http.ResponseWriter, r *http.Request)
func UploadFile ¶
func UploadFile(uploadPath string, maxUploadSize int64) http.HandlerFunc
Types ¶
type Cards ¶
Cards defines all of the handlers related to cards. It holds the apllication state needed by the handler method.
func (*Cards) DeleteCard ¶
func (c *Cards) DeleteCard(w http.ResponseWriter, r *http.Request)
func (*Cards) GetCard ¶
func (c *Cards) GetCard(w http.ResponseWriter, r *http.Request)
GetCard gets all cards from the service layer encodes them for the client response
func (*Cards) SecuredContent ¶
func (c *Cards) SecuredContent(w http.ResponseWriter, r *http.Request)
func (*Cards) UpdateCard ¶
func (c *Cards) UpdateCard(w http.ResponseWriter, r *http.Request)
type Menus ¶
Menus defines all of the handlers related to menus. It holds the apllication state needed by the handler method.
func (*Menus) DeleteMenu ¶
func (m *Menus) DeleteMenu(w http.ResponseWriter, r *http.Request)
func (*Menus) GetCardOfMenu ¶
func (m *Menus) GetCardOfMenu(w http.ResponseWriter, r *http.Request)
func (*Menus) GetMenu ¶
func (m *Menus) GetMenu(w http.ResponseWriter, r *http.Request)
GetMenu gets all menus from the service layer encodes them for the client response
func (*Menus) UpdateMenu ¶
func (m *Menus) UpdateMenu(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.