aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--modules/caddyevents/app.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/caddyevents/app.go b/modules/caddyevents/app.go
index 902c6d842..fe76a6757 100644
--- a/modules/caddyevents/app.go
+++ b/modules/caddyevents/app.go
@@ -355,6 +355,11 @@ type Event struct {
origin caddy.Module
}
+func (e Event) ID() uuid.UUID { return e.id }
+func (e Event) Timestamp() time.Time { return e.ts }
+func (e Event) Name() string { return e.name }
+func (e Event) Origin() caddy.Module { return e.origin }
+
// CloudEvent exports event e as a structure that, when
// serialized as JSON, is compatible with the
// CloudEvents spec.