Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteNotification ¶
func DeleteNotification(messageID string)
DeleteNotification deletes a notification from the list of notifications. Used after the event has started.
func SaveNotification ¶
func SaveNotification(notification Notification) error
Wrapper function for saveNotification that builds the Notification array to be saved.
Types ¶
type Notification ¶
type Notification struct { ChannelID string `json:"channel_id"` Event string `json:"event"` Timestamp time.Time `json:"timestamp"` MessageID string `json:"message_id"` }
func LoadNotifications ¶
func LoadNotifications() ([]Notification, error)
LoadNotifications loads the notifications from the data source.
type Wrapper ¶
type Wrapper struct {
Notifications []Notification `json:"notifications"`
}
Click to show internal directories.
Click to hide internal directories.