MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / SetPublisher

Method SetPublisher

internal/relay/server.go:75–75  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

73// unchanged for the existing call sites and tests that don't care
74// about the push path.
75func (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

Calls

no outgoing calls