Documentation
¶
Overview ¶
Package tasks provides a set of handlers to perform long running tasks in gonawin app.
Index ¶
- func AddScoreToScoreEntities(w http.ResponseWriter, r *http.Request) error
- func CreateScoreEntities(w http.ResponseWriter, r *http.Request) error
- func DeleteUserPredicts(w http.ResponseWriter, r *http.Request) error
- func Invite(w http.ResponseWriter, r *http.Request) error
- func PublishUsersScoreActivities(w http.ResponseWriter, r *http.Request) error
- func UpdateScores(w http.ResponseWriter, r *http.Request) error
- func UpdateUsersScores(w http.ResponseWriter, r *http.Request) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddScoreToScoreEntities ¶
func AddScoreToScoreEntities(w http.ResponseWriter, r *http.Request) error
AddScoreToScoreEntities handler, use it to add a score to score model.
func CreateScoreEntities ¶
func CreateScoreEntities(w http.ResponseWriter, r *http.Request) error
CreateScoreEntities handler, use it to create the score entities.
func DeleteUserPredicts ¶
func DeleteUserPredicts(w http.ResponseWriter, r *http.Request) error
DeleteUserPredicts task handler, use it to delete the predictions of a given user.
func Invite ¶
func Invite(w http.ResponseWriter, r *http.Request) error
Invite task handler, use it to send an invitation via email.
func PublishUsersScoreActivities ¶
func PublishUsersScoreActivities(w http.ResponseWriter, r *http.Request) error
PublishUsersScoreActivities published user score activities.
func UpdateScores ¶
func UpdateScores(w http.ResponseWriter, r *http.Request) error
UpdateScores updates the scores of all users in tournaments. it does this by dispatching different tasks.
GET /a/update/scores/ update
The response is ...
func UpdateUsersScores ¶
func UpdateUsersScores(w http.ResponseWriter, r *http.Request) error
UpdateUsersScores handler, use it to update users scores.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.