From f491052f177d45a42974feca93ed1f5f9879dfed Mon Sep 17 00:00:00 2001 From: gi8 Date: Tue, 18 Jun 2024 07:18:59 +0200 Subject: [PATCH] move resolver in own package --- main.go | 2 +- pkg/notify/notifier/email.go | 2 +- pkg/notify/notifier/msteams.go | 2 +- pkg/notify/notifier/slack.go | 2 +- pkg/{notify => }/resolver/resolver.go | 0 pkg/{notify => }/resolver/resolver_test.go | 0 6 files changed, 4 insertions(+), 4 deletions(-) rename pkg/{notify => }/resolver/resolver.go (100%) rename pkg/{notify => }/resolver/resolver_test.go (100%) diff --git a/main.go b/main.go index 90d50a1..a28befc 100644 --- a/main.go +++ b/main.go @@ -15,7 +15,7 @@ import ( "github.com/alecthomas/kingpin/v2" ) -const version = "0.6.11" +const version = "0.6.12" //go:embed web var templates embed.FS diff --git a/pkg/notify/notifier/email.go b/pkg/notify/notifier/email.go index 1f7deea..d0fbff5 100644 --- a/pkg/notify/notifier/email.go +++ b/pkg/notify/notifier/email.go @@ -3,9 +3,9 @@ package notifier import ( "context" "fmt" - "heartbeats/pkg/notify/resolver" "heartbeats/pkg/notify/services/email" "heartbeats/pkg/notify/utils" + "heartbeats/pkg/resolver" "time" ) diff --git a/pkg/notify/notifier/msteams.go b/pkg/notify/notifier/msteams.go index 008984e..f422b0b 100644 --- a/pkg/notify/notifier/msteams.go +++ b/pkg/notify/notifier/msteams.go @@ -3,9 +3,9 @@ package notifier import ( "context" "fmt" - "heartbeats/pkg/notify/resolver" "heartbeats/pkg/notify/services/msteams" "heartbeats/pkg/notify/utils" + "heartbeats/pkg/resolver" "time" ) diff --git a/pkg/notify/notifier/slack.go b/pkg/notify/notifier/slack.go index eaf283b..c144459 100644 --- a/pkg/notify/notifier/slack.go +++ b/pkg/notify/notifier/slack.go @@ -3,9 +3,9 @@ package notifier import ( "context" "fmt" - "heartbeats/pkg/notify/resolver" "heartbeats/pkg/notify/services/slack" "heartbeats/pkg/notify/utils" + "heartbeats/pkg/resolver" "time" ) diff --git a/pkg/notify/resolver/resolver.go b/pkg/resolver/resolver.go similarity index 100% rename from pkg/notify/resolver/resolver.go rename to pkg/resolver/resolver.go diff --git a/pkg/notify/resolver/resolver_test.go b/pkg/resolver/resolver_test.go similarity index 100% rename from pkg/notify/resolver/resolver_test.go rename to pkg/resolver/resolver_test.go