strategy

package
v0.19.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditRecord

type AuditRecord = knowledge.AuditRecord

AuditRecord 用于扩展持久化或排错场景。

type InMemoryAudit

type InMemoryAudit struct {
	Limit int
}

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

func (*InMemoryAudit) Record

func (a *InMemoryAudit) Record(action, userID, itemID, details string)

type Redaction

type Redaction struct {
	// contains filtered or unexported fields
}

Redaction 基于正则的默认 PII 脱敏策略,兼容 ManagerConfig.PIIStrategy。

func NewRedaction

func NewRedaction(detector security.PIIDetector) *Redaction

func (*Redaction) Sanitize

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL