Versions in this module Expand all Collapse all v0 v0.2.0 Jan 11, 2019 Changes in this version + const APPLICATION_PROTOCOL + const MESSAGE_STRUCTURE + func AddUsersToTopic(topic_name string, userid_list models.UserIDList) error + func CreateTopic(name string) error + func DeleteTopic(name string) error + func GenerateNotificationJson(notification models.Notification) (*string, error) + func GetAllDevices() (*[]models.Device, error) + func GetAllNotifications() (*models.NotificationList, error) + func GetAllTopics() (*models.TopicList, error) + func GetNotificationsForTopic(topic_name string) (*models.NotificationList, error) + func GetTopicInfo(name string) (*models.Topic, error) + func PublishNotification(topic_name string, notification models.Notification) (*models.PastNotification, error) + func RegisterDeviceToUser(user_id string, device_reg models.DeviceRegistration) error + func RemoveUsersFromTopic(topic_name string, userid_list models.UserIDList) error + func SubscribeDeviceToTopic(topic models.Topic, device models.Device) error + func UnsubscribeDeviceFromTopic(topic models.Topic, device models.Device) error