controller

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2019 License: NCSA Imports: 7 Imported by: 0

Documentation

Index

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

func SetupController(route *mux.Route)

Types

This section is empty.

Jump to

Keyboard shortcuts

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