Documentation ¶
Index ¶
Constants ¶
View Source
const ( // statuses for standup notification in a channel ChannelNotificationStatusSent = "sent" ChannelNotificationStatusNotYet = "not_yet" ChannelNotificationStatusSend = "send" // standup report visibilities ReportVisibilityPublic = "public" ReportVisibilityPrivate = "private" )
Variables ¶
This section is empty.
Functions ¶
func SendNotificationsAndReports ¶
func SendNotificationsAndReports() error
SendNotificationsAndReports checks for all standup channels and sends notifications and standup reports as needed. This is the entry point of the whole standup cycle.
func SendStandupReport ¶
func SendStandupReport(channelIDs []string, date otime.OTime, visibility string, userId string, updateStatus bool) error
SendStandupReport sends standup report for all channel IDs specified
func SetNotificationStatus ¶
func SetNotificationStatus(channelID string, status *ChannelNotificationStatus) error
SetNotificationStatus sets provided notification status for the specified channel ID.
Types ¶
type ChannelNotificationStatus ¶
type ChannelNotificationStatus struct { WindowOpenNotificationSent bool `json:"windowOpenNotificationSent"` WindowCloseNotificationSent bool `json:"windowCloseNotificationSent"` StandupReportSent bool `json:"standupReportSent"` }
func GetNotificationStatus ¶
func GetNotificationStatus(channelID string) (*ChannelNotificationStatus, error)
GetNotificationStatus gets the notification status for specified channel
Click to show internal directories.
Click to hide internal directories.