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 DeleteSessionSaveData(uuid []byte, slot int) error
- func DeleteSystemSaveData(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 FetchUsernameFromUUID(uuid []byte) (string, error)
- func GetDailyRunSeed() (string, error)
- func GetLatestSessionSaveDataSlot(uuid []byte) (int, error)
- func Init(username, password, protocol, address, database string) error
- func IsActiveSession(uuid []byte, sessionId string) (bool, error)
- func ReadSeedCompleted(uuid []byte, seed string) (bool, error)
- func ReadSessionSaveData(uuid []byte, slot int) (defs.SessionSaveData, error)
- func ReadSystemSaveData(uuid []byte) (defs.SystemSaveData, error)
- func RemoveSessionFromToken(token []byte) error
- func SetAccountBanned(uuid []byte, banned bool) error
- func StoreSessionSaveData(uuid []byte, data defs.SessionSaveData, slot int) error
- func StoreSystemSaveData(uuid []byte, data defs.SystemSaveData) error
- func TryAddDailyRun(seed string) (string, error)
- func TryAddSeedCompletion(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, clientSessionId string) error
- func UpdateTrainerIds(trainerId, secretId int, uuid []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAccountSession ¶
func DeleteSessionSaveData ¶
func DeleteSystemSaveData ¶
func FetchBattleCount ¶
func FetchPlayerCount ¶
func FetchRankingPageCount ¶
func FetchRankings ¶
func FetchRankings(category int, page int) ([]defs.DailyRanking, error)
func FetchTrainerIds ¶
func FetchUUIDFromToken ¶
func FetchUsernameFromUUID ¶
func GetDailyRunSeed ¶
func ReadSessionSaveData ¶
func ReadSessionSaveData(uuid []byte, slot int) (defs.SessionSaveData, error)
func ReadSystemSaveData ¶
func ReadSystemSaveData(uuid []byte) (defs.SystemSaveData, error)
func RemoveSessionFromToken ¶
func SetAccountBanned ¶
func StoreSessionSaveData ¶
func StoreSessionSaveData(uuid []byte, data defs.SessionSaveData, slot int) error
func StoreSystemSaveData ¶
func StoreSystemSaveData(uuid []byte, data defs.SystemSaveData) error
func TryAddDailyRun ¶
func TryAddSeedCompletion ¶
func UpdateAccountPassword ¶
func UpdateAccountStats ¶
func UpdateActiveSession ¶
func UpdateTrainerIds ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.