Documentation ¶
Index ¶
- func AddAccountRecord(uuid []byte, username string, key, salt []byte) error
- func AddAccountSession(username string, token []byte) error
- func AddOrUpdateAccountDailyRun(uuid []byte, score int, wave int) error
- func DeleteClaimedAccountCompensations(uuid []byte) error
- func FetchAccountKeySaltFromUsername(username string) ([]byte, []byte, error)
- func FetchAndClaimAccountCompensations(uuid []byte) (map[int]int, error)
- func FetchBattleCount() (int, error)
- func FetchClassicSessionCount() (int, error)
- func FetchPlayerCount() (int, error)
- func FetchRankingPageCount(category int) (int, error)
- func FetchRankings(category int, page int) ([]defs.DailyRanking, error)
- func FetchTrainerIds(uuid []byte) (trainerId, secretId int, err error)
- func FetchUUIDFromToken(token []byte) ([]byte, error)
- func FetchUsernameFromToken(token []byte) (string, error)
- func Init(username, password, protocol, address, database string) error
- func IsActiveSession(token []byte) (bool, error)
- func RemoveSessionFromToken(token []byte) error
- func TryAddDailyRun(seed string) error
- func TryAddDailyRunCompletion(uuid []byte, seed string, mode int) (bool, error)
- func UpdateAccountLastActivity(uuid []byte) error
- func UpdateAccountPassword(uuid, key, salt []byte) error
- func UpdateAccountStats(uuid []byte, stats defs.GameStats, voucherCounts map[string]int) error
- func UpdateActiveSession(uuid []byte, token []byte) error
- func UpdateTrainerIds(trainerId, secretId int, uuid []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAccountSession ¶
func FetchBattleCount ¶
func FetchPlayerCount ¶
func FetchRankingPageCount ¶
func FetchRankings ¶
func FetchRankings(category int, page int) ([]defs.DailyRanking, error)
func FetchTrainerIds ¶
func FetchUUIDFromToken ¶
func FetchUsernameFromToken ¶
func IsActiveSession ¶
func RemoveSessionFromToken ¶
func TryAddDailyRun ¶
func UpdateAccountPassword ¶
func UpdateAccountStats ¶
func UpdateActiveSession ¶
func UpdateTrainerIds ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.