Documentation
¶
Index ¶
- type Manager
- func (m *Manager) AttachWAL(wal *WAL)
- func (m *Manager) Clear()
- func (m *Manager) Close()
- func (m *Manager) DeterministicPlaceholdersEnabled() bool
- func (m *Manager) GeneratePlaceholder(original, category, prefix string) string
- func (m *Manager) ListMappings() []MappingInfo
- func (m *Manager) Lookup(placeholder string) (string, bool)
- func (m *Manager) LookupReverse(original string) (string, bool)
- func (m *Manager) Register(placeholder, original string)
- func (m *Manager) SetDeterministicPlaceholders(enabled bool, key32 []byte) error
- func (m *Manager) Size() int
- type MappingInfo
- type WAL
- type WALEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager handles session mapping state
func NewManager ¶
NewManager creates a new session manager
func (*Manager) AttachWAL ¶ added in v0.1.3
AttachWAL binds a WAL instance for persisting newly registered mappings.
func (*Manager) DeterministicPlaceholdersEnabled ¶ added in v0.1.4
DeterministicPlaceholdersEnabled reports whether deterministic placeholders are currently active.
func (*Manager) GeneratePlaceholder ¶
GeneratePlaceholder creates a placeholder for the given original value (does NOT register it). Uses a truncated HMAC-SHA256(key, original) token: stable mapping for the same original, while reducing dictionary-guessing risk.
func (*Manager) ListMappings ¶
func (m *Manager) ListMappings() []MappingInfo
ListMappings returns all mappings (without original values for privacy)
func (*Manager) LookupReverse ¶
LookupReverse returns the placeholder for an original value
func (*Manager) SetDeterministicPlaceholders ¶ added in v0.1.4
SetDeterministicPlaceholders toggles "deterministic placeholders" mode: - enabled=false: use a per-process random key (stable within this process only). - enabled=true: use the provided key32 (should be derived from the CA private key).
type MappingInfo ¶
MappingInfo represents a mapping entry for listing (without original value)