prereg

package
v0.0.0-...-ba06689 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2017 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetForumCompetitionId

func GetForumCompetitionId(preregId int) string

func GetPreregById

func GetPreregById(c *gin.Context)

func GetPreregCron

func GetPreregCron() func()

func ListPreregs

func ListPreregs(c *gin.Context)
func ParseAllPreregLinks() []string

func ParsePreregId

func ParsePreregId(listLink string) int

func ParsePreregInfo

func ParsePreregInfo(c *gin.Context)

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

Jump to

Keyboard shortcuts

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