Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResetForTest ¶
func ResetForTest()
ResetForTest clears the error redaction registry. It is intended for tests in other packages that need deterministic state.
func SetSecrets ¶
SetSecrets associates a set of secrets with the given key. Calling again with the same key replaces the previous secrets, so rotating credentials (e.g. access tokens) are handled naturally without explicit unregistration.
The key should identify the credential scope, e.g. "qq-token:<appID>" or "telegram:<configID>". For multiple instances of the same adapter, include a stable instance identifier in the key.
Callers decide where redaction is appropriate. Logs and normal outbound messages should retain their original text unless their own contract says otherwise.
Types ¶
This section is empty.