|
@@ -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 {
|