Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UserList = make(map[string]*User)
keep the uuid to user
View Source
var UserListLock = lock.NewLock("user-list")
Functions ¶
func ValidateUser ¶
* Return a user provided the username and Password If the Password is correct return user, else return err
Types ¶
type User ¶
type User struct { objects.User Lock *lock.Lock `json:"-"` UserUpdateChan *duplicator.ChannelDuplicator `json:"-"` Sender *sender.Sender `json:"-"` }
User Object Represents a unique individual of the system
func ConnectUser ¶
* Renew a user user a session token
func GetAllUsers ¶
func GetAllUsers() []*User
* Turn the user map into a list so they can be sent to a rx client
func GetUser ¶
* Return a user provided the username and Password If the Password is correct return user, else return err
func (*User) LogoutUser ¶
func (user *User) LogoutUser()
* Logout the user and decrement the active client count
func (*User) SetDisplayName ¶
func (*User) SetPassword ¶
Click to show internal directories.
Click to hide internal directories.