InMemoryAuditLog 内存审计日志实现
| 389 | |
| 390 | // InMemoryAuditLog 内存审计日志实现 |
| 391 | type InMemoryAuditLog struct { |
| 392 | events []AuditEvent |
| 393 | mu sync.RWMutex |
| 394 | config *AuditConfiguration |
| 395 | status *AuditLogStatus |
| 396 | eventChan chan AuditEvent |
| 397 | workers int |
| 398 | done chan struct{} |
| 399 | } |
| 400 | |
| 401 | // NewInMemoryAuditLog 创建内存审计日志 |
| 402 | func NewInMemoryAuditLog(config *AuditConfiguration) *InMemoryAuditLog { |
nothing calls this directly
no outgoing calls
no test coverage detected