Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIDefinition ¶
func APIDefinition(w http.ResponseWriter, r *http.Request)
APIDefinition serves the swagger description for this service
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API uses a store to respond to API requests
func (*API) Click ¶
func (api *API) Click(w http.ResponseWriter, r *http.Request)
Click reports clicks for the given team
func (*API) GetLeaderboard ¶
func (api *API) GetLeaderboard(w http.ResponseWriter, r *http.Request)
GetLeaderboard returns the highest scoring teams
func (*API) GetTeamByID ¶
func (api *API) GetTeamByID(w http.ResponseWriter, r *http.Request)
GetTeamByID returns a single team if found by ID
func (*API) UpdateTeam ¶
func (api *API) UpdateTeam(w http.ResponseWriter, r *http.Request)
UpdateTeam creates or updates a team using the form data from the request
type Route ¶
type Route struct { Name string Method string Pattern string HandlerFunc http.HandlerFunc }
Route maps a path pattern to a handler function.
Click to show internal directories.
Click to hide internal directories.