mirror of
https://github.com/syntrex-lab/gomcp.git
synced 2026-04-26 12:56:21 +02:00
12 lines
428 B
Go
12 lines
428 B
Go
package tools
|
|
|
|
// DecisionRecorder is the interface for recording tamper-evident decisions (v3.7).
|
|
// Implemented by audit.DecisionLogger. Optional — nil-safe callers should check.
|
|
type DecisionRecorder interface {
|
|
RecordDecision(module, decision, reason string)
|
|
}
|
|
|
|
// SetDecisionRecorder injects the decision recorder into SynapseService.
|
|
func (s *SynapseService) SetDecisionRecorder(r DecisionRecorder) {
|
|
s.recorder = r
|
|
}
|