controller

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2019 License: NCSA Imports: 9 Imported by: 0

Documentation

Index

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 SetupController(route *mux.Route)

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.

Jump to

Keyboard shortcuts

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