controllers

package
v0.0.0-...-bf4f8af Latest Latest
Warning

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

Go to latest
Published: May 3, 2015 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEV_MODE  = "DEV_MODE"
	MONGO_URL = "MONGO_URL"
)

Variables

View Source
var IS_DEV_MODE = getDevMode()

Functions

This section is empty.

Types

type AppController

type AppController struct {
	controller.Base
	// contains filtered or unexported fields
}

func (*AppController) Bind

func (ac *AppController) Bind(formStruct binding.FieldMapper) binding.Errors

helper methods for handling request data

func (*AppController) ContextGet

func (ac *AppController) ContextGet(key interface{}) interface{}

helper methods for context access

func (*AppController) ContextSet

func (ac *AppController) ContextSet(key, value interface{})

func (*AppController) Init

lifecycle methods

func (*AppController) Redirect

func (ac *AppController) Redirect(url string, code int) error

helper methods for creating responses

type LandingPageController

type LandingPageController struct {
	AppController
}

func (*LandingPageController) Index

func (c *LandingPageController) Index() error

type UsersController

type UsersController struct {
	AppController
}

func (*UsersController) CreateNewUser

func (c *UsersController) CreateNewUser() error

func (*UsersController) DeleteUser

func (c *UsersController) DeleteUser() error

func (*UsersController) NewUser

func (c *UsersController) NewUser() error

func (*UsersController) PerformUserDeletion

func (c *UsersController) PerformUserDeletion() error

func (*UsersController) PerformUserUpdate

func (c *UsersController) PerformUserUpdate() error

func (*UsersController) UpdateUser

func (c *UsersController) UpdateUser() error

func (*UsersController) User

func (c *UsersController) User() error

func (*UsersController) Users

func (c *UsersController) Users() error

Jump to

Keyboard shortcuts

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