apkipa 1 week ago
parent
commit
edbe73395f
1 changed files with 4 additions and 4 deletions
  1. 4 4
      stck-nsq-msg.go

+ 4 - 4
stck-nsq-msg.go

@@ -12,13 +12,13 @@ import (
 )
 
 type StckNsqMsg struct {
-	Type string            `mapstructure:"type"`
-	Data StckNsqMsgVariant `mapstructure:"data"`
+	Type string            `mapstructure:"type" json:"type"`
+	Data StckNsqMsgVariant `mapstructure:"data" json:"data"`
 }
 
 type StckNsqMsgRaw struct {
-	Type string                 `mapstructure:"type"`
-	Data map[string]interface{} `mapstructure:"data"`
+	Type string                 `mapstructure:"type" json:"type"`
+	Data map[string]interface{} `mapstructure:"data" json:"data"`
 }
 
 type StckNsqMsgVariant interface {