Documentation
¶
Index ¶
Constants ¶
View Source
const ( WebpushVAPIDPrivateKeyPath = "../vapid_private.pem" WebpushSubject = "xsuportal@example.com" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BenchmarkJob ¶
type BenchmarkJob struct { ID int64 `db:"id"` TeamID int64 `db:"team_id"` Status int `db:"status"` TargetHostName string `db:"target_hostname"` Handle sql.NullString `db:"handle"` ScoreRaw sql.NullInt32 `db:"score_raw"` ScoreDeduction sql.NullInt32 `db:"score_deduction"` Reason sql.NullString `db:"reason"` Passed sql.NullBool `db:"passed"` StartedAt sql.NullTime `db:"started_at"` FinishedAt sql.NullTime `db:"finished_at"` CreatedAt time.Time `db:"created_at"` UpdatedAt time.Time `db:"updated_at"` }
type Clarification ¶
type Clarification struct { ID int64 `db:"id"` TeamID int64 `db:"team_id"` Disclosed sql.NullBool `db:"disclosed"` Question sql.NullString `db:"question"` Answer sql.NullString `db:"answer"` AnsweredAt sql.NullTime `db:"answered_at"` CreatedAt time.Time `db:"created_at"` UpdatedAt time.Time `db:"updated_at"` }
type ContestStatus ¶
type ContestStatus struct { RegistrationOpenAt time.Time `db:"registration_open_at"` ContestStartsAt time.Time `db:"contest_starts_at"` ContestFreezesAt time.Time `db:"contest_freezes_at"` ContestEndsAt time.Time `db:"contest_ends_at"` CurrentTime time.Time `db:"current_time"` StatusStr string `db:"status"` Frozen bool `db:"frozen"` Status resources.Contest_Status `db:"-"` }
type Contestant ¶
type LeaderBoardTeam ¶
type LeaderBoardTeam struct { ID int64 `db:"id"` Name string `db:"name"` LeaderID sql.NullString `db:"leader_id"` Withdrawn bool `db:"withdrawn"` Student sql.NullBool `db:"student"` BestScore sql.NullInt64 `db:"best_score"` BestScoreStartedAt sql.NullTime `db:"best_score_started_at"` BestScoreMarkedAt sql.NullTime `db:"best_score_marked_at"` LatestScore sql.NullInt64 `db:"latest_score"` LatestScoreStartedAt sql.NullTime `db:"latest_score_started_at"` LatestScoreMarkedAt sql.NullTime `db:"latest_score_marked_at"` FinishCount sql.NullInt64 `db:"finish_count"` }
func (*LeaderBoardTeam) Team ¶
func (t *LeaderBoardTeam) Team() *Team
type Notification ¶
type Notifier ¶
type Notifier struct {
// contains filtered or unexported fields
}
func (*Notifier) NotifyBenchmarkJobFinished ¶
func (n *Notifier) NotifyBenchmarkJobFinished(db sqlx.Ext, job *BenchmarkJob) error
func (*Notifier) NotifyClarificationAnswered ¶
type PushSubscription ¶
Directories
¶
Path | Synopsis |
---|---|
cmd
|
|
proto
|
|
google/protobuf
Package timestamppb contains generated types for google/protobuf/timestamp.proto.
|
Package timestamppb contains generated types for google/protobuf/timestamp.proto. |
Click to show internal directories.
Click to hide internal directories.