Documentation ¶
Index ¶
- Constants
- func AssignSessionID(uid string) (string, error)
- func GetPlayer(uid string) (netobj.Player, error)
- func GetPlayerBySessionID(sid string) (netobj.Player, error)
- func IsValidSessionID(sid []byte) (bool, error)
- func IsValidSessionTime(sessionTime int64) bool
- func NewAccount() netobj.Player
- func NewAccountWithID(uid string) netobj.Player
- func ParseSIDEntry(sidResult []byte) (string, int64)
- func PurgeAllExpiredSessionIDs()
- func PurgeSessionID(sid string) error
- func SavePlayer(player netobj.Player) error
Constants ¶
View Source
const (
SessionIDSchema = "OUTRUN_%s"
)
Variables ¶
This section is empty.
Functions ¶
func AssignSessionID ¶
func IsValidSessionID ¶
func IsValidSessionTime ¶
func NewAccount ¶
func NewAccountWithID ¶
func ParseSIDEntry ¶
func PurgeAllExpiredSessionIDs ¶
func PurgeAllExpiredSessionIDs()
func PurgeSessionID ¶
func SavePlayer ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.