Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { // ID is uuid ID string `json:"id"` // Username username Username string `json:"username"` // Password password Password string `json:"-"` // Tokens tokens Tokens []string `json:"-"` // Joined joined Joined string `json:"joined"` }
User is gost user
func (*User) GetUserByName ¶
GetUserByName can find a user by username
func (*User) RemoveToken ¶
RemoveToken remove a token from user
Click to show internal directories.
Click to hide internal directories.