From 4e560878d4df3d3bd76ed9431525d39b7be91f6f Mon Sep 17 00:00:00 2001 From: darius Date: Mon, 27 May 2024 15:13:11 +0200 Subject: [PATCH] refactor folders --- wazuh-notify-go/main.go | 8 ++++---- wazuh-notify-go/services/{readConfig.go => config.go} | 2 +- wazuh-notify-go/services/filters.go | 2 +- wazuh-notify-go/services/flags.go | 2 +- wazuh-notify-go/{ => services}/log/log.go | 0 .../services/{messageBuilder.go => message.go} | 0 wazuh-notify-go/services/wazuhData.go | 2 +- wazuh-notify-go/{ => targets}/discord/discord.go | 0 wazuh-notify-go/{ => targets}/discord/types.go | 0 wazuh-notify-go/{ => targets}/ntfy/ntfy.go | 0 wazuh-notify-go/{ => targets}/ntfy/types.go | 0 wazuh-notify-go/{ => targets}/slack/slack.go | 0 wazuh-notify-go/{ => targets}/slack/types.go | 0 13 files changed, 8 insertions(+), 8 deletions(-) rename wazuh-notify-go/services/{readConfig.go => config.go} (96%) rename wazuh-notify-go/{ => services}/log/log.go (100%) rename wazuh-notify-go/services/{messageBuilder.go => message.go} (100%) rename wazuh-notify-go/{ => targets}/discord/discord.go (100%) rename wazuh-notify-go/{ => targets}/discord/types.go (100%) rename wazuh-notify-go/{ => targets}/ntfy/ntfy.go (100%) rename wazuh-notify-go/{ => targets}/ntfy/types.go (100%) rename wazuh-notify-go/{ => targets}/slack/slack.go (100%) rename wazuh-notify-go/{ => targets}/slack/types.go (100%) diff --git a/wazuh-notify-go/main.go b/wazuh-notify-go/main.go index 85c2abb..c11eb57 100644 --- a/wazuh-notify-go/main.go +++ b/wazuh-notify-go/main.go @@ -2,11 +2,11 @@ package main import ( "strings" - "wazuh-notify/discord" - "wazuh-notify/log" - "wazuh-notify/ntfy" "wazuh-notify/services" - "wazuh-notify/slack" + "wazuh-notify/services/log" + "wazuh-notify/targets/discord" + "wazuh-notify/targets/ntfy" + "wazuh-notify/targets/slack" ) func main() { diff --git a/wazuh-notify-go/services/readConfig.go b/wazuh-notify-go/services/config.go similarity index 96% rename from wazuh-notify-go/services/readConfig.go rename to wazuh-notify-go/services/config.go index 15f68ce..89f0b36 100644 --- a/wazuh-notify-go/services/readConfig.go +++ b/wazuh-notify-go/services/config.go @@ -5,7 +5,7 @@ import ( "github.com/joho/godotenv" "os" "path" - "wazuh-notify/log" + "wazuh-notify/services/log" "wazuh-notify/types" ) diff --git a/wazuh-notify-go/services/filters.go b/wazuh-notify-go/services/filters.go index efd7458..76f5316 100644 --- a/wazuh-notify-go/services/filters.go +++ b/wazuh-notify-go/services/filters.go @@ -3,7 +3,7 @@ package services import ( "os" "strings" - "wazuh-notify/log" + "wazuh-notify/services/log" "wazuh-notify/types" ) diff --git a/wazuh-notify-go/services/flags.go b/wazuh-notify-go/services/flags.go index df76e3b..a95d16b 100644 --- a/wazuh-notify-go/services/flags.go +++ b/wazuh-notify-go/services/flags.go @@ -2,7 +2,7 @@ package services import ( "flag" - "wazuh-notify/log" + "wazuh-notify/services/log" "wazuh-notify/types" ) diff --git a/wazuh-notify-go/log/log.go b/wazuh-notify-go/services/log/log.go similarity index 100% rename from wazuh-notify-go/log/log.go rename to wazuh-notify-go/services/log/log.go diff --git a/wazuh-notify-go/services/messageBuilder.go b/wazuh-notify-go/services/message.go similarity index 100% rename from wazuh-notify-go/services/messageBuilder.go rename to wazuh-notify-go/services/message.go diff --git a/wazuh-notify-go/services/wazuhData.go b/wazuh-notify-go/services/wazuhData.go index ec9093f..8e7a220 100644 --- a/wazuh-notify-go/services/wazuhData.go +++ b/wazuh-notify-go/services/wazuhData.go @@ -6,7 +6,7 @@ import ( "os" "slices" "strings" - "wazuh-notify/log" + "wazuh-notify/services/log" "wazuh-notify/types" ) diff --git a/wazuh-notify-go/discord/discord.go b/wazuh-notify-go/targets/discord/discord.go similarity index 100% rename from wazuh-notify-go/discord/discord.go rename to wazuh-notify-go/targets/discord/discord.go diff --git a/wazuh-notify-go/discord/types.go b/wazuh-notify-go/targets/discord/types.go similarity index 100% rename from wazuh-notify-go/discord/types.go rename to wazuh-notify-go/targets/discord/types.go diff --git a/wazuh-notify-go/ntfy/ntfy.go b/wazuh-notify-go/targets/ntfy/ntfy.go similarity index 100% rename from wazuh-notify-go/ntfy/ntfy.go rename to wazuh-notify-go/targets/ntfy/ntfy.go diff --git a/wazuh-notify-go/ntfy/types.go b/wazuh-notify-go/targets/ntfy/types.go similarity index 100% rename from wazuh-notify-go/ntfy/types.go rename to wazuh-notify-go/targets/ntfy/types.go diff --git a/wazuh-notify-go/slack/slack.go b/wazuh-notify-go/targets/slack/slack.go similarity index 100% rename from wazuh-notify-go/slack/slack.go rename to wazuh-notify-go/targets/slack/slack.go diff --git a/wazuh-notify-go/slack/types.go b/wazuh-notify-go/targets/slack/types.go similarity index 100% rename from wazuh-notify-go/slack/types.go rename to wazuh-notify-go/targets/slack/types.go