Started work on crash reporting

This commit is contained in:
Caleb Gardner
2024-05-30 06:35:57 -05:00
parent 144f45293b
commit 228f0ff86d
4 changed files with 62 additions and 30 deletions
+7 -1
View File
@@ -21,5 +21,11 @@ type Table[T IDStruct] interface {
type CrashTable interface {
Table[CrashReport]
InsertCrash(ID string, report IndividualCrash) error
// Move a crash type to archive. All instances that perfectly match that appear in CrashReport.Individual should be deleted.
// If a CrashReport ends up with an empty Individual array it should also be deleted.
Archive(ArchivedCrash)
IsArchived(IndividualCrash) bool
// Add the IndividualCrash report to the crash table. If a CrashReport exists that matches, then it gets added to CrashReport.Individual.
// If an IndividualCrash exists that is a perfect match, Count is incremented instead of adding it to the array.
InsertCrash(IndividualCrash) error
}