Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Contest ¶
type Contest struct { gorm.Model EjudgeID uint `gorm:"unique;not null"` EjudgeName string `gorm:"not null;type:varchar(128)"` EjudgeProblemsList string `gorm:"not null;type:varchar(128)"` ReviewActive bool `gorm:"not null;default:true"` }
func NewContestFromEj ¶
type Run ¶
type Run struct { gorm.Model EjudgeID uint `gorm:"not null;uniqueIndex:idx_full_id"` EjudgeContestID uint `gorm:"not null;uniqueIndex:idx_full_id"` EjudgeUserLogin string `gorm:"not null;type:varchar(128)"` EjudgeName string `gorm:"not null;type:varchar(32)"` ReviewCount uint `gorm:"not null"` Rating int `gorm:"not null"` }
func NewRunFromEj ¶
type User ¶
type User struct { gorm.Model EjudgeID uint `gorm:"not null"` EjudgeLogin string `gorm:"unique;not null;type:varchar(128)"` EjudgePassword string `gorm:"not null;type:varchar(128)"` ReviewAproveCount uint `gorm:"not null"` ReviewRejectCount uint `gorm:"not null"` }
TODO: set EjudgeID and hash password.
func NewUserFromForm ¶
Click to show internal directories.
Click to hide internal directories.