SetPublisher wires the webhooks-as-a-resource publisher — the sole push path since the per-agent webhook was removed in slice 3. Same optional-setter pattern as SetEnforcer — keeps NewServer's signature unchanged for the existing call sites and tests that don't care about the push path.
(p webhookpub.Publisher)
| 73 | // unchanged for the existing call sites and tests that don't care |
| 74 | // about the push path. |
| 75 | func (s *Server) SetPublisher(p webhookpub.Publisher) { s.publisher = p } |
| 76 | |
| 77 | // SetOutbox wires the slice-1 transactional outbox. When set AND its |
| 78 | // FeatureFlag is enabled, the inbound trigger commits the messages row |
no outgoing calls