22 lines
351 B
Go
Raw Normal View History

2024-05-08 01:56:48 +02:00
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)
}
}
}