controllers

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

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

Go to latest
Published: Aug 28, 2015 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

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL