Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNotifierController ¶
func NewNotifierController( notifierGateway ports.NotifierGateway, discordGateway ports.DiscordGateway, logger l0g.Logger, ) ports.NotifierController
NewNotifierController creates a new instance of the NotifierController.
Types ¶
type NotifierController ¶
type NotifierController struct {
// contains filtered or unexported fields
}
NotifierController handles the logic for sending notifications.
func (*NotifierController) MonitorAlerts ¶
func (c *NotifierController) MonitorAlerts() error
MonitorAlerts continuously checks for new alerts at an interval. If an alert is triggered, the interval is increased.
func (*NotifierController) MonitorDiscord ¶
func (c *NotifierController) MonitorDiscord() error
MonitorDiscord starts monitoring the Discord channel for new messages by adding the message handler. It returns an error if there is an issue adding the message handler.
Click to show internal directories.
Click to hide internal directories.