Documentation ¶
Index ¶
- func AnswerQuestion(w http.ResponseWriter, r *http.Request)
- func ArbitraryJSON(w http.ResponseWriter, value interface{}, statusCode int)
- func CreateCategory(w http.ResponseWriter, r *http.Request)
- func CreateQuestion(w http.ResponseWriter, r *http.Request)
- func DeleteCategory(w http.ResponseWriter, r *http.Request)
- func DeleteQuestion(w http.ResponseWriter, r *http.Request)
- func DeleteUser(w http.ResponseWriter, r *http.Request)
- func EditCategory(w http.ResponseWriter, r *http.Request)
- func EditQuestion(w http.ResponseWriter, r *http.Request)
- func GetRandomQuestion(w http.ResponseWriter, r *http.Request)
- func GetSingleQuestion(w http.ResponseWriter, r *http.Request)
- func LoginUser(w http.ResponseWriter, r *http.Request)
- func RegisterUser(w http.ResponseWriter, r *http.Request)
- func ShowAllCategories(w http.ResponseWriter, r *http.Request)
- func ShowAllQuestions(w http.ResponseWriter, r *http.Request)
- func ShowAllUser(w http.ResponseWriter, r *http.Request)
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnswerQuestion ¶
func AnswerQuestion(w http.ResponseWriter, r *http.Request)
func ArbitraryJSON ¶
func ArbitraryJSON(w http.ResponseWriter, value interface{}, statusCode int)
ArbitraryJSON takes an interface value and a statuscode and writes it to a given http.ResponseWriter
func CreateCategory ¶
func CreateCategory(w http.ResponseWriter, r *http.Request)
func CreateQuestion ¶
func CreateQuestion(w http.ResponseWriter, r *http.Request)
func DeleteCategory ¶
func DeleteCategory(w http.ResponseWriter, r *http.Request)
func DeleteQuestion ¶
func DeleteQuestion(w http.ResponseWriter, r *http.Request)
func DeleteUser ¶
func DeleteUser(w http.ResponseWriter, r *http.Request)
func EditCategory ¶
func EditCategory(w http.ResponseWriter, r *http.Request)
func EditQuestion ¶
func EditQuestion(w http.ResponseWriter, r *http.Request)
func GetRandomQuestion ¶
func GetRandomQuestion(w http.ResponseWriter, r *http.Request)
func GetSingleQuestion ¶
func GetSingleQuestion(w http.ResponseWriter, r *http.Request)
func RegisterUser ¶
func RegisterUser(w http.ResponseWriter, r *http.Request)
func ShowAllCategories ¶
func ShowAllCategories(w http.ResponseWriter, r *http.Request)
func ShowAllQuestions ¶
func ShowAllQuestions(w http.ResponseWriter, r *http.Request)
func ShowAllUser ¶
func ShowAllUser(w http.ResponseWriter, r *http.Request)
Types ¶
Click to show internal directories.
Click to hide internal directories.