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

Struct redactionStrategy

pkg/knowledge/manager.go:82–84  ·  view source on GitHub ↗

redactionStrategy 默认 PII 脱敏策略

Source from the content-addressed store, hash-verified

80
81// redactionStrategy 默认 PII 脱敏策略
82type redactionStrategy struct {
83 redactor security.ContentRedactor
84}
85
86func (r *redactionStrategy) Sanitize(item *KnowledgeItem) *KnowledgeItem {
87 if r == nil || r.redactor == nil || item == nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected