Documentation ¶
Index ¶
- 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 GetAllPublicNotifications(w http.ResponseWriter, r *http.Request)
- func GetAllTopics(w http.ResponseWriter, r *http.Request)
- func GetNotificationOrder(w http.ResponseWriter, r *http.Request)
- func GetNotificationsForTopic(w http.ResponseWriter, r *http.Request)
- func PublishNotificationToTopic(w http.ResponseWriter, r *http.Request)
- func RegisterDeviceToUser(w http.ResponseWriter, r *http.Request)
- func SetupController(route *mux.Route)
- func SubscribeToTopic(w http.ResponseWriter, r *http.Request)
- func UnsubscribeToTopic(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTopic ¶
func CreateTopic(w http.ResponseWriter, r *http.Request)
Creates a topic with the given id and returns it
func DeleteTopic ¶
func DeleteTopic(w http.ResponseWriter, r *http.Request)
Deletes the specified topic and returns it
func GetAllNotifications ¶
func GetAllNotifications(w http.ResponseWriter, r *http.Request)
Returns all notifications to topics the user is subscribed to
func GetAllPublicNotifications ¶ added in v0.4.0
func GetAllPublicNotifications(w http.ResponseWriter, r *http.Request)
Returns all public notifications
func GetAllTopics ¶
func GetAllTopics(w http.ResponseWriter, r *http.Request)
Returns all topics that notifications can be published to
func GetNotificationOrder ¶ added in v0.4.0
func GetNotificationOrder(w http.ResponseWriter, r *http.Request)
Returns the notification order with the specified id
func GetNotificationsForTopic ¶
func GetNotificationsForTopic(w http.ResponseWriter, r *http.Request)
Returns all notifications for the specified topic
func PublishNotificationToTopic ¶ added in v0.4.0
func PublishNotificationToTopic(w http.ResponseWriter, r *http.Request)
Publishes a notification to the specied topic and returns the notification
func RegisterDeviceToUser ¶
func RegisterDeviceToUser(w http.ResponseWriter, r *http.Request)
Registered the specified device token to the user
func SetupController ¶
func SubscribeToTopic ¶ added in v0.4.0
func SubscribeToTopic(w http.ResponseWriter, r *http.Request)
Subscribes a user to the specied topic and returns their updated subscriptions
func UnsubscribeToTopic ¶ added in v0.4.0
func UnsubscribeToTopic(w http.ResponseWriter, r *http.Request)
Unsubscribes a user to the specied topic and returns their updated subscriptions
Types ¶
This section is empty.