Documentation ¶
Index ¶
- Variables
- func AuthenticatePlayer(username, password string) (int, error)
- func CheckRegistrationLimit(ip string) error
- func CleanupOldAttempts()
- func GetUsername(playerID int) (string, error)
- func InitDB(dbPath string) error
- func LoadPlayerState(playerID int) (x, y int, err error)
- func RegisterPlayer(username, password string) (int, error)
- func SavePlayerState(playerID int, x, y int) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUserExists = errors.New("username already exists") ErrInvalidCredentials = errors.New("invalid username or password") )
Functions ¶
func AuthenticatePlayer ¶
func CheckRegistrationLimit ¶
func CleanupOldAttempts ¶
func CleanupOldAttempts()
func GetUsername ¶
func LoadPlayerState ¶
func RegisterPlayer ¶
func SavePlayerState ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.