InMemoryAudit 简单内存审计,记录上限可配;实现 knowledge.AuditStrategy。
| 8 | |
| 9 | // InMemoryAudit 简单内存审计,记录上限可配;实现 knowledge.AuditStrategy。 |
| 10 | type InMemoryAudit struct { |
| 11 | Limit int |
| 12 | } |
| 13 | |
| 14 | func (a *InMemoryAudit) Record(action, userID, itemID, details string) { |
| 15 | // 可扩展:写入日志或外部存储。当前保持无状态占位,防止 OOM。 |
nothing calls this directly
no outgoing calls
no test coverage detected