controllers

package
v0.0.0-...-cf8c71e Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeDB

func InitializeDB()

Types

type Accounts

type Accounts struct {
	PublicApp
}

Account Controller

func (Accounts) Login

func (c Accounts) Login() revel.Result

Login method

func (Accounts) LoginProccess

func (c Accounts) LoginProccess(email string, password string) revel.Result

LoginProccess with data from Login form

func (Accounts) Logout

func (c Accounts) Logout() revel.Result

Logout ot web app

func (Accounts) Register

func (c Accounts) Register() revel.Result

Register new user

func (Accounts) RegisterPost

func (c Accounts) RegisterPost(email string, username string, name string, password string, password2 string) revel.Result

RegisterPost is a post of information input on Register

type AdminApp

type AdminApp struct {
	PublicApp
}

AdminApp user loggued

type App

type App struct {
	PublicApp
}

App user loggued

type Dashboard

type Dashboard struct {
	AdminApp
}

Dashboard Controller

func (Dashboard) Index

func (c Dashboard) Index() revel.Result

Index method

type Home

type Home struct {
	PublicApp
}

Home Controller anon user

func (Home) Detail

func (c Home) Detail(ID int, name string) revel.Result

Detail page

func (Home) Index

func (c Home) Index() revel.Result

Index page

type PublicApp

type PublicApp struct {
	*revel.Controller
	gorm.GormController
}

PublicApp without permissions

func (PublicApp) AddUser

func (c PublicApp) AddUser() revel.Result

AddUser func This function add user variable to ViewArgs

type Users

type Users struct {
	AdminApp
}

Account Controller

func (Users) Profile

func (c Users) Profile() revel.Result

Jump to

Keyboard shortcuts

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