Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session struct { User string Token string Expire time.Time Usergroups []primitive.ObjectID NodeTokenMap map[primitive.ObjectID]string }
Session stores the user data, the token, the expiration of the session and the usergroups of the current user
func RemoveEmptySessions ¶
RemoveEmptySessions removes nil objects from session slice
func (*Session) InitUserGroups ¶
InitUserGroups preselects usergroups for the user (for performance reasons)
Click to show internal directories.
Click to hide internal directories.