Versions in this module Expand all Collapse all v0 v0.4.0 Mar 30, 2019 Changes in this version + var SNS_MESSAGE_STRUCTURE string = "json" + var WORKER_POOL_SIZE int = 128 + func GetAllNotificationsForTopic(topic string) ([]models.Notification, error) + func GetAllPublicNotifications() ([]models.Notification, error) + func GetAllTopicIDs() ([]string, error) + func GetNotificationOrder(id string) (*models.NotificationOrder, error) + func GetNotificationRecipientArns(userIds []string) ([]string, error) + func GetNotificationRecipients(topicId string) ([]string, error) + func GetSubscriptions(id string) ([]string, error) + func GetTopic(id string) (*models.Topic, error) + func GetUserDevices(id string) ([]string, error) + func GetUserRoles(id string) ([]string, error) + func GetUsersByRole(role string) ([]string, error) + func GetValidRoles() (*models.UserRoleList, error) + func PublishNotificationToTopic(notification models.Notification) (*models.NotificationOrder, error) + func PublishNotificationWorker(notification string, device_arns <-chan string, responses chan<- bool) + func SetUserDevices(id string, devices []string) error + func SubscribeToTopic(userId string, topicId string) error + func UnsubscribeToTopic(userId string, topicId string) error v0.3.0 Feb 27, 2019 Changes in this version + var ERR_DEVICE_NOT_SUBSCRIBED = errors.New("Device not subscribed to topic") + func GetRoles(id string) (*models.UserRoles, error) + func Initialize() error + func UpdateUserSubscriptions(user_id string) (*models.TopicList, error) 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