Documentation
¶
Overview ¶
Package gcloudfunc contains the Google Cloud Function to generate the leaderboard stats when triggered by a webhook.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LeaderboardEvent ¶
LeaderboardEvent writes GitHub repo stats as JSON data for leaderboard charts to GCloud Storage bucket. This function is triggered by an PubSub event, intend for usage with Google Cloud Scheduler (cron job). (https://cloud.google.com/functions/docs/writing/background)
func LeaderboardHTTP ¶
func LeaderboardHTTP(w http.ResponseWriter, r *http.Request)
LeaderboardHTTP writes GitHub repo stats as JSON data for leaderboard charts to GCloud Storage bucket. This function is triggered by HTTP request, (https://cloud.google.com/functions/docs/writing/http). It doesn't care about parameters or response body (except for errors).
Types ¶
This section is empty.
Directories
¶
Path | Synopsis |
---|---|
backend
|
|
pkg/leader
Package leader produces a leaderboard summary from a github repository's pull requests as a JSON file.
|
Package leader produces a leaderboard summary from a github repository's pull requests as a JSON file. |