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

Method audit

pkg/knowledge/manager.go:862–867  ·  view source on GitHub ↗

audit 记录审计日志

(action, userID, itemID, details string)

Source from the content-addressed store, hash-verified

860
861// audit 记录审计日志
862func (m *manager) audit(action, userID, itemID, details string) {
863 if m.auditStrategy == nil {
864 return
865 }
866 m.auditStrategy.Record(action, userID, itemID, details)
867}
868
869// cleanupRoutine 清理协程
870func (m *manager) cleanupRoutine(ctx context.Context) {

Callers 7

AddMethod · 0.95
GetMethod · 0.95
UpdateMethod · 0.95
DeleteMethod · 0.95
SearchMethod · 0.95
AddRelationMethod · 0.95
RemoveRelationMethod · 0.95

Calls 1

RecordMethod · 0.65

Tested by

no test coverage detected