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

Method AsEnvelope

internal/webhookpub/event.go:179–186  ·  view source on GitHub ↗

AsEnvelope returns the wire shape for serialization.

()

Source from the content-addressed store, hash-verified

177
178// AsEnvelope returns the wire shape for serialization.
179func (e Event) AsEnvelope() Envelope {
180 return Envelope{
181 Type: e.Type,
182 ID: e.ID,
183 CreatedAt: e.CreatedAt,
184 Data: e.Data,
185 }
186}
187
188func generateEventID() string {
189 b := make([]byte, 16)

Callers 4

handleTestWebhookMethod · 0.80
PublishMethod · 0.80
writeOutboxRowFunction · 0.80

Calls

no outgoing calls

Tested by 1