Documentation
¶
Index ¶
- Constants
- func BanIP(addr netip.Addr, reason string, until time.Time)
- func DeleteNotice(noticeID string)
- func DismissReport(reportID string) error
- func EndSession(sessionID string) error
- func GetComments(reportID uint) []model.Comment
- func GetNotifications() []model.Notice
- func GetReport(uuid string) model.Report
- func GetReportCategories() map[string][]string
- func GetReportID(uuid string) (uint, error)
- func GetReports(showResolved bool) []model.Report
- func GetSession(sessionID string) (model.Session, error)
- func IsBanned(addr netip.Addr) bool
- func MigrateDB()
- func OpenMySQLDB(host string, port uint16, databaseName string, user string, pass string)
- func OpenPostgreSQLDB(host string, port uint16, databaseName string, user string, pass string)
- func OpenSQLiteDB(path string)
- func PostComment(comment model.Comment)
- func PostNotice(notice model.Notice)
- func ReadReport(uuid string)
- func ReopenReport(reportID string) error
- func ReportTypeExists(reportType string) bool
- func SaveReport(report *model.Report) error
- func SaveSession(session *model.Session) error
Constants ¶
View Source
const TypeMysql = "mysql"
View Source
const TypePostgres = "postgres"
View Source
const TypeSqlite = "sqlite"
Variables ¶
This section is empty.
Functions ¶
func DeleteNotice ¶
func DeleteNotice(noticeID string)
func DismissReport ¶
func EndSession ¶
func GetComments ¶
func GetNotifications ¶
func GetReportCategories ¶
func GetReportID ¶
func GetReports ¶
func OpenMySQLDB ¶
func OpenPostgreSQLDB ¶
func OpenSQLiteDB ¶
func OpenSQLiteDB(path string)
func PostComment ¶
func PostNotice ¶
func ReadReport ¶
func ReadReport(uuid string)
func ReopenReport ¶
func ReportTypeExists ¶
func SaveReport ¶
func SaveSession ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.