Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notification ¶
type NotificationType ¶
type NotificationType string
const ( NotificationTypeUndefined NotificationType = "" CommentNotificationType NotificationType = "comment" ReviewNotificationType NotificationType = "review" RequestedReviewNotificationType NotificationType = "requested_review" NewSuggestionNotificationType NotificationType = "new_suggesion" GitHubRepositoryImported NotificationType = "github_repository_imported" )
type Preference ¶
type Preference struct {
UserID string `db:"user_id"`
Type NotificationType `db:"type"`
Channel Channel `db:"channel"`
Enabled bool `db:"enabled"`
}
Preference is used to determine if user with _UserID_ wants to receive notifications of type _Type_ via _Channel_.
Click to show internal directories.
Click to hide internal directories.