Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeUserInformation ¶
func ChangeUserInformation(token string, changer func(Information) Information)
ChangeUserInformation requires the token of the user and a function which gives the actual information and returns the new information.
func SetUserInformation ¶
func SetUserInformation(token string, information Information)
SetUserInformation sets the user's information by its token.
Types ¶
type Information ¶
type Information struct {
Name string `json:"name"`
MovieGenres []string `json:"movie_genres"`
MovieBlacklist []string `json:"movie_blacklist"`
Reminders []Reminder `json:"reminders"`
SpotifyToken *oauth2.Token `json:"spotify_token"`
SpotifyID string `json:"spotify_id"`
SpotifySecret string `json:"spotify_secret"`
}
Information is the user's information retrieved from the client
func GetUserInformation ¶
func GetUserInformation(token string) Information
GetUserInformation returns the information of a user with his token
Click to show internal directories.
Click to hide internal directories.