Documentation ¶
Index ¶
- Variables
- type NotificationSender
- func (n *NotificationSender) NotifyNewQuant(uploaded bool, quantId string, quantName string, status string, ...)
- func (n *NotificationSender) NotifyNewScan(scanName string, scanId string)
- func (n *NotificationSender) NotifyNewScanImage(scanName string, scanId string, imageName string)
- func (n *NotificationSender) NotifyObjectShared(objectType string, objectId string, objectName, sharerName string)
- func (n *NotificationSender) NotifyUpdatedScan(scanName string, scanId string)
- func (n *NotificationSender) NotifyUserGroupMessage(subject string, message string, notificationType protos.NotificationType, ...)
- func (n *NotificationSender) NotifyUserMessage(subject string, message string, notificationType protos.NotificationType, ...)
- func (n *NotificationSender) SysNotifyQuantChanged(quantId string)
- func (n *NotificationSender) SysNotifyScanChanged(scanId string)
- func (n *NotificationSender) SysNotifyScanImagesChanged(scanIds []string)
Constants ¶
This section is empty.
Variables ¶
View Source
var NOTIF_TOPIC_IMAGE_NEW = "New Image For Dataset"
View Source
var NOTIF_TOPIC_OBJECT_SHARED = "Object Shared"
View Source
var NOTIF_TOPIC_QUANT_COMPLETE = "Qunatification Complete"
View Source
var NOTIF_TOPIC_SCAN_NEW = "New Dataset Available"
NOTE: This must be in sync with the client! It saves user notification settings with topic strings
and these have to match what the UI is setting for the topic field or the user setting lookup will fail and we won't send out that notification
At time of writing, these are defined in:
pixlise-ui\client\src\app\modules\settings\models\notification.model.ts
View Source
var NOTIF_TOPIC_SCAN_UPDATED = "Dataset Updated"
Functions ¶
This section is empty.
Types ¶
type NotificationSender ¶
type NotificationSender struct {
// contains filtered or unexported fields
}
func MakeNotificationSender ¶
func MakeNotificationSender(instanceId string, db *mongo.Database, idgen idgen.IDGenerator, timestamper timestamper.ITimeStamper, log logger.ILogger, envRootURL string, ws *ws.WSHandler, melody *melody.Melody) *NotificationSender
func (*NotificationSender) NotifyNewQuant ¶
func (*NotificationSender) NotifyNewScan ¶
func (n *NotificationSender) NotifyNewScan(scanName string, scanId string)
func (*NotificationSender) NotifyNewScanImage ¶
func (n *NotificationSender) NotifyNewScanImage(scanName string, scanId string, imageName string)
func (*NotificationSender) NotifyObjectShared ¶
func (n *NotificationSender) NotifyObjectShared(objectType string, objectId string, objectName, sharerName string)
func (*NotificationSender) NotifyUpdatedScan ¶
func (n *NotificationSender) NotifyUpdatedScan(scanName string, scanId string)
func (*NotificationSender) NotifyUserGroupMessage ¶
func (n *NotificationSender) NotifyUserGroupMessage(subject string, message string, notificationType protos.NotificationType, actionLink string, groupId string, groupName string, sender string)
func (*NotificationSender) NotifyUserMessage ¶ added in v4.0.2
func (n *NotificationSender) NotifyUserMessage(subject string, message string, notificationType protos.NotificationType, actionLink string, destUserIds []string, sender string)
func (*NotificationSender) SysNotifyQuantChanged ¶
func (n *NotificationSender) SysNotifyQuantChanged(quantId string)
func (*NotificationSender) SysNotifyScanChanged ¶
func (n *NotificationSender) SysNotifyScanChanged(scanId string)
func (*NotificationSender) SysNotifyScanImagesChanged ¶
func (n *NotificationSender) SysNotifyScanImagesChanged(scanIds []string)
Click to show internal directories.
Click to hide internal directories.