Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentUserID ¶
func IsUserAdmin ¶
func IsUserLogged ¶
func IsUserLoggedOrAdmin ¶
Types ¶
type ContextKey ¶
type ContextKey int
const ( ContextKeyUserID ContextKey = iota ContextKeyUsername ContextKeyUserAdmin )
Click to show internal directories.
Click to hide internal directories.