Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultCategories = map[string][]string{
"General Beacon Reports": {
"Connection issues, error code while connecting, etc.",
"Certain features are not working, i.e. cannot comment",
"Gameplay issues, i.e. cannot dive in, broken peer to peer",
"Website issues, cannot use certain features, or offline",
},
"Other Report Types": {
"LBP issue, i.e. game crash, graphics bugs, etc.",
},
}
View Source
var Priorities = map[string]uint{
"low": 1,
"medium": 2,
"high": 3,
}
View Source
var ValidPlatforms = map[string]struct{}{
"PlayStation 3": {},
"PlayStation Vita": {},
"RPCS3": {},
"Web: Safari": {},
"Web: Google Chrome or Chromium Based": {},
"Web: Firefox": {},
"Web: Other": {},
}
Functions ¶
This section is empty.
Types ¶
type Comment ¶
type Comment struct { ID uint `gorm:"primarykey" json:"-"` // Username of whoever posted it, keeping it simple here Poster string `json:"poster"` PosterAvatar string `json:"poster_avatar"` ReportID uint `json:"-"` CreateTime time.Time `json:"-"` // The actual body of the comment Content string `json:"content"` }
func (*Comment) MarshalJSON ¶
type LighthouseError ¶
type LighthouseUser ¶
type Report ¶
type Report struct { // ID is for indexing, UUID is so that people can't sequentially guess reports ID uint `gorm:"primarykey"` UUID string Title string Username string UserID uint Avatar string `gorm:"-"` Type string Platform string Description string Resolved bool Evidence bool Read bool SubmitterIP string SubmitTime time.Time `gorm:"autoCreateTime"` Comments []Comment Priority uint DiscordMessageID string }
type ReportCategory ¶
type ReportCategory struct { ID int `gorm:"primarykey"` Name string Archived bool Types []ReportType }
type ReportType ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.