controllers

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

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.

Jump to

Keyboard shortcuts

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