Documentation ¶
Index ¶
- func ValidStaff(staff StaffPost) error
- type BanchoMe
- type BeatmapSubmittion
- type Config
- type JsonModel
- type RequestFilter
- type RippleSelf
- type Round
- type Session
- type Staff
- type StaffPost
- type Tournament
- func (t *Tournament) ActivateRound(name string) error
- func (t Tournament) GetBeatmapsForJudge(localDB *gorm.DB, round_name string) ([]BeatmapSubmittion, error)
- func (t Tournament) GetBeatmapsForUser(localDB *gorm.DB, user_id uint, round_name string) ([]BeatmapSubmittion, error)
- func (t Tournament) IsRegistered(localDB *gorm.DB, user_id uint) error
- func (t Tournament) RegistrationsOpen() error
- func (t Tournament) TournamentExists(localDB *gorm.DB) error
- func (t Tournament) ValidTournament(localDB *gorm.DB) error
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidStaff ¶
Types ¶
type BeatmapSubmittion ¶
type RequestFilter ¶
type RippleSelf ¶
type Round ¶
type Round struct { JsonModel TournamentId int `json:"tournament_id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` Active bool `json:"active"` DownloadPath string `json:"download_path,omitempty"` StartTime time.Time `json:"start_time,omitempty"` EndTime time.Time `json:"end_time,omitempty"` }
type Tournament ¶
type Tournament struct { JsonModel Name string `json:"name,omitempty" gorm:"unique"` Description string `json:"description,omitempty"` StartTime time.Time `json:"start_time,omitempty"` EndTime time.Time `json:"end_time,omitempty"` RegistrationStartTime time.Time `json:"registration_start_time,omitempty"` RegistrationEndTime time.Time `json:"registration_end_time,omitempty"` Rounds []Round `json:"rounds,omitempty"` Staffs []Staff `json:"staffs,omitempty" gorm:"many2many:tournament_staff"` Registrations []User `json:"registrations,omitempty" gorm:"many2many:tournament_registrations"` Visible bool `json:"-"` }
func (*Tournament) ActivateRound ¶
func (t *Tournament) ActivateRound(name string) error
func (Tournament) GetBeatmapsForJudge ¶
func (t Tournament) GetBeatmapsForJudge(localDB *gorm.DB, round_name string) ([]BeatmapSubmittion, error)
func (Tournament) GetBeatmapsForUser ¶
func (t Tournament) GetBeatmapsForUser(localDB *gorm.DB, user_id uint, round_name string) ([]BeatmapSubmittion, error)
func (Tournament) IsRegistered ¶
func (t Tournament) IsRegistered(localDB *gorm.DB, user_id uint) error
func (Tournament) RegistrationsOpen ¶
func (t Tournament) RegistrationsOpen() error
func (Tournament) TournamentExists ¶
func (t Tournament) TournamentExists(localDB *gorm.DB) error
func (Tournament) ValidTournament ¶
func (t Tournament) ValidTournament(localDB *gorm.DB) error
Click to show internal directories.
Click to hide internal directories.