MCPcopy Create free account
hub / github.com/astercloud/aster / InMemoryAuditLog

Struct InMemoryAuditLog

pkg/security/audit.go:391–399  ·  view source on GitHub ↗

InMemoryAuditLog 内存审计日志实现

Source from the content-addressed store, hash-verified

389
390// InMemoryAuditLog 内存审计日志实现
391type 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 创建内存审计日志
402func NewInMemoryAuditLog(config *AuditConfiguration) *InMemoryAuditLog {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected