Versions in this module Expand all Collapse all v0 v0.1.0 Feb 16, 2026 Changes in this version + type Bot struct + Deaths int + ID string + Image string + Kills int + Name string + UpdatedAt time.Time + Wins int + type Database struct + func NewDatabase(dbPath string) (*Database, error) + func (d *Database) Close() error + func (d *Database) CreateMatch(match *Match) error + func (d *Database) GetEvents(matchID string, startTick, endTick int64) ([]EventLog, error) + func (d *Database) GetHighlights(matchID string) ([]EventLog, error) + func (d *Database) IncrementBotWin(botID string) error + func (d *Database) ListMatches() ([]Match, error) + func (d *Database) RecordBotStats(botID string, kills, deaths int) error + func (d *Database) SaveEvent(event *EventLog) error + func (d *Database) SaveEvents(events []EventLog) error + func (d *Database) UpdateMatch(match *Match) error + func (d *Database) UpsertBot(bot *Bot) error + type EventLog struct + MatchID string + Payload string + Tick int64 + Type string + type Match struct + ArenaHeight float32 + ArenaWidth float32 + CreatedAt time.Time + Events []EventLog + FinishedAt *time.Time + ID string + Status string + WinnerID string