Documentation
¶
Index ¶
- Variables
- func Connect()
- func DeleteGroup(id int64) error
- func DeleteGroupUser(group_id int64, user_id int64) error
- func DeleteLeague(id int64) error
- func DeleteLeagueSeason(league_id int64, name string) error
- func DeletePlatform(id int64) error
- func DeletePlatformAuth(platform_id int64) error
- func DeletePlatformElo(platform_id int64) error
- func DeletePlatformEndpoint(platform_id int64, name string) error
- func DeletePlatformUser(user_id int64, platform_id int64) error
- func DeleteResult(id int64) error
- func DeleteResultPlatformElo(result_id int64, platform_elo_id int64) error
- func DeleteUser(id int64) error
- func GetConnection() *sqlx.DB
- func InsertGroup(group GROUP) (*int64, error)
- func InsertGroupUser(group_user GROUP_USER) (*int64, error)
- func InsertLeague(league LEAGUE) (*int64, error)
- func InsertLeagueSeason(league_season LEAGUE_SEASON) (*int64, error)
- func InsertPlatform(platform PLATFORM) (*int64, error)
- func InsertPlatformAuth(platform_auth PLATFORM_AUTH) (*int64, error)
- func InsertPlatformElo(platform_elo PLATFORM_ELO) (*int64, error)
- func InsertPlatformEndpoint(platform_endpoint PLATFORM_ENDPOINT) (*int64, error)
- func InsertPlatformUser(platform_user PLATFORM_USER) (*int64, error)
- func InsertResult(result RESULT) (*int64, error)
- func InsertResultPlatformElo(result_platform_elo RESULT_PLATFORM_ELO) (*int64, error)
- func InsertUser(user USER) (*int64, error)
- func LeagueExists(leagueName string) (bool, error)
- func ModifyGroup(id int64, group GROUP) error
- func ModifyLeague(id int64, league LEAGUE) error
- func ModifyLeagueSeason(league_id int64, name string, league_season LEAGUE_SEASON) error
- func ModifyPlatformEndpointPath(platform_id int64, name string, path string) error
- func ModifyPlatformUser(user_id int64, platform_id int64, platform_user PLATFORM_USER) error
- func ModifyResultPlatformElo(result_id int64, platform_elo_id int64, ...) error
- func ModifyUser(id int64, user USER) error
- func PlatformAuthExists(platform_id int64) (*bool, error)
- func PlatformEloExists(platform_id int64) (*bool, error)
- func SelectGroupUserByGroupID(group_id int64) (*[]GROUP_USER, error)
- func SelectGroupUserByUserID(user_id int64) (*[]GROUP_USER, error)
- func SelectGroups(where string) (*[]GROUP, error)
- func SelectGroupsByLeagueIDAndLeagueSeasonName(league_id int64, league_season_name string) (*[]GROUP, error)
- func SelectLeagues(where string) (*[]LEAGUE, error)
- func SelectPlatformEndpointPath(platform_id int64, name string) (*string, error)
- func SelectPlatformEndpoints(where string) (*[]PLATFORM_ENDPOINT, error)
- func SelectPlatformIDByNameAndVersion(name string, version string) (*int64, error)
- func SelectPlatformUserByPlatformID(platform_id int64) (*[]PLATFORM_USER, error)
- func SelectPlatformUserByUserID(user_id int64) (*[]PLATFORM_USER, error)
- func SelectPlatforms(where string) (*[]PLATFORM, error)
- func SelectResultCountByGroupID(id int64) (*int, error)
- func SelectResultLastPlayedByLeagueID(league_id int64) (*time.Time, error)
- func SelectResultLastPlayedByPlatformID(platform_id int64) (*time.Time, error)
- func SelectResultPlatformEloByPlatformID(platform_id int64) (*[]RESULT_PLATFORM_ELO, error)
- func SelectResultPlatformEloByResultID(result_id int64) (*[]RESULT_PLATFORM_ELO, error)
- func SelectResults(where string) (*[]RESULT, error)
- func SelectResultsByLeagueID(league_id int64) (*[]RESULT, error)
- func SelectUsers(where string) (*[]USER, error)
- type Connection
- type GROUP
- type GROUP_USER
- type LEAGUE
- type LEAGUE_SEASON
- type PLATFORM
- type PLATFORM_AUTH
- type PLATFORM_ELO
- type PLATFORM_ENDPOINT
- type PLATFORM_USER
- type RESULT
- type RESULT_PLATFORM_ELO
- type USER
Constants ¶
This section is empty.
Variables ¶
View Source
var DEFAULT_CONNECTION = Connection{
"gr8elo.cekete5hvzfh.us-east-1.rds.amazonaws.com",
"3306",
"admin",
"",
"gr8elo",
}
Functions ¶
func DeleteGroup ¶
func DeleteGroupUser ¶
func DeleteLeague ¶
func DeleteLeagueSeason ¶
func DeletePlatform ¶
func DeletePlatformAuth ¶
func DeletePlatformElo ¶
func DeletePlatformEndpoint ¶
func DeletePlatformUser ¶
func DeleteResult ¶
func DeleteResultPlatformElo ¶
func DeleteUser ¶
func GetConnection ¶
func InsertGroup ¶
func InsertGroupUser ¶
func InsertGroupUser(group_user GROUP_USER) (*int64, error)
func InsertLeague ¶
func InsertLeagueSeason ¶
func InsertLeagueSeason(league_season LEAGUE_SEASON) (*int64, error)
func InsertPlatform ¶
func InsertPlatformAuth ¶
func InsertPlatformAuth(platform_auth PLATFORM_AUTH) (*int64, error)
func InsertPlatformElo ¶
func InsertPlatformElo(platform_elo PLATFORM_ELO) (*int64, error)
func InsertPlatformEndpoint ¶
func InsertPlatformEndpoint(platform_endpoint PLATFORM_ENDPOINT) (*int64, error)
func InsertPlatformUser ¶
func InsertPlatformUser(platform_user PLATFORM_USER) (*int64, error)
func InsertResult ¶
func InsertResultPlatformElo ¶
func InsertResultPlatformElo(result_platform_elo RESULT_PLATFORM_ELO) (*int64, error)
func InsertUser ¶
func LeagueExists ¶
func ModifyGroup ¶
func ModifyLeague ¶
func ModifyLeagueSeason ¶
func ModifyLeagueSeason(league_id int64, name string, league_season LEAGUE_SEASON) error
func ModifyPlatformUser ¶
func ModifyPlatformUser(user_id int64, platform_id int64, platform_user PLATFORM_USER) error
func ModifyResultPlatformElo ¶
func ModifyResultPlatformElo(result_id int64, platform_elo_id int64, result_platform_elo RESULT_PLATFORM_ELO) error
func ModifyUser ¶
func PlatformAuthExists ¶
func PlatformEloExists ¶
func SelectGroupUserByGroupID ¶
func SelectGroupUserByGroupID(group_id int64) (*[]GROUP_USER, error)
func SelectGroupUserByUserID ¶
func SelectGroupUserByUserID(user_id int64) (*[]GROUP_USER, error)
func SelectGroups ¶
func SelectLeagues ¶
func SelectPlatformEndpoints ¶
func SelectPlatformEndpoints(where string) (*[]PLATFORM_ENDPOINT, error)
func SelectPlatformUserByPlatformID ¶
func SelectPlatformUserByPlatformID(platform_id int64) (*[]PLATFORM_USER, error)
func SelectPlatformUserByUserID ¶
func SelectPlatformUserByUserID(user_id int64) (*[]PLATFORM_USER, error)
func SelectPlatforms ¶
func SelectResultPlatformEloByPlatformID ¶
func SelectResultPlatformEloByPlatformID(platform_id int64) (*[]RESULT_PLATFORM_ELO, error)
func SelectResultPlatformEloByResultID ¶
func SelectResultPlatformEloByResultID(result_id int64) (*[]RESULT_PLATFORM_ELO, error)
func SelectResults ¶
func SelectResultsByLeagueID ¶
func SelectUsers ¶
Types ¶
type Connection ¶
type GROUP ¶
type GROUP struct { ID int64 `json:"id" db:"id"` LeagueID int64 `json:"league_id" db:"league_id"` LeagueSeasonName string `json:"league_season_name" db:"league_season_name"` Name string `json:"name" db:"name"` Created time.Time `json:"created" db:"created"` }
func SelectGroupByID ¶
type GROUP_USER ¶
type LEAGUE ¶
type LEAGUE struct { ID int64 `json:"id" db:"id"` PlatformEloID int64 `json:"platform_elo_id" db:"platform_elo_id"` Name string `json:"name" db:"name"` GroupsLimit int `json:"groups_limit" db:"groups_limit"` GroupSizeLimit int `json:"group_size_limit" db:"group_size_limit"` Start time.Time `json:"start" db:"start"` End time.Time `json:"end" db:"end"` }
func SelectLeague ¶
type LEAGUE_SEASON ¶
type LEAGUE_SEASON struct { LeagueID int64 `json:"league_id" db:"league_id"` Name string `json:"name" db:"name"` Start time.Time `json:"start" db:"start"` End time.Time `json:"end" db:"end"` }
func SelectLeagueSeason ¶
func SelectLeagueSeason(league_id int64, name string) (*LEAGUE_SEASON, error)
type PLATFORM ¶
type PLATFORM struct { ID int64 `json:"id" db:"id"` Name string `json:"name" db:"name"` Version string `json:"version" db:"version"` }
func SelectPlatform ¶
type PLATFORM_AUTH ¶
type PLATFORM_AUTH struct {
PlatformID int64 `json:"platform_id" db:"platform_id"`
}
type PLATFORM_ELO ¶
type PLATFORM_ELO struct {
PlatformID int64 `json:"platform_id" db:"platform_id"`
}
type PLATFORM_ENDPOINT ¶
type PLATFORM_USER ¶
type RESULT ¶
type RESULT struct { ID int64 `json:"id" db:"id"` GroupID int64 `json:"group_id" db:"group_id"` ELOBefore int `json:"elo_before" db:"elo_before"` ELOAfter int `json:"elo_after" db:"elo_after"` ELODifference int `json:"elo_difference" db:"elo_difference"` Outcome string `json:"outcome" db:"outcome"` Played time.Time `json:"played" db:"played"` }
func SelectResult ¶
func SelectResultLastPlayed ¶
type RESULT_PLATFORM_ELO ¶
Click to show internal directories.
Click to hide internal directories.