Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct {
UserID uint
Action string
ModelType string
ModelID uint
OldValues map[string]interface{}
NewValues map[string]interface{}
Metadata map[string]interface{}
}
Entry holds the data for a single audit log record.
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger writes audit log entries to the database.
func (*Logger) Find ¶
Find returns audit log entries matching the given conditions, ordered newest first. Conditions use GORM Where syntax: Find("user_id = ?", 42).
Click to show internal directories.
Click to hide internal directories.