Documentation ¶
Index ¶
- Constants
- Variables
- func Web(listen, static, templatesDir, admin, pass string, tls bool, ...)
- type BaseAction
- type BaseAuthAction
- type ChgPassAction
- type DownAction
- type GroupAction
- type GroupAddAction
- type GroupBaseAction
- type GroupDelAction
- type GroupEditAction
- type LoginAction
- type LogoutAction
- type MainAction
- type PermAction
- type PermAddAction
- type PermBaseAction
- type PermDelAction
- type PermEditAction
- type PermUpdateGroup
- type PermUpdateOwner
- type PermUpdatePerm
- type User
- type UserAction
- type UserAddAction
- type UserBaseAction
- type UserDB
- type UserDelAction
- type UserEditAction
Constants ¶
View Source
const ( USER_MODULE = iota + 1 GROUP_MODULE PERM_MODULE CHGPASS_MODULE )
Variables ¶
View Source
var ( DB UserDB Perm server.Perm Factory server.DriverFactory )
Functions ¶
Types ¶
type BaseAction ¶
type BaseAction struct { renders.Renderer session.Session tango.Ctx binding.Binder // contains filtered or unexported fields }
func (*BaseAction) AskLogin ¶
func (a *BaseAction) AskLogin() bool
func (*BaseAction) IsAdmin ¶
func (a *BaseAction) IsAdmin() bool
func (*BaseAction) IsLogin ¶
func (a *BaseAction) IsLogin() bool
func (*BaseAction) LoginUserId ¶
func (a *BaseAction) LoginUserId() string
func (*BaseAction) Logout ¶
func (a *BaseAction) Logout()
func (*BaseAction) SetLogin ¶
func (a *BaseAction) SetLogin(user string)
type BaseAuthAction ¶
type BaseAuthAction struct {
BaseAction
}
func (*BaseAuthAction) AskLogin ¶
func (a *BaseAuthAction) AskLogin() bool
type ChgPassAction ¶
type ChgPassAction struct { UserBaseAction xsrf.Checker flash.Flash }
func (*ChgPassAction) Before ¶
func (c *ChgPassAction) Before()
func (*ChgPassAction) Get ¶
func (c *ChgPassAction) Get() error
func (*ChgPassAction) Post ¶
func (c *ChgPassAction) Post() error
type DownAction ¶
type DownAction struct {
BaseAuthAction
}
func (*DownAction) Get ¶
func (d *DownAction) Get() error
type GroupAction ¶
type GroupAction struct {
GroupBaseAction
}
func (*GroupAction) Get ¶
func (c *GroupAction) Get() error
type GroupAddAction ¶
type GroupAddAction struct { GroupBaseAction xsrf.Checker }
func (*GroupAddAction) Get ¶
func (c *GroupAddAction) Get() error
func (*GroupAddAction) Post ¶
func (c *GroupAddAction) Post() error
type GroupBaseAction ¶
type GroupBaseAction struct {
BaseAuthAction
}
func (*GroupBaseAction) Before ¶
func (c *GroupBaseAction) Before()
type GroupDelAction ¶
type GroupDelAction struct {
GroupBaseAction
}
func (*GroupDelAction) Get ¶
func (c *GroupDelAction) Get() error
type GroupEditAction ¶
type GroupEditAction struct {
GroupBaseAction
}
func (*GroupEditAction) Get ¶
func (c *GroupEditAction) Get() error
type LoginAction ¶
type LoginAction struct { BaseAction xsrf.Checker flash.Flash }
func (*LoginAction) Get ¶
func (a *LoginAction) Get() error
func (*LoginAction) Post ¶
func (a *LoginAction) Post() error
type LogoutAction ¶
type LogoutAction struct {
BaseAuthAction
}
func (*LogoutAction) Get ¶
func (a *LogoutAction) Get()
type MainAction ¶
type MainAction struct {
BaseAction
}
func (*MainAction) Get ¶
func (a *MainAction) Get()
type PermAction ¶
type PermAction struct {
PermBaseAction
}
func (*PermAction) Get ¶
func (c *PermAction) Get() error
type PermAddAction ¶
type PermAddAction struct {
PermBaseAction
}
func (*PermAddAction) Get ¶
func (p *PermAddAction) Get() error
type PermBaseAction ¶
type PermBaseAction struct {
BaseAuthAction
}
func (*PermBaseAction) Before ¶
func (c *PermBaseAction) Before()
type PermDelAction ¶
type PermDelAction struct {
PermBaseAction
}
func (*PermDelAction) Get ¶
func (p *PermDelAction) Get() error
type PermEditAction ¶
type PermEditAction struct {
PermBaseAction
}
func (*PermEditAction) Get ¶
func (p *PermEditAction) Get() error
type PermUpdateGroup ¶
type PermUpdateGroup struct {
PermBaseAction
}
func (*PermUpdateGroup) Get ¶
func (c *PermUpdateGroup) Get()
type PermUpdateOwner ¶
type PermUpdateOwner struct {
PermBaseAction
}
func (*PermUpdateOwner) Get ¶
func (c *PermUpdateOwner) Get()
type PermUpdatePerm ¶
type PermUpdatePerm struct {
PermBaseAction
}
func (*PermUpdatePerm) Get ¶
func (c *PermUpdatePerm) Get()
type UserAction ¶
type UserAction struct {
UserBaseAction
}
func (*UserAction) Get ¶
func (a *UserAction) Get() error
type UserAddAction ¶
type UserAddAction struct { UserBaseAction xsrf.Checker }
func (*UserAddAction) Get ¶
func (a *UserAddAction) Get() error
func (*UserAddAction) Post ¶
func (a *UserAddAction) Post() error
type UserBaseAction ¶
type UserBaseAction struct {
BaseAuthAction
}
func (*UserBaseAction) Before ¶
func (c *UserBaseAction) Before()
type UserDB ¶
type UserDB interface { GetUser(string) (string, error) AddUser(string, string) error DelUser(string) error ChgPass(string, string) error UserList(*[]User) error AddGroup(string) error DelGroup(string) error GroupList(*[]string) error AddUserGroup(string, string) error DelUserGroup(string, string) error GroupUser(string, *[]string) error }
type UserDelAction ¶
type UserDelAction struct {
UserBaseAction
}
func (*UserDelAction) Get ¶
func (a *UserDelAction) Get() error
type UserEditAction ¶
type UserEditAction struct { UserBaseAction xsrf.Checker }
func (*UserEditAction) Get ¶
func (a *UserEditAction) Get() error
func (*UserEditAction) Post ¶
func (a *UserEditAction) Post() error
Click to show internal directories.
Click to hide internal directories.