notification

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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) Notify

func (s *NotificationService) Notify(notifierID string, title string, message string, errorOccurred bool) bool

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

Jump to

Keyboard shortcuts

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