Documentation
¶
Overview ¶
Package users provides the JSON handlers to handle users data in gonawin app.
Index ¶
- func AllowInvitation(w http.ResponseWriter, r *http.Request, u *mdl.User) error
- func DenyInvitation(w http.ResponseWriter, r *http.Request, u *mdl.User) error
- func Destroy(w http.ResponseWriter, r *http.Request, u *mdl.User) error
- func Index(w http.ResponseWriter, r *http.Request, u *mdl.User) error
- func Score(w http.ResponseWriter, r *http.Request, u *mdl.User) error
- func Search(w http.ResponseWriter, r *http.Request, u *mdl.User) error
- func Show(w http.ResponseWriter, r *http.Request, u *mdl.User) error
- func Teams(w http.ResponseWriter, r *http.Request, u *mdl.User) error
- func Tournaments(w http.ResponseWriter, r *http.Request, u *mdl.User) error
- func Update(w http.ResponseWriter, r *http.Request, u *mdl.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllowInvitation ¶
AllowInvitation handler, use it to allow an invitation to a team.
func DenyInvitation ¶
DenyInvitation handler, use it to deny an invitation to a team.
func Destroy ¶
Destroy hander, use this to remove a user from gonawin.
POST /j/user/destroy/[0-9]+/ Destroys the user with the given id.
func Search ¶
Search handler returns the result of a user search in a JSON format. It uses parameter 'q' to make the query.
GET /j/user/search/ Search for all users respecting the query "q"
func Show ¶
Show User handler, use it to get the user JSON data. including parameter: {teams, tournaments, teamrequests} 'count' parameter: default 25 'page' parameter: default 1
func Teams ¶
Teams handler, use this to retrieve the teams of the current user. count parameter: default 12 page parameter: default 1
func Tournaments ¶
Tournaments user handler, use this to retrieve the JSON data of the tournaments of the user. count parameter: default 25 page parameter: default 1
Types ¶
This section is empty.