Documentation ¶
Index ¶
- type BaseController
- func (this *BaseController) Authenticate() (authenticated bool)
- func (this *BaseController) PrepareLayout()
- func (this *BaseController) PrepareXsrf()
- func (this *BaseController) RequireAuth()
- func (this *BaseController) RequireAuthFailed()
- func (this *BaseController) RequirePermissions(permissions []string)
- func (this *BaseController) SetFormSets(form interface{}, names ...string) *wetalkutils.FormSets
- func (this *BaseController) ValidForm(form interface{}, names ...string) bool
- func (this *BaseController) ValidFormSets(form interface{}, names ...string) bool
- type GroupMembership
- type GroupsController
- type HomeController
- type InstallController
- type Login
- type PermissionRequirement
- type PermissionsController
- type ProfileController
- type Registration
- type RegistrationsController
- type SessionsController
- type SingleSignOnController
- type StatsController
- type UsersController
- func (this *UsersController) AddUserToGroup()
- func (this *UsersController) Create()
- func (this *UsersController) Destroy()
- func (this *UsersController) Disable()
- func (this *UsersController) Edit()
- func (this *UsersController) EditGroups()
- func (this *UsersController) EditPassword()
- func (this *UsersController) EditPermissions()
- func (this *UsersController) EditUsername()
- func (this *UsersController) Enable()
- func (this *UsersController) Index()
- func (this *UsersController) New()
- func (this *UsersController) Prepare()
- func (this *UsersController) RemoveUserFromGroup()
- func (this *UsersController) UpdatePassword()
- func (this *UsersController) UpdateUsername()
- type UsersFilter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseController ¶
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 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 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 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
}
Click to show internal directories.
Click to hide internal directories.