handlers

package
Version: v0.0.0-...-d1ce119 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2015 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GradeAPlus Grade = "A+"
	GradeA           = "A"
	GradeB           = "B"
	GradeC           = "C"
	GradeD           = "D"
	GradeE           = "E"
	GradeF           = "F"
)

The Grade constants below indicate the current available grades.

Variables

This section is empty.

Functions

func AssetsHandler

func AssetsHandler(w http.ResponseWriter, r *http.Request)

AssetsHandler handles serving static files

func BadgeHandler

func BadgeHandler(w http.ResponseWriter, r *http.Request, org, repo string)

BadgeHandler handles fetching the badge images

func CheckHandler

func CheckHandler(w http.ResponseWriter, r *http.Request)

CheckHandler handles the request for checking a repo

func HighScoresHandler

func HighScoresHandler(w http.ResponseWriter, r *http.Request)

HighScoresHandler handles the stats page

func HomeHandler

func HomeHandler(w http.ResponseWriter, r *http.Request)

HomeHandler handles the homepage

func ReportHandler

func ReportHandler(w http.ResponseWriter, r *http.Request, org, repo string)

ReportHandler handles the report page

Types

type Grade

type Grade string

Grade represents a grade returned by the server, which is normally somewhere between A+ (highest) and F (lowest).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL