Documentation ¶
Index ¶
Constants ¶
View Source
const ( PrefixJWT = "jwt" PrefixSession = "session" )
View Source
const ( Login = 1 Logout = 0 )
Variables ¶
This section is empty.
Functions ¶
func CheckJWTInBlacklist ¶
CheckJWTInBlacklist checks if user's jwt is in blacklist.
func SetJWTDeadline ¶
SetJWTDeadline sets a deadline of user's jwt. All jwt issued before the new deadline will be rejected.
func SetStatusLogin ¶
You can use bitmap of cache to keep a record of each user's login status. Here we don't use it.
func SetStatusLogout ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.