Documentation ¶
Index ¶
- func GetForumCompetitionId(preregId int) string
- func GetPreregById(c *gin.Context)
- func GetPreregCron() func()
- func ListPreregs(c *gin.Context)
- func ParseAllPreregLinks() []string
- func ParsePreregId(listLink string) int
- func ParsePreregInfo(c *gin.Context)
- type PreregClub
- type PreregComp
- type PreregDancer
- type PreregDao
- type PreregNomination
- type PreregRecord
- type PreregService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetForumCompetitionId ¶
func GetPreregById ¶
func GetPreregCron ¶
func GetPreregCron() func()
func ListPreregs ¶
func ParseAllPreregLinks ¶
func ParseAllPreregLinks() []string
func ParsePreregId ¶
func ParsePreregInfo ¶
Types ¶
type PreregClub ¶
type PreregClub struct {
Title string `json:"title" db:"title"`
}
type PreregComp ¶
type PreregComp struct { ID bson.ObjectId `json:"id"bson:"_id,omitempty"` FCompetitionId int64 `bson:"f_competition_id" json:"f_competition_id"` Nominations []*PreregNomination `json:"nominations"` FCompetitionUrl string `json:"f_competition_url"` UpdateDate time.Time `json:"update_date" bson:"update_date"` }
func ParsePreregCompetition ¶
func ParsePreregCompetition(preregId int, fCompUrl string) *PreregComp
type PreregDancer ¶
type PreregDancer struct { CodeASH *string `json:"code_ash"` DancerClass string `json:"dancer_class"` Title string `json:"title"` Clubs []*PreregClub `json:"clubs"` }
type PreregDao ¶
type PreregDao struct {
// contains filtered or unexported fields
}
func (*PreregDao) FindCompByForumUrl ¶
func (d *PreregDao) FindCompByForumUrl(forumUrl string) *comp.FCompetition
func (*PreregDao) GetPreregById ¶
func (d *PreregDao) GetPreregById(fCompId int) *PreregComp
func (*PreregDao) ListPreregs ¶
func (d *PreregDao) ListPreregs() []PreregComp
type PreregNomination ¶
type PreregNomination struct { Title string `json:"title"` Records []*PreregRecord `json:"records"` }
type PreregRecord ¶
type PreregRecord struct { Index int `json:"index"` Dancer1 *PreregDancer `json:"dancer_1" bson:"dancer_1,omitempty"` Dancer2 *PreregDancer `json:"dancer_2" bson:"dancer_2,omitempty"` }
type PreregService ¶
type PreregService struct {
// contains filtered or unexported fields
}
func GetPreregService ¶
func GetPreregService() *PreregService
func (*PreregService) GetPreregById ¶
func (s *PreregService) GetPreregById(id int) *PreregComp
func (*PreregService) ListPreregs ¶
func (s *PreregService) ListPreregs() []PreregComp
func (*PreregService) ParsePreregInfo ¶
func (s *PreregService) ParsePreregInfo()
Click to show internal directories.
Click to hide internal directories.