Documentation ¶
Index ¶
Constants ¶
View Source
const ( CLUSTER_USER = 0x4 CLUSTER_ADMIN = 0x2 SYSTEM_ADMIN = 0x1 )
Variables ¶
View Source
var UserCache = cache2go.Cache("user_cache")
Functions ¶
func AddCacheUser ¶
func AddCacheUser(user *User)
func DelCacheUser ¶
func DelCacheUser(userName string)
func GetPrivilege ¶
func GetPrivilege(db *sql.DB) gin.HandlerFunc
Types ¶
type User ¶
func GetCacheUser ¶
Click to show internal directories.
Click to hide internal directories.