controllers

package
v0.0.0-...-8430c91 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2015 License: MIT Imports: 15 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OAuthConf *oauth2.Config

Functions

func About

func About(c web.C, w http.ResponseWriter, req *http.Request)

About serves the about page

func ChecksIndex

func ChecksIndex(c web.C, w http.ResponseWriter, req *http.Request)

func CreateCheck

func CreateCheck(c web.C, w http.ResponseWriter, req *http.Request)

CreateCheck saves a new check to the DB

func DeleteCheck

func DeleteCheck(c web.C, w http.ResponseWriter, req *http.Request)

DeleteCheck deletes a single check

func Home

func Home(c web.C, w http.ResponseWriter, req *http.Request)

Home serves the home page

func IP

func IP(w http.ResponseWriter, req *http.Request)

func NewCheck

func NewCheck(c web.C, w http.ResponseWriter, req *http.Request)

NewCheck renders the new check form

func NotFound

func NotFound(c web.C, w http.ResponseWriter, req *http.Request)

NotFound serves the 404 page

func OAuthAuthorize

func OAuthAuthorize(w http.ResponseWriter, req *http.Request)

OAuthAuthorize makes the user login

func OAuthCallback

func OAuthCallback(c web.C, w http.ResponseWriter, req *http.Request)

OAuthCallback handles the callback from GitHub

func ResultsIndex

func ResultsIndex(c web.C, w http.ResponseWriter, req *http.Request)

func ShowCheck

func ShowCheck(c web.C, w http.ResponseWriter, req *http.Request)

ShowCheck renders a single check

func SignOut

func SignOut(c web.C, w http.ResponseWriter, req *http.Request)

SignOut makes the user sign out

Types

This section is empty.

Jump to

Keyboard shortcuts

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