Documentation ¶
Index ¶
- Constants
- func ConstructPsqlConnectURL(addr, username, password string) string
- type PostgresBestTeammatePlayerRanking
- type PostgresGame
- type PostgresGameEvent
- type PostgresGuild
- type PostgresOtherPlayerRanking
- type PostgresPlayerRanking
- type PostgresUser
- type PostgresUserActionRanking
- type PostgresUserGame
- type PostgresUserMostFrequentFirstTargetRanking
- type PostgresUserMostFrequentKilledByanking
- type PostgresWorstTeammatePlayerRanking
- type PsqlInterface
- func (psqlInterface *PsqlInterface) AddEvent(event *PostgresGameEvent) error
- func (psqlInterface *PsqlInterface) AddInitialGame(game *PostgresGame) (uint64, error)
- func (psqlInterface *PsqlInterface) Close()
- func (psqlInterface *PsqlInterface) EnsureGuildExists(guildID uint64, guildName string) (*PostgresGuild, error)
- func (psqlInterface *PsqlInterface) EnsureUserExists(userID uint64) (*PostgresUser, error)
- func (psqlInterface *PsqlInterface) GetGame(connectCode, matchID string) (*PostgresGame, error)
- func (psqlInterface *PsqlInterface) GetGameEvents(matchID string) ([]*PostgresGameEvent, error)
- func (psqlInterface *PsqlInterface) GetGuild(guildID uint64) (*PostgresGuild, error)
- func (psqlInterface *PsqlInterface) GetGuildPremiumStatus(guildID string) (premium.Tier, int)
- func (psqlInterface *PsqlInterface) GetUser(userID uint64) (*PostgresUser, error)
- func (psqlInterface *PsqlInterface) GetUserByString(userID string) (*PostgresUser, error)
- func (psqlInterface *PsqlInterface) Init(addr string) error
- func (psqlInterface *PsqlInterface) LoadAndExecFromFile(filepath string) error
- func (psqlInterface *PsqlInterface) OptUserByString(userID string, opt bool) (bool, error)
- func (psqlInterface *PsqlInterface) UpdateGameAndPlayers(gameID int64, winType int16, endTime int64, players []*PostgresUserGame) error
- type PsqlParameters
Constants ¶
View Source
const SecsInADay = 86400
Variables ¶
This section is empty.
Functions ¶
func ConstructPsqlConnectURL ¶
Types ¶
type PostgresGame ¶
type PostgresGameEvent ¶
type PostgresGuild ¶
type PostgresPlayerRanking ¶
type PostgresUser ¶
type PostgresUserGame ¶
type PsqlInterface ¶
func (*PsqlInterface) AddEvent ¶
func (psqlInterface *PsqlInterface) AddEvent(event *PostgresGameEvent) error
func (*PsqlInterface) AddInitialGame ¶
func (psqlInterface *PsqlInterface) AddInitialGame(game *PostgresGame) (uint64, error)
func (*PsqlInterface) Close ¶
func (psqlInterface *PsqlInterface) Close()
func (*PsqlInterface) EnsureGuildExists ¶
func (psqlInterface *PsqlInterface) EnsureGuildExists(guildID uint64, guildName string) (*PostgresGuild, error)
func (*PsqlInterface) EnsureUserExists ¶
func (psqlInterface *PsqlInterface) EnsureUserExists(userID uint64) (*PostgresUser, error)
func (*PsqlInterface) GetGame ¶
func (psqlInterface *PsqlInterface) GetGame(connectCode, matchID string) (*PostgresGame, error)
func (*PsqlInterface) GetGameEvents ¶
func (psqlInterface *PsqlInterface) GetGameEvents(matchID string) ([]*PostgresGameEvent, error)
func (*PsqlInterface) GetGuild ¶
func (psqlInterface *PsqlInterface) GetGuild(guildID uint64) (*PostgresGuild, error)
func (*PsqlInterface) GetGuildPremiumStatus ¶
func (psqlInterface *PsqlInterface) GetGuildPremiumStatus(guildID string) (premium.Tier, int)
func (*PsqlInterface) GetUser ¶
func (psqlInterface *PsqlInterface) GetUser(userID uint64) (*PostgresUser, error)
func (*PsqlInterface) GetUserByString ¶
func (psqlInterface *PsqlInterface) GetUserByString(userID string) (*PostgresUser, error)
func (*PsqlInterface) Init ¶
func (psqlInterface *PsqlInterface) Init(addr string) error
func (*PsqlInterface) LoadAndExecFromFile ¶
func (psqlInterface *PsqlInterface) LoadAndExecFromFile(filepath string) error
func (*PsqlInterface) OptUserByString ¶
func (psqlInterface *PsqlInterface) OptUserByString(userID string, opt bool) (bool, error)
func (*PsqlInterface) UpdateGameAndPlayers ¶
func (psqlInterface *PsqlInterface) UpdateGameAndPlayers(gameID int64, winType int16, endTime int64, players []*PostgresUserGame) error
make sure to call the relevant "ensure" methods before this one...
type PsqlParameters ¶
Click to show internal directories.
Click to hide internal directories.