defaultAuditor 默认审计策略:内存记录、可选启用
| 56 | |
| 57 | // defaultAuditor 默认审计策略:内存记录、可选启用 |
| 58 | type defaultAuditor struct { |
| 59 | enabled bool |
| 60 | limit int |
| 61 | records []AuditRecord |
| 62 | } |
| 63 | |
| 64 | func (a *defaultAuditor) Record(action, userID, itemID, details string) { |
| 65 | if !a.enabled { |
nothing calls this directly
no outgoing calls
no test coverage detected