Documentation
¶
Index ¶
- type Bot
- type Database
- 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
- type Match
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func NewDatabase ¶
func (*Database) CreateMatch ¶
func (*Database) GetHighlights ¶
func (*Database) IncrementBotWin ¶
func (*Database) ListMatches ¶
func (*Database) RecordBotStats ¶
func (*Database) SaveEvents ¶
func (*Database) UpdateMatch ¶
Click to show internal directories.
Click to hide internal directories.