db

package
v0.0.0-...-929fa59 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2022 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SessionIDSchema = "OUTRUN_%s"
)

Variables

This section is empty.

Functions

func AssignSessionID

func AssignSessionID(uid string) (string, error)

func GetPlayer

func GetPlayer(uid string) (netobj.Player, error)

func GetPlayerBySessionID

func GetPlayerBySessionID(sid string) (netobj.Player, error)

func IsValidSessionID

func IsValidSessionID(sid []byte) (bool, error)

func IsValidSessionTime

func IsValidSessionTime(sessionTime int64) bool

func NewAccount

func NewAccount() netobj.Player

func NewAccountWithID

func NewAccountWithID(uid string) netobj.Player

func ParseSIDEntry

func ParseSIDEntry(sidResult []byte) (string, int64)

func PurgeAllExpiredSessionIDs

func PurgeAllExpiredSessionIDs()

func PurgeSessionID

func PurgeSessionID(sid string) error

func SaveNormalHighScore

func SaveNormalHighScore(highScore int64, uid string) error

func SavePlayer

func SavePlayer(player netobj.Player) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL