Documentation
¶
Index ¶
- type NotificationSender
- type NotificationService
- func (s *NotificationService) Notify(notifierID string, title string, message string, errorOccurred bool) bool
- func (s *NotificationService) NotifyToDefault(message string) bool
- func (s *NotificationService) NotifyWithErrorToDefault(message string) bool
- func (s *NotificationService) NotifyWithTaskContext(notifierID string, message string, taskCtx task.TaskContext) bool
- func (s *NotificationService) Run(serviceStopCtx context.Context, serviceStopWaiter *sync.WaitGroup)
- func (s *NotificationService) SupportHTMLMessage(notifierID string) bool
- type NotifierID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NotificationSender ¶
type NotificationSender interface {
Notify(notifierID string, title string, message string, errorOccurred bool) bool
NotifyToDefault(message string) bool
NotifyWithErrorToDefault(message string) bool
}
NotificationSender
type NotificationService ¶
type NotificationService struct {
// contains filtered or unexported fields
}
NotificationService
func NewService ¶
func NewService(config *g.AppConfig, taskRunner task.TaskRunner) *NotificationService
func (*NotificationService) NotifyToDefault ¶
func (s *NotificationService) NotifyToDefault(message string) bool
func (*NotificationService) NotifyWithErrorToDefault ¶
func (s *NotificationService) NotifyWithErrorToDefault(message string) bool
func (*NotificationService) NotifyWithTaskContext ¶
func (s *NotificationService) NotifyWithTaskContext(notifierID string, message string, taskCtx task.TaskContext) bool
func (*NotificationService) Run ¶
func (s *NotificationService) Run(serviceStopCtx context.Context, serviceStopWaiter *sync.WaitGroup)
func (*NotificationService) SupportHTMLMessage ¶
func (s *NotificationService) SupportHTMLMessage(notifierID string) bool
type NotifierID ¶
type NotifierID string
Click to show internal directories.
Click to hide internal directories.