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

Struct InMemoryAudit

pkg/knowledge/strategy/audit.go:10–12  ·  view source on GitHub ↗

InMemoryAudit 简单内存审计,记录上限可配;实现 knowledge.AuditStrategy。

Source from the content-addressed store, hash-verified

8
9// InMemoryAudit 简单内存审计,记录上限可配;实现 knowledge.AuditStrategy。
10type InMemoryAudit struct {
11 Limit int
12}
13
14func (a *InMemoryAudit) Record(action, userID, itemID, details string) {
15 // 可扩展:写入日志或外部存储。当前保持无状态占位,防止 OOM。

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected