Added cleanup loop

Added LogTable interface
This commit is contained in:
Caleb Gardner
2024-05-31 06:59:30 -05:00
parent 228f0ff86d
commit 2040631737
5 changed files with 63 additions and 17 deletions
+6
View File
@@ -19,6 +19,12 @@ type Table[T IDStruct] interface {
PartUpdate(ID string, update map[string]any) error
}
type LogTable interface {
Table[Log]
// Remove all Log items that have a Log.Date value less then the given value.
RemoveOldLogs(date int)
}
type CrashTable interface {
Table[CrashReport]
// Move a crash type to archive. All instances that perfectly match that appear in CrashReport.Individual should be deleted.