From ea59afe1898f3c35636d20f829ad123954f0fc6c Mon Sep 17 00:00:00 2001 From: Casper Date: Fri, 28 Jan 2022 11:23:11 +0800 Subject: [PATCH] feat(events):PubSub Message metadata field --- events/pubsub.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/events/pubsub.go b/events/pubsub.go index e8c428250..383629d88 100644 --- a/events/pubsub.go +++ b/events/pubsub.go @@ -10,8 +10,9 @@ type Handler interface { } type Message struct { - Topic string - Data []byte + Topic string + Data []byte + Metadata map[string]interface{} } type PublishMetadata struct {