Documentation
¶
Overview ¶
Package simplepush provides a library to send (end-to-end encrypted) push messages to Smartphones via https://simplepush.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var APIUrl = "https://api.simplepush.io/"
APIUrl is the public API entry point for https://simplepush.io. It is public to allow overriding in case of simplepush.io compatible services.
Functions ¶
Types ¶
type Message ¶
type Message struct {
SimplePushKey string // Your simeplepush.io key
Title string // Title of your message
Message string // Message body
Event string // The event the message should be associated with
Encrypt bool // If set, the message will be sent end-to-end encrypted with the provided Password/Salt. If false, the message is sent unencrypted.
Password string // Your password
Salt string // If set, this salt is used, otherwise the default one gets used.
}
Message contains all the information necessary to send a, potentially encrypted, message.
Click to show internal directories.
Click to hide internal directories.