postgres_impl

package
v0.0.0-...-6b8478a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostGresqlDB

type PostGresqlDB struct {
	// contains filtered or unexported fields
}

func InitPostGresqlDb

func InitPostGresqlDb(ctx context.Context, uri string) (*PostGresqlDB, error)

func (*PostGresqlDB) AddBan

func (db *PostGresqlDB) AddBan(guid, ip, reason string) error

func (*PostGresqlDB) AddIgnore

func (db *PostGresqlDB) AddIgnore(guid, ignoredGuid string) error

func (*PostGresqlDB) Close

func (db *PostGresqlDB) Close()

func (*PostGresqlDB) DeleteAllGotos

func (db *PostGresqlDB) DeleteAllGotos(mapname string) (int, error)

func (*PostGresqlDB) DeleteGoto

func (db *PostGresqlDB) DeleteGoto(mapname, jumpname string) (bool, error)

func (*PostGresqlDB) DeleteMapOptions

func (db *PostGresqlDB) DeleteMapOptions(mapname string) (bool, error)

func (*PostGresqlDB) DeleteQuote

func (db *PostGresqlDB) DeleteQuote(id int) error

func (*PostGresqlDB) GetBan

func (db *PostGresqlDB) GetBan(guid string) (string, bool, error)

func (*PostGresqlDB) GetBans

func (db *PostGresqlDB) GetBans() ([]mydb.BanEntry, error)

func (*PostGresqlDB) GetBestCheckpoints

func (db *PostGresqlDB) GetBestCheckpoints(mapname, way string) ([]int, string, error)

func (*PostGresqlDB) GetGoto

func (db *PostGresqlDB) GetGoto(mapname, jumpname string) (mydb.GotoData, bool)

func (*PostGresqlDB) GetGotoNames

func (db *PostGresqlDB) GetGotoNames(mapname string) ([]string, error)

func (*PostGresqlDB) GetIgnoredGuids

func (db *PostGresqlDB) GetIgnoredGuids(guid string) ([]string, error)

func (*PostGresqlDB) GetIgnoredPlayers

func (db *PostGresqlDB) GetIgnoredPlayers(guid string) ([]mydb.IgnoredPlayer, error)

func (*PostGresqlDB) GetMapOptions

func (db *PostGresqlDB) GetMapOptions(mapname string) (string, bool)

func (*PostGresqlDB) GetPlayerByGuid

func (db *PostGresqlDB) GetPlayerByGuid(guid string) (models.Player, bool)

func (*PostGresqlDB) GetPlayerById

func (db *PostGresqlDB) GetPlayerById(id int) (mydb.LookupResult, bool)

func (*PostGresqlDB) GetPlayersByIp

func (db *PostGresqlDB) GetPlayersByIp(ip string) ([]mydb.LookupResult, error)

func (*PostGresqlDB) GetRandomQuote

func (db *PostGresqlDB) GetRandomQuote() (int, string, error)

func (*PostGresqlDB) HandleRun

func (db *PostGresqlDB) HandleRun(info models.PlayerRunInfo, checkpoints []int) error

func (*PostGresqlDB) LookupPlayers

func (db *PostGresqlDB) LookupPlayers(search string) ([]mydb.LookupResult, error)

func (*PostGresqlDB) PenAdd

func (db *PostGresqlDB) PenAdd(guid string, size float64) error

func (*PostGresqlDB) PenDecrementAttempts

func (db *PostGresqlDB) PenDecrementAttempts(guid string) error

func (*PostGresqlDB) PenGetAttempts

func (db *PostGresqlDB) PenGetAttempts(guid string) (int, error)

func (*PostGresqlDB) PenIncrementAttempts

func (db *PostGresqlDB) PenIncrementAttempts(guid string) error

func (*PostGresqlDB) PenPenHallOfFame

func (db *PostGresqlDB) PenPenHallOfFame() ([]mydb.PenData, error)

func (*PostGresqlDB) PenPenHallOfShame

func (db *PostGresqlDB) PenPenHallOfShame() ([]mydb.PenData, error)

func (*PostGresqlDB) PenPenOfTheDay

func (db *PostGresqlDB) PenPenOfTheDay() (string, []mydb.PenData, error)

func (*PostGresqlDB) PenPlayerGetDailySize

func (db *PostGresqlDB) PenPlayerGetDailySize(guid string) (float64, error)

func (*PostGresqlDB) RemoveBan

func (db *PostGresqlDB) RemoveBan(playerDbId int) error

func (*PostGresqlDB) RemoveIgnore

func (db *PostGresqlDB) RemoveIgnore(guid, ignoredGuid string) error

func (*PostGresqlDB) SaveGoto

func (db *PostGresqlDB) SaveGoto(mapname, jumpname string, posX, posY, posZ, angleV, angleH float64) error

func (*PostGresqlDB) SaveNewPlayer

func (db *PostGresqlDB) SaveNewPlayer(name string, guid string, ipAddress string) (int, error)

func (*PostGresqlDB) SaveQuote

func (db *PostGresqlDB) SaveQuote(text string) error

func (*PostGresqlDB) SetMapOptions

func (db *PostGresqlDB) SetMapOptions(mapname, options string) error

func (*PostGresqlDB) SetPlayerRole

func (db *PostGresqlDB) SetPlayerRole(guid string, role int) error

func (*PostGresqlDB) UpdatePlayer

func (db *PostGresqlDB) UpdatePlayer() error

func (*PostGresqlDB) UpdatePlayerOnJoin

func (db *PostGresqlDB) UpdatePlayerOnJoin(guid, name, ip string, aliases []string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL