notification

package
v3.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

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

Jump to

Keyboard shortcuts

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