Documentation ¶
Index ¶
- func AuthorizeAccountByAccessToken(accessToken string) (*models.PlayerAccount, error)
- func CloseCopy(seed int)
- func Copy(seed int)
- func CreateCharacter(account *models.PlayerAccount, character *models.Character) (*models.Character, error)
- func CreatePlayerAccount(account *models.PlayerAccount) (*models.PlayerAccount, error)
- func ExtendsPlayerAccountTTLByAccessToken(accessToken string, newDate time.Time) error
- func GetCharacterByIDAndAccount(login, idCharacter string) (*models.Character, error)
- func RefresPlayerAccount(account *models.PlayerAccount) (*models.PlayerAccount, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthorizeAccountByAccessToken ¶
func AuthorizeAccountByAccessToken(accessToken string) (*models.PlayerAccount, error)
AuthorizeAccountByAccessToken checks that the account is authorized and returns the account found.
func CreateCharacter ¶
func CreateCharacter(account *models.PlayerAccount, character *models.Character) (*models.Character, error)
CreateCharacter creates a new character for the account.
func CreatePlayerAccount ¶
func CreatePlayerAccount(account *models.PlayerAccount) (*models.PlayerAccount, error)
CreatePlayerAccount creates the account if it does not already exists.
func ExtendsPlayerAccountTTLByAccessToken ¶
ExtendsPlayerAccountTTLByAccessToken extends the TTL of the access data of the account associated by the access token.
func GetCharacterByIDAndAccount ¶
GetCharacterByIDAndAccount finds the character by its account login and character id.
func RefresPlayerAccount ¶
func RefresPlayerAccount(account *models.PlayerAccount) (*models.PlayerAccount, error)
RefresPlayerAccount refreshes the token of the account.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.