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

Struct defaultAuditor

pkg/knowledge/manager.go:58–62  ·  view source on GitHub ↗

defaultAuditor 默认审计策略:内存记录、可选启用

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected