Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrizeCount ¶
func PrizeCount() int
Types ¶
type Prize ¶
type Prize struct { ID int `json:"id"` Title string `json:"title"` Part int `json:"-"` Description string `json:"description"` Image *url.URL `json:"image"` Winner survey.SurveyUser `json:"winner"` DateAdded time.Time `json:"date_added"` DateModified time.Time `json:"date_modified"` UserID int `json:"-"` Deleted bool `json:"-"` Current bool `json:"current"` Revisions []PrizeRevision `json:"revisions"` }
func (*Prize) PickWinner ¶
type PrizeRevision ¶
type PrizeRevision struct { ID int `json:"id"` NewTitle *string `json:"new_title"` OldTitle *string `json:"old_title"` NewDescription *string `json:"new_description"` OldDescription *string `json:"old_description"` NewImage *url.URL `json:"new_image"` OldImage *url.URL `json:"old_image"` Date time.Time `json:"date"` ChangeType string `json:"change_type"` User survey.RevisionUser `json:"user"` }
Click to show internal directories.
Click to hide internal directories.