Documentation ¶
Index ¶
- type Contest
- type ContestList
- type ContestsResult
- type DotlanDbClient
- type DotlanDbClientImpl
- func (d *DotlanDbClientImpl) GetContestForTournament(tournament *Tournament) (contests []Contest, err error)
- func (d *DotlanDbClientImpl) GetTournaments(ctx context.Context, resultChan chan TournamentsResult)
- func (d *DotlanDbClientImpl) GetTournamentsContests(ctx context.Context, resultChan chan TournamentsContestsResult)
- type ParticipantsTeam
- type TContest
- type Tournament
- type TournamentContest
- type TournamentContest2
- type TournamentList
- type TournamentsContestsResult
- type TournamentsResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Contest ¶
type Contest struct { Tcid uint `db:"tcid"` Tid uint `db:"tid"` Tcrunde int `db:"tcrunde"` Team_a int `db:"team_a"` Team_b int `db:"team_b"` Wins_a int `db:"wins_a"` Wins_b int `db:"wins_b"` Won int `db:"won"` Dateline time.Time `db:"dateline"` Host string `db:"host"` User_id int `db:"user_id"` Row int `db:"row"` Comments int `db:"comments"` Starttime time.Time `db:"starttime"` Ignoretime int `db:"ignoretime"` Ready_a time.Time `db:"ready_a"` Ready_b time.Time `db:"ready_b"` Defaultwin int `db:"defaultwin"` Intern sql.NullString `db:"intern"` Public sql.NullString `db:"public"` Tournament Tournament }
type ContestList ¶
type ContestList []Contest
type ContestsResult ¶
type ContestsResult struct { Result ContestList Error error }
type DotlanDbClient ¶
type DotlanDbClient interface { GetTournaments(ctx context.Context, resultChan chan TournamentsResult) GetContestForTournament(*Tournament) ([]Contest, error) GetTournamentsContests(ctx context.Context, resultChan chan TournamentsContestsResult) }
func NewClient ¶
func NewClient(ctx context.Context, env *environment.Environment, wp *workerpool.WorkerPool, config config.ConfigClient) (DotlanDbClient, error)
type DotlanDbClientImpl ¶
type DotlanDbClientImpl struct {
// contains filtered or unexported fields
}
func (*DotlanDbClientImpl) GetContestForTournament ¶
func (d *DotlanDbClientImpl) GetContestForTournament(tournament *Tournament) (contests []Contest, err error)
func (*DotlanDbClientImpl) GetTournaments ¶
func (d *DotlanDbClientImpl) GetTournaments(ctx context.Context, resultChan chan TournamentsResult)
func (*DotlanDbClientImpl) GetTournamentsContests ¶
func (d *DotlanDbClientImpl) GetTournamentsContests(ctx context.Context, resultChan chan TournamentsContestsResult)
type ParticipantsTeam ¶
type ParticipantsTeam struct {
// contains filtered or unexported fields
}
func (ParticipantsTeam) TableName ¶
func (ParticipantsTeam) TableName() string
type Tournament ¶
type Tournament struct { Tid uint `db:"tid" ` Tgroupid int `db:"tgroupid" ` Tactive int `db:"tactive" ` Topen bool `db:"topen" ` Tclosed bool `db:"tclosed" ` Tpause bool `db:"tpause" ` Teventid int `db:"teventid" ` Tname string `db:"tname" ` // Tplaytype string `db:"tplaytype" ` // Tparams string `db:"tparams" ` // Tminanz sql.NullInt64 `db:"tminanz" ` // Tmaxanz sql.NullInt64 `db:"tmaxanz" ` // Tuserproteam int `db:"tuserproteam" ` // Tmoreplayer bool `db:"tmoreplayer" ` // Tlogo sql.NullString `db:"tlogo" ` // Tregeln sql.NullString `db:"tregeln" ` // Tinfotext sql.NullString `db:"tinfotext" ` // Tstart string `db:"tstart" ` // Troundtime int `db:"troundtime" ` // Troundpause int `db:"troundpause" ` // Tcheckin bool `db:"tcheckin" ` // Tcheckintime int `db:"tcheckintime" ` // Tautodefaultwin bool `db:"tautodefaultwin" ` // Taudultsonly bool `db:"tadultsonly" ` // Tpassword string `db:"tpassword" ` // Tprice1 string `db:"tprice1" ` // Tprice2 string `db:"tprice2" ` // Tprice3 string `db:"tprice3" ` // Tnight bool `db:"tnight" ` // Tnightbegin string `db:"tnightbegin" ` // Tnightend string `db:"tnightend" ` Tdefmap sql.NullString `db:"tdefmap" ` }
func (Tournament) TableName ¶
func (Tournament) TableName() string
type TournamentContest ¶
type TournamentContest struct { Tid uint `db:"tt.tid"` Topen bool `db:"tt.topen"` Tclosed bool `db:"tt.tclosed"` Tpause bool `db:"tt.tpause"` Tuserproteam int `db:"tt.tuserproteam"` Tname string `db:"tt.tname"` Contest []TContest `db:"tc"` }
func (TournamentContest) Join ¶
func (TournamentContest) Join() string
func (TournamentContest) TableName ¶
func (TournamentContest) TableName() string
type TournamentContest2 ¶
type TournamentContest2 struct { Tournament Contest }
func (TournamentContest2) TableName ¶
func (TournamentContest2) TableName() string
type TournamentList ¶
type TournamentList []Tournament
type TournamentsContestsResult ¶
type TournamentsContestsResult struct { Result []TournamentContest Error error }
type TournamentsResult ¶
type TournamentsResult struct { Result TournamentList Error error }
Click to show internal directories.
Click to hide internal directories.