2024-05-08 01:56:48 +02:00

22 lines
351 B
Go

package main
import (
"strings"
"wazuh-notify/notification"
"wazuh-notify/types"
)
var inputParams types.Params
func main() {
initNotify()
for _, target := range strings.Split(inputParams.Targets, ",") {
switch target {
case "discord":
notification.SendDiscord(inputParams)
case "ntfy":
notification.SendNtfy(inputParams)
}
}
}