Documentation ¶
Overview ¶
Package handlers is used to separate the handlers from other functions of the API.
Index ¶
- func All(w http.ResponseWriter, _ *http.Request, _ httprouter.Params)
- func Dislike(w http.ResponseWriter, _ *http.Request, p httprouter.Params)
- func Find(w http.ResponseWriter, _ *http.Request, p httprouter.Params)
- func Like(w http.ResponseWriter, _ *http.Request, p httprouter.Params)
- func Random(w http.ResponseWriter, _ *http.Request, _ httprouter.Params)
- func Search(w http.ResponseWriter, _ *http.Request, p httprouter.Params)
- func Senile(w http.ResponseWriter, _ *http.Request, _ httprouter.Params)
- func Top(w http.ResponseWriter, _ *http.Request, _ httprouter.Params)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func All ¶
func All(w http.ResponseWriter, _ *http.Request, _ httprouter.Params)
All handles the '/all' endpoint
func Dislike ¶
func Dislike(w http.ResponseWriter, _ *http.Request, p httprouter.Params)
Dislike handles the '/uuid/:uuid/dislike' endpoint
func Find ¶
func Find(w http.ResponseWriter, _ *http.Request, p httprouter.Params)
Find handles the '/uuid/:uuid/find' endpoint
func Like ¶
func Like(w http.ResponseWriter, _ *http.Request, p httprouter.Params)
Like handles the '/uuid/:uuid/like' endpoint
func Random ¶
func Random(w http.ResponseWriter, _ *http.Request, _ httprouter.Params)
Random handles the '/random' endpoint
func Search ¶
func Search(w http.ResponseWriter, _ *http.Request, p httprouter.Params)
Search handles the '/search' endpoint
func Senile ¶
func Senile(w http.ResponseWriter, _ *http.Request, _ httprouter.Params)
Senile handles the '/senile' endpoint
func Top ¶
func Top(w http.ResponseWriter, _ *http.Request, _ httprouter.Params)
Top handles the '/top' endpoint
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.