Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ListCountKey is the name of the key in which we save the list count ListCountKey = `listcount` // UserCountKey is the name of the key we use to store total users in redis UserCountKey = `usercount` // NamespaceCountKey is the name of the key we use to store the amount of total namespaces in redis NamespaceCountKey = `namespacecount` // TaskCountKey is the name of the key we use to store the amount of total tasks in redis TaskCountKey = `taskcount` // TeamCountKey is the name of the key we use to store the amount of total teams in redis TeamCountKey = `teamcount` )
View Source
const ActiveUsersKey = `activeusers`
ActiveUsersKey is the key used to store active users in redis
View Source
const SecondsUntilInactive = 60
SecondsUntilInactive defines the seconds until a user is considered inactive
Variables ¶
This section is empty.
Functions ¶
func SetActiveUsers ¶
func SetActiveUsers(users []*ActiveUser) (err error)
SetActiveUsers sets the active users from redis
func UpdateCount ¶
UpdateCount updates a count with a given amount
Types ¶
type ActiveUser ¶
ActiveUser defines an active user
func GetActiveUsers ¶
func GetActiveUsers() (users []*ActiveUser, err error)
GetActiveUsers returns the active users from redis
Click to show internal directories.
Click to hide internal directories.