Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendPushController ¶
sendPush function called when the request POST /push was triggered create and send a notification push
func SendTopicController ¶
Types ¶
type Notification ¶
type Notification struct { Target string `json:"target"` Topic string `json:"topic"` Message string `json:"message"` Subject string `json:"subject"` }
Notification body to load a SNS message
type Service ¶
type Service interface { SendPush(Notification) error SendTopic(Notification) error }
func NewService ¶
func NewService() Service
Click to show internal directories.
Click to hide internal directories.