Documentation
¶
Index ¶
- func CreateContestEntry(entryData []byte, playerId uint64) error
- func CreatePlayer() (uint32, error)
- func FindOpponentEntry(notPlayerId uint64) (uint64, []byte, error)
- func GetContestByPlayerId(myInternalId uint64) ([]byte, error)
- func GetPlayerByID(pyroId uint32) (uint64, error)
- func InitializeDatabase()
- func InsertContest(myInternalId uint64, opponentEntryId uint64, contest_data []byte) error
- func SetContestRetrieved(myInternalId uint64) error
- type Player
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateContestEntry ¶
// InsertContEST_ENTRY adds a new contest_entry to the CONTEST_ENTRY table.
func CreatePlayer ¶
CreatePlayerS adds a new players to the PLAYERS table and returns the generated ID.
func GetContestByPlayerId ¶
GetContestByPlayerId retrieves a contest data by Player ID
func GetPlayerByID ¶
GetPlayerSByID retrieves a players by their ID.
func InitializeDatabase ¶
func InitializeDatabase()
InitializeDatabase creates the necessary tables if they don't exist.
func InsertContest ¶
InsertContest adds a new contest data to the CONTEST_DATA table.
func SetContestRetrieved ¶
Types ¶
type Player ¶
type Player struct {
PlayerID uint32 // Primary key (auto-incremented)
CheckID uint16 // Not null
Arena uint16 // Nullable
Rating uint16 // Nullable
EmailAddr string // Nullable
MFAEnabled int // Nullable
MFAMethod int // Nullable
ContestEntry uint64 // Foreign key referencing CONTEST_ENTRY(ENTRY_ID)
TeamName string // Nullable
Location string // Nullable
PlayerName string // Nullable
}
Player represents a player in the game.
Click to show internal directories.
Click to hide internal directories.