Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Competition ¶
type Competition interface { FindCompetition(*CompetitionGetOption) (domain.Competition, error) FindCompetitions(*CompetitionListOption) ([]domain.CompetitionSummary, error) FindScoreOrder(cid string) (domain.CompetitionScoreOrder, error) }
type CompetitionGetOption ¶
type CompetitionListOption ¶
type CompetitionListOption struct { CompetitionIds []string Status domain.CompetitionStatus Tag domain.CompetitionTag Lang domain.Language }
type Player ¶
type Player interface { SaveTeamName(*domain.Player, int) error AddPlayer(*domain.Player) error AddMember(team PlayerVersion, member PlayerVersion) error CompetitorsCount(cid string) (int, error) FindPlayer(cid string, a types.Account) (domain.Player, int, error) FindCompetitionsUserApplied(types.Account) ([]string, error) SavePlayer(p *domain.Player, version int) error ResumePlayer(cid string, a types.Account) (err error) DeletePlayer(p *domain.Player, version int) error }
type PlayerVersion ¶
type Work ¶
type Work interface { SaveWork(*domain.Work) error SaveRepo(*domain.Work, int) error AddSubmission(*domain.Work, *domain.PhaseSubmission, int) error SaveSubmission(*domain.Work, *domain.PhaseSubmission) error FindWork(domain.WorkIndex, domain.CompetitionPhase) (domain.Work, int, error) FindWorks(cid string) ([]domain.Work, error) }
Click to show internal directories.
Click to hide internal directories.