controllers

package
v0.0.0-...-9fb3cb1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2015 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Router = NewRouter()

Functions

func AboutViewHandler

func AboutViewHandler(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

AboutViewHandler handles GET requests to "/about/"

func HomeViewHandler

func HomeViewHandler(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

HomeViewHandler handles GET requests to "/"

func LoginActionHandler

func LoginActionHandler(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

LoginActionHandler handles POST requests to "/login/"

func LoginViewHandler

func LoginViewHandler(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

LoginViewHandler handles GET requests to "/login/"

func LogoutActionHandler

func LogoutActionHandler(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

LogoutActionHandler handles POST requests to "/logout/"

func NewRouter

func NewRouter() *httprouter.Router

NewRouter returns a new router.

func SignupActionHandler

func SignupActionHandler(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

func SignupViewHandler

func SignupViewHandler(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

Types

type Signup

type Signup struct {
	Email  string
	First  string
	Last   string
	School string
	State  string
}

func (*Signup) Remove

func (s *Signup) Remove() error

func (*Signup) Store

func (s *Signup) Store() error

type SignupData

type SignupData struct {
	CSRF  []byte
	Error string
}

Directories

Path Synopsis
LoginData is here because of import loops.
LoginData is here because of import loops.

Jump to

Keyboard shortcuts

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