Documentation
¶
Index ¶
- type User
- func (user User) Add(main types.Main, extra types.Extra) (string, string)
- func (user User) Auth(username, email, password string) bool
- func (user User) GetFromID(userID, dataType string) (main types.Main, extra types.Extra, meta types.Meta)
- func (user User) GetUserID(username, email string) string
- func (user User) UpdateExtra(userID string, update types.Extra) string
- func (user User) UpdateMain(userID, username, email string, update types.Main) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct {
// contains filtered or unexported fields
}
User handles user data
func (User) GetFromID ¶
func (user User) GetFromID(userID, dataType string) (main types.Main, extra types.Extra, meta types.Meta)
GetFromID gets the user data (either main, meta or extra) based on userID then returns it
func (User) UpdateExtra ¶
UpdateExtra updates user's extra data
Click to show internal directories.
Click to hide internal directories.