controllers

package
v0.0.0-...-eca3c71 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2014 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseController

type BaseController struct {
	beego.Controller
	i18n.Locale
	Can map[string]bool
}

func (*BaseController) Authenticate

func (this *BaseController) Authenticate() (authenticated bool)

func (*BaseController) PrepareLayout

func (this *BaseController) PrepareLayout()

func (*BaseController) PrepareXsrf

func (this *BaseController) PrepareXsrf()

func (*BaseController) RequireAuth

func (this *BaseController) RequireAuth()

func (*BaseController) RequireAuthFailed

func (this *BaseController) RequireAuthFailed()

func (*BaseController) RequirePermissions

func (this *BaseController) RequirePermissions(permissions []string)

func (*BaseController) SetFormSets

func (this *BaseController) SetFormSets(form interface{}, names ...string) *wetalkutils.FormSets

func (*BaseController) ValidForm

func (this *BaseController) ValidForm(form interface{}, names ...string) bool

valid form and put errors to tempalte context

func (*BaseController) ValidFormSets

func (this *BaseController) ValidFormSets(form interface{}, names ...string) bool

valid form and put errors to tempalte context

type GroupMembership

type GroupMembership struct {
	Group    models.Group
	IsMember bool
}

type GroupsController

type GroupsController struct {
	BaseController
}

func (*GroupsController) Create

func (this *GroupsController) Create()

func (*GroupsController) Destroy

func (this *GroupsController) Destroy()

func (*GroupsController) Index

func (this *GroupsController) Index()

func (*GroupsController) New

func (this *GroupsController) New()

func (*GroupsController) Prepare

func (this *GroupsController) Prepare()

type HomeController

type HomeController struct {
	BaseController
}

func (*HomeController) Get

func (this *HomeController) Get()

func (*HomeController) Prepare

func (this *HomeController) Prepare()

type InstallController

type InstallController struct {
	BaseController
}

func (*InstallController) AssignPermissions

func (this *InstallController) AssignPermissions()

func (*InstallController) CreatePermissions

func (this *InstallController) CreatePermissions()

func (*InstallController) CreateRootUser

func (this *InstallController) CreateRootUser()

func (*InstallController) DropDatabase

func (this *InstallController) DropDatabase()

func (*InstallController) Index

func (this *InstallController) Index()

func (*InstallController) Prepare

func (this *InstallController) Prepare()

type Login

type Login struct {
	Username string
	Password string
}

type PermissionRequirement

type PermissionRequirement struct {
	Permission *models.Permission
	Exists     bool
	Assigned   bool
}

type PermissionsController

type PermissionsController struct {
	BaseController
}

func (*PermissionsController) Create

func (this *PermissionsController) Create()

func (*PermissionsController) Destroy

func (this *PermissionsController) Destroy()

func (*PermissionsController) Index

func (this *PermissionsController) Index()

func (*PermissionsController) New

func (this *PermissionsController) New()

func (*PermissionsController) Prepare

func (this *PermissionsController) Prepare()

type ProfileController

type ProfileController struct {
	BaseController
}

func (*ProfileController) Get

func (this *ProfileController) Get()

func (*ProfileController) Prepare

func (this *ProfileController) Prepare()

type Registration

type Registration struct {
	Username string
	Password string
}

type RegistrationsController

type RegistrationsController struct {
	BaseController
}

func (*RegistrationsController) Create

func (this *RegistrationsController) Create()

func (*RegistrationsController) New

func (this *RegistrationsController) New()

func (*RegistrationsController) Prepare

func (this *RegistrationsController) Prepare()

type SessionsController

type SessionsController struct {
	BaseController
}

func (*SessionsController) Create

func (this *SessionsController) Create()

func (*SessionsController) Destroy

func (this *SessionsController) Destroy()

func (*SessionsController) New

func (this *SessionsController) New()

func (*SessionsController) Prepare

func (this *SessionsController) Prepare()

type SingleSignOnController

type SingleSignOnController struct {
	BaseController
}

func (*SingleSignOnController) All

func (this *SingleSignOnController) All()

type StatsController

type StatsController struct {
	BaseController
}

func (*StatsController) Index

func (this *StatsController) Index()

func (*StatsController) Prepare

func (this *StatsController) Prepare()

type UsersController

type UsersController struct {
	BaseController
	User                        *models.User
	UserGroups                  []models.Group
	AllGroups                   []models.Group
	AllGroupsWithoutPermissions []models.Group
	UserPermissions             []*models.UserPermission
}

func (*UsersController) AddUserToGroup

func (this *UsersController) AddUserToGroup()

func (*UsersController) Create

func (this *UsersController) Create()

func (*UsersController) Destroy

func (this *UsersController) Destroy()

func (*UsersController) Disable

func (this *UsersController) Disable()

func (*UsersController) Edit

func (this *UsersController) Edit()

func (*UsersController) EditGroups

func (this *UsersController) EditGroups()

func (*UsersController) EditPassword

func (this *UsersController) EditPassword()

func (*UsersController) EditPermissions

func (this *UsersController) EditPermissions()

func (*UsersController) EditUsername

func (this *UsersController) EditUsername()

func (*UsersController) Enable

func (this *UsersController) Enable()

func (*UsersController) Index

func (this *UsersController) Index()

func (*UsersController) New

func (this *UsersController) New()

func (*UsersController) Prepare

func (this *UsersController) Prepare()

func (*UsersController) RemoveUserFromGroup

func (this *UsersController) RemoveUserFromGroup()

func (*UsersController) UpdatePassword

func (this *UsersController) UpdatePassword()

func (*UsersController) UpdateUsername

func (this *UsersController) UpdateUsername()

type UsersFilter

type UsersFilter struct {
	GroupId string
}

Jump to

Keyboard shortcuts

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