Documentation ¶
Index ¶
Constants ¶
View Source
const ProgramName = "notifier"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DbNotificationRules ¶
type DbNotificationRules struct {
// contains filtered or unexported fields
}
func NewDbNotificationRules ¶
func NewDbNotificationRules(db *sqlx.DB) *DbNotificationRules
func (*DbNotificationRules) FindByProjectUuid ¶
func (self *DbNotificationRules) FindByProjectUuid(projectUuid string) ([]*domain.NotificationRule, error)
type DbScheduler ¶
type DbScheduler struct {
// contains filtered or unexported fields
}
func NewDbScheduler ¶
func NewDbScheduler(db *sqlx.DB) *DbScheduler
func (*DbScheduler) ScheduleNotification ¶
func (self *DbScheduler) ScheduleNotification(rule *domain.NotificationRule, activity *domain.Activity) error
type NotificationRulesStore ¶
type NotificationRulesStore interface {
FindByProjectUuid(projectUuid string) ([]*domain.NotificationRule, error)
}
type Scheduler ¶
type Scheduler interface {
ScheduleNotification(rule *domain.NotificationRule, activity *domain.Activity) error
}
Click to show internal directories.
Click to hide internal directories.