Documentation ¶
Index ¶
- func AddUsersToTopic(w http.ResponseWriter, r *http.Request)
- func CreateTopic(w http.ResponseWriter, r *http.Request)
- func DeleteTopic(w http.ResponseWriter, r *http.Request)
- func GetAllNotifications(w http.ResponseWriter, r *http.Request)
- func GetAllTopics(w http.ResponseWriter, r *http.Request)
- func GetNotificationsForTopic(w http.ResponseWriter, r *http.Request)
- func GetTopicInfo(w http.ResponseWriter, r *http.Request)
- func PublishNotification(w http.ResponseWriter, r *http.Request)
- func RegisterDeviceToUser(w http.ResponseWriter, r *http.Request)
- func RemoveUsersFromTopic(w http.ResponseWriter, r *http.Request)
- func SetupController(route *mux.Route)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddUsersToTopic ¶
func AddUsersToTopic(w http.ResponseWriter, r *http.Request)
Adds users with given userids to the specified topic
func CreateTopic ¶
func CreateTopic(w http.ResponseWriter, r *http.Request)
Endpoint to create a new SNS topic
func DeleteTopic ¶
func DeleteTopic(w http.ResponseWriter, r *http.Request)
Endpoint to delete a SNS topic
func GetAllNotifications ¶
func GetAllNotifications(w http.ResponseWriter, r *http.Request)
Endpoint to get all past notifications
func GetAllTopics ¶
func GetAllTopics(w http.ResponseWriter, r *http.Request)
Endpoint to get all SNS Topics
func GetNotificationsForTopic ¶
func GetNotificationsForTopic(w http.ResponseWriter, r *http.Request)
Endpoint to get all past notifications for a given Topic
func GetTopicInfo ¶
func GetTopicInfo(w http.ResponseWriter, r *http.Request)
Endpoint to get name, ARN for a topic
func PublishNotification ¶
func PublishNotification(w http.ResponseWriter, r *http.Request)
Endpoint to create a new notification
func RegisterDeviceToUser ¶
func RegisterDeviceToUser(w http.ResponseWriter, r *http.Request)
Endpoint to register a device token to a given user
func RemoveUsersFromTopic ¶
func RemoveUsersFromTopic(w http.ResponseWriter, r *http.Request)
Removes users with given userids from the specified topic
func SetupController ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.