fmt
This commit is contained in:
@@ -50,23 +50,23 @@ func newPollRequestMessage(topic, pollID string) *model.Message {
|
|||||||
|
|
||||||
// publishMessage is used as input when publishing as JSON
|
// publishMessage is used as input when publishing as JSON
|
||||||
type publishMessage struct {
|
type publishMessage struct {
|
||||||
Topic string `json:"topic"`
|
Topic string `json:"topic"`
|
||||||
SequenceID string `json:"sequence_id"`
|
SequenceID string `json:"sequence_id"`
|
||||||
Title string `json:"title"`
|
Title string `json:"title"`
|
||||||
Message string `json:"message"`
|
Message string `json:"message"`
|
||||||
Priority int `json:"priority"`
|
Priority int `json:"priority"`
|
||||||
Tags []string `json:"tags"`
|
Tags []string `json:"tags"`
|
||||||
Click string `json:"click"`
|
Click string `json:"click"`
|
||||||
Icon string `json:"icon"`
|
Icon string `json:"icon"`
|
||||||
Actions []model.Action `json:"actions"`
|
Actions []model.Action `json:"actions"`
|
||||||
Attach string `json:"attach"`
|
Attach string `json:"attach"`
|
||||||
Markdown bool `json:"markdown"`
|
Markdown bool `json:"markdown"`
|
||||||
Filename string `json:"filename"`
|
Filename string `json:"filename"`
|
||||||
Email string `json:"email"`
|
Email string `json:"email"`
|
||||||
Call string `json:"call"`
|
Call string `json:"call"`
|
||||||
Cache string `json:"cache"` // use string as it defaults to true (or use &bool instead)
|
Cache string `json:"cache"` // use string as it defaults to true (or use &bool instead)
|
||||||
Firebase string `json:"firebase"` // use string as it defaults to true (or use &bool instead)
|
Firebase string `json:"firebase"` // use string as it defaults to true (or use &bool instead)
|
||||||
Delay string `json:"delay"`
|
Delay string `json:"delay"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// messageEncoder is a function that knows how to encode a message
|
// messageEncoder is a function that knows how to encode a message
|
||||||
@@ -426,8 +426,8 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type webPushPayload struct {
|
type webPushPayload struct {
|
||||||
Event string `json:"event"`
|
Event string `json:"event"`
|
||||||
SubscriptionID string `json:"subscription_id"`
|
SubscriptionID string `json:"subscription_id"`
|
||||||
Message *model.Message `json:"message"`
|
Message *model.Message `json:"message"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user