Documentation ¶
Index ¶
- func APIAuth(ctx context.Context, req *AuthRequest) (sessid string, err error)
- func AddGroup(gname string) (err error)
- func AddPerm(name string) (err error)
- func AddPermToGroup(g string, p string) (err error)
- func AddUser(u *User) (err error)
- func AddUserToGroup(u string, g string) (err error)
- func Auth(username, password string) (sessid string, err error)
- func Build(r *gin.Engine)
- func DisableUser(u string) (err error)
- func EnableUser(u string) (err error)
- func GetPerm(c *gin.Context) string
- func Init(c *Config) (err error)
- func MDSession(ctx *gin.Context)
- func Prepare() (err error)
- func RemGroup(gname string) (err error)
- func RemPerm(name string) (err error)
- func RemovePermFromGroup(g string, p string) (err error)
- func RemoveUserFromGroup(u string, g string) (err error)
- func SetUserPass(u string, p string) (err error)
- type AuthRequest
- type Config
- type Group
- type Perm
- type Session
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIAuth ¶
func APIAuth(ctx context.Context, req *AuthRequest) (sessid string, err error)
@API @PATH: /auth
func AddPermToGroup ¶
func AddUserToGroup ¶
func DisableUser ¶
func EnableUser ¶
func RemovePermFromGroup ¶
func RemoveUserFromGroup ¶
func SetUserPass ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.