Documentation ¶
Overview ¶
db sets up our database connection and exposes functions and methods to make working with data easier
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
Functions ¶
func LoadSQLite ¶
LoadSQLite loads the database as SQLite this should be used for local testing
Types ¶
type Outfit ¶
type Outfit struct { gorm.Model Name string CID string // CID is the ID given to it by census. LeaderSlack string // This is the username of the user in Slack }
Outfit...
type Report ¶
type Report struct { gorm.Model Reporter string Name string PSNName string `gorm:"column:psn_name"` AdditionalInfo string OutfitCID string `gorm:"column:outfit_cid"` // The outfit the user was in at the time of the report Cleared bool }
Report ...
func (*Report) ToggleClear ¶
func (r *Report) ToggleClear()
ToggleClear toggles the Cleared value in the database.
Click to show internal directories.
Click to hide internal directories.