feat: activity log backend foundation
This commit is contained in:
1 parent
8907bb49fe
commit
50b1649965
74 files changed
+5949
-239
No files matched your search
@@ -0,0 +1,16 @@
|
||||
package audit
|
||||
|
||||
import "time"
|
||||
|
||||
type Repository interface {
|
||||
Append(event Event) (Event, error)
|
||||
List(filter Filter) (Page, error)
|
||||
Summary(query SummaryQuery) (Summary, error)
|
||||
DeleteOlderThan(cutoff time.Time) (int, error)
|
||||
}
|
||||
|
||||
type SettingsRepository interface {
|
||||
Get() (Settings, error)
|
||||
SaveRetention(days int) error
|
||||
SaveLastCleanup(at time.Time, removed int) error
|
||||
}
|
||||
Reference in new issue
Block a user