Documentation ¶
Index ¶
- func AddPermission(c *gin.Context)
- func Bond(c *gin.Context)
- func CreateAdmin(adminuser, admingroup string)
- func DelPermission(c *gin.Context)
- func DoPermissible(username, object, action string) bool
- func GetPermission(c *gin.Context)
- func GetPermissionApp(username string) map[string][]string
- func GetVersion(c *gin.Context)
- func IsAdmin(c *gin.Context) bool
- func IsTokenOk(username, token string) bool
- func NewGroup(c *gin.Context)
- func NewToken(c *gin.Context)
- func NewUser(c *gin.Context)
- func Permissible(c *gin.Context)
- func Serve(domainAndPort string)
- func TokenOk(c *gin.Context) bool
- func UnBond(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPermission ¶
func CreateAdmin ¶
func CreateAdmin(adminuser, admingroup string)
func DoPermissible ¶
func GetPermissionApp ¶
此时已确认user有合法的token
func GetVersion ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.