controllers

package
v0.0.0-...-d4d2d12 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2014 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiController

type ApiController struct {
	system.Controller
}

type MainController

type MainController struct {
	system.Controller
}

func (*MainController) Index

func (controller *MainController) Index(c web.C, r *http.Request) (string, int)

Home page route

func (*MainController) Logout

func (controller *MainController) Logout(c web.C, r *http.Request) (string, int)

This route logs user out

func (*MainController) SignIn

func (controller *MainController) SignIn(c web.C, r *http.Request) (string, int)

Sign in route

func (*MainController) SignInPost

func (controller *MainController) SignInPost(c web.C, r *http.Request) (string, int)

Sign In form submit route. Logs user in or set appropriate message in session if login was not succesful

func (*MainController) SignUp

func (controller *MainController) SignUp(c web.C, r *http.Request) (string, int)

Sign up route

func (*MainController) SignUpPost

func (controller *MainController) SignUpPost(c web.C, r *http.Request) (string, int)

Sign Up form submit route. Registers new user or shows Sign Up route with appropriate messages set in session

Jump to

Keyboard shortcuts

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