repository

package
v1.7.7 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

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 CompetitionGetOption struct {
	CompetitionId string
	Lang          domain.Language
}

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 PlayerVersion struct {
	Player  *domain.Player
	Version int
}

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)
}

Jump to

Keyboard shortcuts

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