From 0d1f3444f27000cbda102ca2bb64883a364b35dd Mon Sep 17 00:00:00 2001 From: binwiederhier Date: Wed, 18 Feb 2026 20:48:41 -0500 Subject: [PATCH] fmt --- server/types.go | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/server/types.go b/server/types.go index ade191a2..6b5d9f5f 100644 --- a/server/types.go +++ b/server/types.go @@ -50,23 +50,23 @@ func newPollRequestMessage(topic, pollID string) *model.Message { // publishMessage is used as input when publishing as JSON type publishMessage struct { - Topic string `json:"topic"` - SequenceID string `json:"sequence_id"` - Title string `json:"title"` - Message string `json:"message"` - Priority int `json:"priority"` - Tags []string `json:"tags"` - Click string `json:"click"` - Icon string `json:"icon"` + Topic string `json:"topic"` + SequenceID string `json:"sequence_id"` + Title string `json:"title"` + Message string `json:"message"` + Priority int `json:"priority"` + Tags []string `json:"tags"` + Click string `json:"click"` + Icon string `json:"icon"` Actions []model.Action `json:"actions"` - Attach string `json:"attach"` - Markdown bool `json:"markdown"` - Filename string `json:"filename"` - Email string `json:"email"` - Call string `json:"call"` - 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) - Delay string `json:"delay"` + Attach string `json:"attach"` + Markdown bool `json:"markdown"` + Filename string `json:"filename"` + Email string `json:"email"` + Call string `json:"call"` + 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) + Delay string `json:"delay"` } // messageEncoder is a function that knows how to encode a message @@ -426,8 +426,8 @@ const ( ) type webPushPayload struct { - Event string `json:"event"` - SubscriptionID string `json:"subscription_id"` + Event string `json:"event"` + SubscriptionID string `json:"subscription_id"` Message *model.Message `json:"message"` }