Documentation ¶
Index ¶
- func APICacheChanges(db *sqlx.DB) error
- func AddAccolades(db *sqlx.DB) error
- func AddClanInfo(db *sqlx.DB) error
- func AddClanInvites(db *sqlx.DB) error
- func AddColumn(table string, name string, props string, defaultVal string, db *sqlx.DB) error
- func AddFlagCaptures(db *sqlx.DB) error
- func AddFollowing(db *sqlx.DB) error
- func AddLastEventToPlayers(db *sqlx.DB) error
- func AddLastIP(db *sqlx.DB) error
- func AddLeaderboardBan(db *sqlx.DB) error
- func AddMapStats(db *sqlx.DB) error
- func AddMapVotes(db *sqlx.DB) error
- func AddMonthlyLeaderboardBan(db *sqlx.DB) error
- func AddNotes(db *sqlx.DB) error
- func AddPermissions(db *sqlx.DB) error
- func AddPolls(db *sqlx.DB) error
- func AddServerStatus(db *sqlx.DB) error
- func AddStatsBan(db *sqlx.DB) error
- func BumpNameLimit(db *sqlx.DB) error
- func ChangeLastIPToHash(db *sqlx.DB) error
- func DelColumn(table string, name string, db *sqlx.DB) error
- func DelFK(table string, name string, db *sqlx.DB) error
- func ModifyFkOnDelete(constraint string, table string, key string, reference string, db *sqlx.DB) error
- func OnDeleteCascade(db *sqlx.DB) error
- func RefreshPlayerInfo(db *sqlx.DB) error
- func RemoveAltAccounts(db *sqlx.DB) error
- func RemoveEvents(db *sqlx.DB) error
- func RemoveWeekOldAccounts(db *sqlx.DB) error
- func RunMigration(version int64, migrations func(db *sqlx.DB) error, db *sqlx.DB) error
- func SawKillBuilderOnly(db *sqlx.DB) error
- func TeamKillChanges(db *sqlx.DB) error
- type Database
- type SQLDatabase
- func (d *SQLDatabase) Commit(kills []models.Kill) error
- func (d *SQLDatabase) CommitFlagCapture(capture models.FlagCapture) error
- func (d *SQLDatabase) CommitMapStats(stats models.MapStats) error
- func (d *SQLDatabase) CommitMapVotes(votes models.MapVotes) error
- func (d *SQLDatabase) CommitPlayer(player *models.Player) error
- func (d *SQLDatabase) InitDB() error
- func (d *SQLDatabase) RunMigrations() error
- func (d *SQLDatabase) UpdatePlayerInfo(player *models.Player) error
- func (d *SQLDatabase) UpdateServerInfo(server *models.Server) error
- func (d *SQLDatabase) UpdateServerStatus(server models.Server, status bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APICacheChanges ¶
func AddAccolades ¶
func AddClanInfo ¶
func AddClanInvites ¶
func AddFlagCaptures ¶
func AddFollowing ¶
func AddLastEventToPlayers ¶
func AddLeaderboardBan ¶
func AddMapStats ¶
func AddMapVotes ¶
func AddPermissions ¶
func AddServerStatus ¶
func AddStatsBan ¶
func BumpNameLimit ¶
func ChangeLastIPToHash ¶
func ModifyFkOnDelete ¶
func OnDeleteCascade ¶
func RefreshPlayerInfo ¶
func RemoveAltAccounts ¶
func RemoveEvents ¶
func RemoveWeekOldAccounts ¶
func RunMigration ¶
func SawKillBuilderOnly ¶
func TeamKillChanges ¶
Types ¶
type Database ¶
type Database interface { InitDB() error UpdatePlayerInfo(player *models.Player) error UpdateServerInfo(server *models.Server) error UpdateServerStatus(server models.Server, status bool) error Commit(kills []models.Kill) error CommitFlagCapture(capture models.FlagCapture) error CommitMapStats(stats models.MapStats) error CommitMapVotes(votes models.MapVotes) error CommitPlayer(player *models.Player) error }
type SQLDatabase ¶
type SQLDatabase struct {
// contains filtered or unexported fields
}
func NewSQLDatabase ¶
func NewSQLDatabase(db *sqlx.DB) *SQLDatabase
func (*SQLDatabase) CommitFlagCapture ¶
func (d *SQLDatabase) CommitFlagCapture(capture models.FlagCapture) error
func (*SQLDatabase) CommitMapStats ¶
func (d *SQLDatabase) CommitMapStats(stats models.MapStats) error
func (*SQLDatabase) CommitMapVotes ¶
func (d *SQLDatabase) CommitMapVotes(votes models.MapVotes) error
func (*SQLDatabase) CommitPlayer ¶
func (d *SQLDatabase) CommitPlayer(player *models.Player) error
func (*SQLDatabase) InitDB ¶
func (d *SQLDatabase) InitDB() error
func (*SQLDatabase) RunMigrations ¶
func (d *SQLDatabase) RunMigrations() error
add database migrations here
func (*SQLDatabase) UpdatePlayerInfo ¶
func (d *SQLDatabase) UpdatePlayerInfo(player *models.Player) error
func (*SQLDatabase) UpdateServerInfo ¶
func (d *SQLDatabase) UpdateServerInfo(server *models.Server) error
func (*SQLDatabase) UpdateServerStatus ¶
func (d *SQLDatabase) UpdateServerStatus(server models.Server, status bool) error
Click to show internal directories.
Click to hide internal directories.