sending

package
v0.0.0-...-33e649c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendPushController

func SendPushController(s Service) func(c *gin.Context)

sendPush function called when the request POST /push was triggered create and send a notification push

func SendTopicController

func SendTopicController(s Service) func(c *gin.Context)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL