olivia: github.com/olivia-ai/olivia/user Index | Files

package user

import "github.com/olivia-ai/olivia/user"

Index

Package Files

informations.go

func ChangeUserInformations Uses

func ChangeUserInformations(token string, changer func(Information) Information)

ChangeUserInformations requires the token of the user and a function which gives the actual informations and returns the new informations.

func SetUserInformations Uses

func SetUserInformations(token string, information Information)

type Information Uses

type Information struct {
    Name           string   `json:"name"`
    MovieGenres    []string `json:"movie_genres"`
    MovieBlacklist []string `json:"movie_blacklist"`
}

func GetUserInformations Uses

func GetUserInformations(token string) Information

GetUserInformations returns the informations of a user with his token

Package user is imported by 3 packages. Updated 2019-08-09. Refresh now. Tools for package owners.