2024-05-09 23:34:39 +02:00

25 lines
430 B
Go

package main
import (
"strings"
"wazuh-notify/log"
"wazuh-notify/notification"
"wazuh-notify/services"
)
func main() {
inputParams := services.InitNotify()
for _, target := range strings.Split(inputParams.Targets, ",") {
switch target {
case "discord":
log.Log(target)
notification.SendDiscord(inputParams)
case "ntfy":
log.Log(target)
notification.SendNtfy(inputParams)
}
}
log.CloseLogFile()
}