From f6a621da285dd43b3207ec21e4101b4b11eff6c5 Mon Sep 17 00:00:00 2001 From: TwiN Date: Tue, 6 Dec 2022 01:41:09 -0500 Subject: [PATCH] chore: Bump module version to v5 --- alerting/config.go | 32 +++++++------- alerting/provider/custom/custom.go | 6 +-- alerting/provider/custom/custom_test.go | 8 ++-- alerting/provider/discord/discord.go | 6 +-- alerting/provider/discord/discord_test.go | 8 ++-- alerting/provider/email/email.go | 4 +- alerting/provider/email/email_test.go | 4 +- alerting/provider/googlechat/googlechat.go | 6 +-- .../provider/googlechat/googlechat_test.go | 8 ++-- alerting/provider/matrix/matrix.go | 6 +-- alerting/provider/matrix/matrix_test.go | 8 ++-- alerting/provider/mattermost/mattermost.go | 6 +-- .../provider/mattermost/mattermost_test.go | 8 ++-- alerting/provider/messagebird/messagebird.go | 6 +-- .../provider/messagebird/messagebird_test.go | 8 ++-- alerting/provider/ntfy/ntfy.go | 6 +-- alerting/provider/ntfy/ntfy_test.go | 4 +- alerting/provider/opsgenie/opsgenie.go | 6 +-- alerting/provider/opsgenie/opsgenie_test.go | 8 ++-- alerting/provider/pagerduty/pagerduty.go | 6 +-- alerting/provider/pagerduty/pagerduty_test.go | 8 ++-- alerting/provider/provider.go | 32 +++++++------- alerting/provider/provider_test.go | 2 +- alerting/provider/slack/slack.go | 6 +-- alerting/provider/slack/slack_test.go | 8 ++-- alerting/provider/teams/teams.go | 6 +-- alerting/provider/teams/teams_test.go | 8 ++-- alerting/provider/telegram/telegram.go | 6 +-- alerting/provider/telegram/telegram_test.go | 8 ++-- alerting/provider/twilio/twilio.go | 6 +-- alerting/provider/twilio/twilio_test.go | 4 +- client/client_test.go | 2 +- config/config.go | 22 +++++----- config/config_test.go | 42 +++++++++---------- config/remote/remote.go | 2 +- config/ui/ui.go | 2 +- controller/controller.go | 4 +- controller/controller_test.go | 6 +-- controller/handler/badge.go | 8 ++-- controller/handler/badge_test.go | 10 ++--- controller/handler/chart.go | 4 +- controller/handler/chart_test.go | 8 ++-- controller/handler/config.go | 2 +- controller/handler/config_test.go | 2 +- controller/handler/endpoint_status.go | 14 +++---- controller/handler/endpoint_status_test.go | 8 ++-- controller/handler/handler.go | 4 +- controller/handler/handler_test.go | 2 +- controller/handler/spa.go | 4 +- controller/handler/spa_test.go | 8 ++-- controller/handler/util.go | 2 +- core/condition.go | 6 +-- core/dns_test.go | 2 +- core/endpoint.go | 8 ++-- core/endpoint_status.go | 2 +- core/endpoint_test.go | 8 ++-- go.mod | 2 +- main.go | 10 ++--- metrics/metrics.go | 2 +- metrics/metrics_test.go | 2 +- storage/store/memory/memory.go | 8 ++-- storage/store/memory/memory_test.go | 4 +- storage/store/memory/uptime.go | 2 +- storage/store/memory/uptime_bench_test.go | 2 +- storage/store/memory/uptime_test.go | 2 +- storage/store/memory/util.go | 6 +-- storage/store/memory/util_bench_test.go | 6 +-- storage/store/memory/util_test.go | 6 +-- storage/store/sql/sql.go | 8 ++-- storage/store/sql/sql_test.go | 6 +-- storage/store/store.go | 10 ++--- storage/store/store_bench_test.go | 8 ++-- storage/store/store_test.go | 12 +++--- watchdog/alerting.go | 4 +- watchdog/alerting_test.go | 30 ++++++------- watchdog/watchdog.go | 12 +++--- 76 files changed, 286 insertions(+), 286 deletions(-) diff --git a/alerting/config.go b/alerting/config.go index 90f7dee7..c19c394d 100644 --- a/alerting/config.go +++ b/alerting/config.go @@ -1,22 +1,22 @@ package alerting import ( - "github.com/TwiN/gatus/v4/alerting/alert" - "github.com/TwiN/gatus/v4/alerting/provider" - "github.com/TwiN/gatus/v4/alerting/provider/custom" - "github.com/TwiN/gatus/v4/alerting/provider/discord" - "github.com/TwiN/gatus/v4/alerting/provider/email" - "github.com/TwiN/gatus/v4/alerting/provider/googlechat" - "github.com/TwiN/gatus/v4/alerting/provider/matrix" - "github.com/TwiN/gatus/v4/alerting/provider/mattermost" - "github.com/TwiN/gatus/v4/alerting/provider/messagebird" - "github.com/TwiN/gatus/v4/alerting/provider/ntfy" - "github.com/TwiN/gatus/v4/alerting/provider/opsgenie" - "github.com/TwiN/gatus/v4/alerting/provider/pagerduty" - "github.com/TwiN/gatus/v4/alerting/provider/slack" - "github.com/TwiN/gatus/v4/alerting/provider/teams" - "github.com/TwiN/gatus/v4/alerting/provider/telegram" - "github.com/TwiN/gatus/v4/alerting/provider/twilio" + "github.com/TwiN/gatus/v5/alerting/alert" + "github.com/TwiN/gatus/v5/alerting/provider" + "github.com/TwiN/gatus/v5/alerting/provider/custom" + "github.com/TwiN/gatus/v5/alerting/provider/discord" + "github.com/TwiN/gatus/v5/alerting/provider/email" + "github.com/TwiN/gatus/v5/alerting/provider/googlechat" + "github.com/TwiN/gatus/v5/alerting/provider/matrix" + "github.com/TwiN/gatus/v5/alerting/provider/mattermost" + "github.com/TwiN/gatus/v5/alerting/provider/messagebird" + "github.com/TwiN/gatus/v5/alerting/provider/ntfy" + "github.com/TwiN/gatus/v5/alerting/provider/opsgenie" + "github.com/TwiN/gatus/v5/alerting/provider/pagerduty" + "github.com/TwiN/gatus/v5/alerting/provider/slack" + "github.com/TwiN/gatus/v5/alerting/provider/teams" + "github.com/TwiN/gatus/v5/alerting/provider/telegram" + "github.com/TwiN/gatus/v5/alerting/provider/twilio" ) // Config is the configuration for alerting providers diff --git a/alerting/provider/custom/custom.go b/alerting/provider/custom/custom.go index 7a4e6874..ffc5105c 100644 --- a/alerting/provider/custom/custom.go +++ b/alerting/provider/custom/custom.go @@ -7,9 +7,9 @@ import ( "net/http" "strings" - "github.com/TwiN/gatus/v4/alerting/alert" - "github.com/TwiN/gatus/v4/client" - "github.com/TwiN/gatus/v4/core" + "github.com/TwiN/gatus/v5/alerting/alert" + "github.com/TwiN/gatus/v5/client" + "github.com/TwiN/gatus/v5/core" ) // AlertProvider is the configuration necessary for sending an alert using a custom HTTP request diff --git a/alerting/provider/custom/custom_test.go b/alerting/provider/custom/custom_test.go index 7b336d90..375f9d48 100644 --- a/alerting/provider/custom/custom_test.go +++ b/alerting/provider/custom/custom_test.go @@ -6,10 +6,10 @@ import ( "net/http" "testing" - "github.com/TwiN/gatus/v4/alerting/alert" - "github.com/TwiN/gatus/v4/client" - "github.com/TwiN/gatus/v4/core" - "github.com/TwiN/gatus/v4/test" + "github.com/TwiN/gatus/v5/alerting/alert" + "github.com/TwiN/gatus/v5/client" + "github.com/TwiN/gatus/v5/core" + "github.com/TwiN/gatus/v5/test" ) func TestAlertProvider_IsValid(t *testing.T) { diff --git a/alerting/provider/discord/discord.go b/alerting/provider/discord/discord.go index 8bcfd394..e96be69e 100644 --- a/alerting/provider/discord/discord.go +++ b/alerting/provider/discord/discord.go @@ -7,9 +7,9 @@ import ( "io" "net/http" - "github.com/TwiN/gatus/v4/alerting/alert" - "github.com/TwiN/gatus/v4/client" - "github.com/TwiN/gatus/v4/core" + "github.com/TwiN/gatus/v5/alerting/alert" + "github.com/TwiN/gatus/v5/client" + "github.com/TwiN/gatus/v5/core" ) // AlertProvider is the configuration necessary for sending an alert using Discord diff --git a/alerting/provider/discord/discord_test.go b/alerting/provider/discord/discord_test.go index be1fe753..01cd8cd0 100644 --- a/alerting/provider/discord/discord_test.go +++ b/alerting/provider/discord/discord_test.go @@ -5,10 +5,10 @@ import ( "net/http" "testing" - "github.com/TwiN/gatus/v4/alerting/alert" - "github.com/TwiN/gatus/v4/client" - "github.com/TwiN/gatus/v4/core" - "github.com/TwiN/gatus/v4/test" + "github.com/TwiN/gatus/v5/alerting/alert" + "github.com/TwiN/gatus/v5/client" + "github.com/TwiN/gatus/v5/core" + "github.com/TwiN/gatus/v5/test" ) func TestAlertProvider_IsValid(t *testing.T) { diff --git a/alerting/provider/email/email.go b/alerting/provider/email/email.go index ddc8d324..e16f8e37 100644 --- a/alerting/provider/email/email.go +++ b/alerting/provider/email/email.go @@ -5,8 +5,8 @@ import ( "math" "strings" - "github.com/TwiN/gatus/v4/alerting/alert" - "github.com/TwiN/gatus/v4/core" + "github.com/TwiN/gatus/v5/alerting/alert" + "github.com/TwiN/gatus/v5/core" gomail "gopkg.in/mail.v2" ) diff --git a/alerting/provider/email/email_test.go b/alerting/provider/email/email_test.go index d5d526fc..e409ca05 100644 --- a/alerting/provider/email/email_test.go +++ b/alerting/provider/email/email_test.go @@ -3,8 +3,8 @@ package email import ( "testing" - "github.com/TwiN/gatus/v4/alerting/alert" - "github.com/TwiN/gatus/v4/core" + "github.com/TwiN/gatus/v5/alerting/alert" + "github.com/TwiN/gatus/v5/core" ) func TestAlertDefaultProvider_IsValid(t *testing.T) { diff --git a/alerting/provider/googlechat/googlechat.go b/alerting/provider/googlechat/googlechat.go index 06b5f7ee..0b2ec337 100644 --- a/alerting/provider/googlechat/googlechat.go +++ b/alerting/provider/googlechat/googlechat.go @@ -7,9 +7,9 @@ import ( "io" "net/http" - "github.com/TwiN/gatus/v4/alerting/alert" - "github.com/TwiN/gatus/v4/client" - "github.com/TwiN/gatus/v4/core" + "github.com/TwiN/gatus/v5/alerting/alert" + "github.com/TwiN/gatus/v5/client" + "github.com/TwiN/gatus/v5/core" ) // AlertProvider is the configuration necessary for sending an alert using Google chat diff --git a/alerting/provider/googlechat/googlechat_test.go b/alerting/provider/googlechat/googlechat_test.go index 4ccf7b2d..d12592f3 100644 --- a/alerting/provider/googlechat/googlechat_test.go +++ b/alerting/provider/googlechat/googlechat_test.go @@ -5,10 +5,10 @@ import ( "net/http" "testing" - "github.com/TwiN/gatus/v4/alerting/alert" - "github.com/TwiN/gatus/v4/client" - "github.com/TwiN/gatus/v4/core" - "github.com/TwiN/gatus/v4/test" + "github.com/TwiN/gatus/v5/alerting/alert" + "github.com/TwiN/gatus/v5/client" + "github.com/TwiN/gatus/v5/core" + "github.com/TwiN/gatus/v5/test" ) func TestAlertDefaultProvider_IsValid(t *testing.T) { diff --git a/alerting/provider/matrix/matrix.go b/alerting/provider/matrix/matrix.go index 7fcc59c5..749a9965 100644 --- a/alerting/provider/matrix/matrix.go +++ b/alerting/provider/matrix/matrix.go @@ -10,9 +10,9 @@ import ( "net/url" "time" - "github.com/TwiN/gatus/v4/alerting/alert" - "github.com/TwiN/gatus/v4/client" - "github.com/TwiN/gatus/v4/core" + "github.com/TwiN/gatus/v5/alerting/alert" + "github.com/TwiN/gatus/v5/client" + "github.com/TwiN/gatus/v5/core" ) // AlertProvider is the configuration necessary for sending an alert using Matrix diff --git a/alerting/provider/matrix/matrix_test.go b/alerting/provider/matrix/matrix_test.go index 7241d989..d1c02a3c 100644 --- a/alerting/provider/matrix/matrix_test.go +++ b/alerting/provider/matrix/matrix_test.go @@ -5,10 +5,10 @@ import ( "net/http" "testing" - "github.com/TwiN/gatus/v4/alerting/alert" - "github.com/TwiN/gatus/v4/client" - "github.com/TwiN/gatus/v4/core" - "github.com/TwiN/gatus/v4/test" + "github.com/TwiN/gatus/v5/alerting/alert" + "github.com/TwiN/gatus/v5/client" + "github.com/TwiN/gatus/v5/core" + "github.com/TwiN/gatus/v5/test" ) func TestAlertProvider_IsValid(t *testing.T) { diff --git a/alerting/provider/mattermost/mattermost.go b/alerting/provider/mattermost/mattermost.go index 07a41d3c..79a1a733 100644 --- a/alerting/provider/mattermost/mattermost.go +++ b/alerting/provider/mattermost/mattermost.go @@ -7,9 +7,9 @@ import ( "io" "net/http" - "github.com/TwiN/gatus/v4/alerting/alert" - "github.com/TwiN/gatus/v4/client" - "github.com/TwiN/gatus/v4/core" + "github.com/TwiN/gatus/v5/alerting/alert" + "github.com/TwiN/gatus/v5/client" + "github.com/TwiN/gatus/v5/core" ) // AlertProvider is the configuration necessary for sending an alert using Mattermost diff --git a/alerting/provider/mattermost/mattermost_test.go b/alerting/provider/mattermost/mattermost_test.go index 481612e9..2723d2fa 100644 --- a/alerting/provider/mattermost/mattermost_test.go +++ b/alerting/provider/mattermost/mattermost_test.go @@ -5,10 +5,10 @@ import ( "net/http" "testing" - "github.com/TwiN/gatus/v4/alerting/alert" - "github.com/TwiN/gatus/v4/client" - "github.com/TwiN/gatus/v4/core" - "github.com/TwiN/gatus/v4/test" + "github.com/TwiN/gatus/v5/alerting/alert" + "github.com/TwiN/gatus/v5/client" + "github.com/TwiN/gatus/v5/core" + "github.com/TwiN/gatus/v5/test" ) func TestAlertProvider_IsValid(t *testing.T) { diff --git a/alerting/provider/messagebird/messagebird.go b/alerting/provider/messagebird/messagebird.go index a0581757..7c9c631c 100644 --- a/alerting/provider/messagebird/messagebird.go +++ b/alerting/provider/messagebird/messagebird.go @@ -7,9 +7,9 @@ import ( "io" "net/http" - "github.com/TwiN/gatus/v4/alerting/alert" - "github.com/TwiN/gatus/v4/client" - "github.com/TwiN/gatus/v4/core" + "github.com/TwiN/gatus/v5/alerting/alert" + "github.com/TwiN/gatus/v5/client" + "github.com/TwiN/gatus/v5/core" ) const ( diff --git a/alerting/provider/messagebird/messagebird_test.go b/alerting/provider/messagebird/messagebird_test.go index dc1170b5..47e56654 100644 --- a/alerting/provider/messagebird/messagebird_test.go +++ b/alerting/provider/messagebird/messagebird_test.go @@ -5,10 +5,10 @@ import ( "net/http" "testing" - "github.com/TwiN/gatus/v4/alerting/alert" - "github.com/TwiN/gatus/v4/client" - "github.com/TwiN/gatus/v4/core" - "github.com/TwiN/gatus/v4/test" + "github.com/TwiN/gatus/v5/alerting/alert" + "github.com/TwiN/gatus/v5/client" + "github.com/TwiN/gatus/v5/core" + "github.com/TwiN/gatus/v5/test" ) func TestMessagebirdAlertProvider_IsValid(t *testing.T) { diff --git a/alerting/provider/ntfy/ntfy.go b/alerting/provider/ntfy/ntfy.go index e6d3ee59..16caeffd 100644 --- a/alerting/provider/ntfy/ntfy.go +++ b/alerting/provider/ntfy/ntfy.go @@ -8,9 +8,9 @@ import ( "net/http" "strconv" - "github.com/TwiN/gatus/v4/alerting/alert" - "github.com/TwiN/gatus/v4/client" - "github.com/TwiN/gatus/v4/core" + "github.com/TwiN/gatus/v5/alerting/alert" + "github.com/TwiN/gatus/v5/client" + "github.com/TwiN/gatus/v5/core" ) const ( diff --git a/alerting/provider/ntfy/ntfy_test.go b/alerting/provider/ntfy/ntfy_test.go index 8bd4b5de..4c402477 100644 --- a/alerting/provider/ntfy/ntfy_test.go +++ b/alerting/provider/ntfy/ntfy_test.go @@ -4,8 +4,8 @@ import ( "encoding/json" "testing" - "github.com/TwiN/gatus/v4/alerting/alert" - "github.com/TwiN/gatus/v4/core" + "github.com/TwiN/gatus/v5/alerting/alert" + "github.com/TwiN/gatus/v5/core" ) func TestAlertDefaultProvider_IsValid(t *testing.T) { diff --git a/alerting/provider/opsgenie/opsgenie.go b/alerting/provider/opsgenie/opsgenie.go index 9913fba4..5e018ee9 100644 --- a/alerting/provider/opsgenie/opsgenie.go +++ b/alerting/provider/opsgenie/opsgenie.go @@ -9,9 +9,9 @@ import ( "strconv" "strings" - "github.com/TwiN/gatus/v4/alerting/alert" - "github.com/TwiN/gatus/v4/client" - "github.com/TwiN/gatus/v4/core" + "github.com/TwiN/gatus/v5/alerting/alert" + "github.com/TwiN/gatus/v5/client" + "github.com/TwiN/gatus/v5/core" ) const ( diff --git a/alerting/provider/opsgenie/opsgenie_test.go b/alerting/provider/opsgenie/opsgenie_test.go index d2e12963..ab054b86 100644 --- a/alerting/provider/opsgenie/opsgenie_test.go +++ b/alerting/provider/opsgenie/opsgenie_test.go @@ -5,10 +5,10 @@ import ( "reflect" "testing" - "github.com/TwiN/gatus/v4/alerting/alert" - "github.com/TwiN/gatus/v4/client" - "github.com/TwiN/gatus/v4/core" - "github.com/TwiN/gatus/v4/test" + "github.com/TwiN/gatus/v5/alerting/alert" + "github.com/TwiN/gatus/v5/client" + "github.com/TwiN/gatus/v5/core" + "github.com/TwiN/gatus/v5/test" ) func TestAlertProvider_IsValid(t *testing.T) { diff --git a/alerting/provider/pagerduty/pagerduty.go b/alerting/provider/pagerduty/pagerduty.go index 1a6c34fa..ea13d904 100644 --- a/alerting/provider/pagerduty/pagerduty.go +++ b/alerting/provider/pagerduty/pagerduty.go @@ -8,9 +8,9 @@ import ( "log" "net/http" - "github.com/TwiN/gatus/v4/alerting/alert" - "github.com/TwiN/gatus/v4/client" - "github.com/TwiN/gatus/v4/core" + "github.com/TwiN/gatus/v5/alerting/alert" + "github.com/TwiN/gatus/v5/client" + "github.com/TwiN/gatus/v5/core" ) const ( diff --git a/alerting/provider/pagerduty/pagerduty_test.go b/alerting/provider/pagerduty/pagerduty_test.go index 2362ffbf..2c7ab8d2 100644 --- a/alerting/provider/pagerduty/pagerduty_test.go +++ b/alerting/provider/pagerduty/pagerduty_test.go @@ -5,10 +5,10 @@ import ( "net/http" "testing" - "github.com/TwiN/gatus/v4/alerting/alert" - "github.com/TwiN/gatus/v4/client" - "github.com/TwiN/gatus/v4/core" - "github.com/TwiN/gatus/v4/test" + "github.com/TwiN/gatus/v5/alerting/alert" + "github.com/TwiN/gatus/v5/client" + "github.com/TwiN/gatus/v5/core" + "github.com/TwiN/gatus/v5/test" ) func TestAlertProvider_IsValid(t *testing.T) { diff --git a/alerting/provider/provider.go b/alerting/provider/provider.go index b7afb0d8..008031d6 100644 --- a/alerting/provider/provider.go +++ b/alerting/provider/provider.go @@ -1,22 +1,22 @@ package provider import ( - "github.com/TwiN/gatus/v4/alerting/alert" - "github.com/TwiN/gatus/v4/alerting/provider/custom" - "github.com/TwiN/gatus/v4/alerting/provider/discord" - "github.com/TwiN/gatus/v4/alerting/provider/email" - "github.com/TwiN/gatus/v4/alerting/provider/googlechat" - "github.com/TwiN/gatus/v4/alerting/provider/matrix" - "github.com/TwiN/gatus/v4/alerting/provider/mattermost" - "github.com/TwiN/gatus/v4/alerting/provider/messagebird" - "github.com/TwiN/gatus/v4/alerting/provider/ntfy" - "github.com/TwiN/gatus/v4/alerting/provider/opsgenie" - "github.com/TwiN/gatus/v4/alerting/provider/pagerduty" - "github.com/TwiN/gatus/v4/alerting/provider/slack" - "github.com/TwiN/gatus/v4/alerting/provider/teams" - "github.com/TwiN/gatus/v4/alerting/provider/telegram" - "github.com/TwiN/gatus/v4/alerting/provider/twilio" - "github.com/TwiN/gatus/v4/core" + "github.com/TwiN/gatus/v5/alerting/alert" + "github.com/TwiN/gatus/v5/alerting/provider/custom" + "github.com/TwiN/gatus/v5/alerting/provider/discord" + "github.com/TwiN/gatus/v5/alerting/provider/email" + "github.com/TwiN/gatus/v5/alerting/provider/googlechat" + "github.com/TwiN/gatus/v5/alerting/provider/matrix" + "github.com/TwiN/gatus/v5/alerting/provider/mattermost" + "github.com/TwiN/gatus/v5/alerting/provider/messagebird" + "github.com/TwiN/gatus/v5/alerting/provider/ntfy" + "github.com/TwiN/gatus/v5/alerting/provider/opsgenie" + "github.com/TwiN/gatus/v5/alerting/provider/pagerduty" + "github.com/TwiN/gatus/v5/alerting/provider/slack" + "github.com/TwiN/gatus/v5/alerting/provider/teams" + "github.com/TwiN/gatus/v5/alerting/provider/telegram" + "github.com/TwiN/gatus/v5/alerting/provider/twilio" + "github.com/TwiN/gatus/v5/core" ) // AlertProvider is the interface that each providers should implement diff --git a/alerting/provider/provider_test.go b/alerting/provider/provider_test.go index beaa456b..bb804e45 100644 --- a/alerting/provider/provider_test.go +++ b/alerting/provider/provider_test.go @@ -3,7 +3,7 @@ package provider import ( "testing" - "github.com/TwiN/gatus/v4/alerting/alert" + "github.com/TwiN/gatus/v5/alerting/alert" ) func TestParseWithDefaultAlert(t *testing.T) { diff --git a/alerting/provider/slack/slack.go b/alerting/provider/slack/slack.go index 25b31e6a..5cf54eea 100644 --- a/alerting/provider/slack/slack.go +++ b/alerting/provider/slack/slack.go @@ -7,9 +7,9 @@ import ( "io" "net/http" - "github.com/TwiN/gatus/v4/alerting/alert" - "github.com/TwiN/gatus/v4/client" - "github.com/TwiN/gatus/v4/core" + "github.com/TwiN/gatus/v5/alerting/alert" + "github.com/TwiN/gatus/v5/client" + "github.com/TwiN/gatus/v5/core" ) // AlertProvider is the configuration necessary for sending an alert using Slack diff --git a/alerting/provider/slack/slack_test.go b/alerting/provider/slack/slack_test.go index aa1dc763..5471fc3b 100644 --- a/alerting/provider/slack/slack_test.go +++ b/alerting/provider/slack/slack_test.go @@ -5,10 +5,10 @@ import ( "net/http" "testing" - "github.com/TwiN/gatus/v4/alerting/alert" - "github.com/TwiN/gatus/v4/client" - "github.com/TwiN/gatus/v4/core" - "github.com/TwiN/gatus/v4/test" + "github.com/TwiN/gatus/v5/alerting/alert" + "github.com/TwiN/gatus/v5/client" + "github.com/TwiN/gatus/v5/core" + "github.com/TwiN/gatus/v5/test" ) func TestAlertDefaultProvider_IsValid(t *testing.T) { diff --git a/alerting/provider/teams/teams.go b/alerting/provider/teams/teams.go index 0ada941b..cd654d70 100644 --- a/alerting/provider/teams/teams.go +++ b/alerting/provider/teams/teams.go @@ -7,9 +7,9 @@ import ( "io" "net/http" - "github.com/TwiN/gatus/v4/alerting/alert" - "github.com/TwiN/gatus/v4/client" - "github.com/TwiN/gatus/v4/core" + "github.com/TwiN/gatus/v5/alerting/alert" + "github.com/TwiN/gatus/v5/client" + "github.com/TwiN/gatus/v5/core" ) // AlertProvider is the configuration necessary for sending an alert using Teams diff --git a/alerting/provider/teams/teams_test.go b/alerting/provider/teams/teams_test.go index c3ab998c..3cec8089 100644 --- a/alerting/provider/teams/teams_test.go +++ b/alerting/provider/teams/teams_test.go @@ -5,10 +5,10 @@ import ( "net/http" "testing" - "github.com/TwiN/gatus/v4/alerting/alert" - "github.com/TwiN/gatus/v4/client" - "github.com/TwiN/gatus/v4/core" - "github.com/TwiN/gatus/v4/test" + "github.com/TwiN/gatus/v5/alerting/alert" + "github.com/TwiN/gatus/v5/client" + "github.com/TwiN/gatus/v5/core" + "github.com/TwiN/gatus/v5/test" ) func TestAlertDefaultProvider_IsValid(t *testing.T) { diff --git a/alerting/provider/telegram/telegram.go b/alerting/provider/telegram/telegram.go index 63385e20..a5edc12d 100644 --- a/alerting/provider/telegram/telegram.go +++ b/alerting/provider/telegram/telegram.go @@ -7,9 +7,9 @@ import ( "io" "net/http" - "github.com/TwiN/gatus/v4/alerting/alert" - "github.com/TwiN/gatus/v4/client" - "github.com/TwiN/gatus/v4/core" + "github.com/TwiN/gatus/v5/alerting/alert" + "github.com/TwiN/gatus/v5/client" + "github.com/TwiN/gatus/v5/core" ) const defaultAPIURL = "https://api.telegram.org" diff --git a/alerting/provider/telegram/telegram_test.go b/alerting/provider/telegram/telegram_test.go index 5e00bd3b..cde8fd30 100644 --- a/alerting/provider/telegram/telegram_test.go +++ b/alerting/provider/telegram/telegram_test.go @@ -5,10 +5,10 @@ import ( "net/http" "testing" - "github.com/TwiN/gatus/v4/alerting/alert" - "github.com/TwiN/gatus/v4/client" - "github.com/TwiN/gatus/v4/core" - "github.com/TwiN/gatus/v4/test" + "github.com/TwiN/gatus/v5/alerting/alert" + "github.com/TwiN/gatus/v5/client" + "github.com/TwiN/gatus/v5/core" + "github.com/TwiN/gatus/v5/test" ) func TestAlertProvider_IsValid(t *testing.T) { diff --git a/alerting/provider/twilio/twilio.go b/alerting/provider/twilio/twilio.go index 546ed2d6..7b927a73 100644 --- a/alerting/provider/twilio/twilio.go +++ b/alerting/provider/twilio/twilio.go @@ -8,9 +8,9 @@ import ( "net/http" "net/url" - "github.com/TwiN/gatus/v4/alerting/alert" - "github.com/TwiN/gatus/v4/client" - "github.com/TwiN/gatus/v4/core" + "github.com/TwiN/gatus/v5/alerting/alert" + "github.com/TwiN/gatus/v5/client" + "github.com/TwiN/gatus/v5/core" ) // AlertProvider is the configuration necessary for sending an alert using Twilio diff --git a/alerting/provider/twilio/twilio_test.go b/alerting/provider/twilio/twilio_test.go index a21f894d..362c6d23 100644 --- a/alerting/provider/twilio/twilio_test.go +++ b/alerting/provider/twilio/twilio_test.go @@ -3,8 +3,8 @@ package twilio import ( "testing" - "github.com/TwiN/gatus/v4/alerting/alert" - "github.com/TwiN/gatus/v4/core" + "github.com/TwiN/gatus/v5/alerting/alert" + "github.com/TwiN/gatus/v5/core" ) func TestTwilioAlertProvider_IsValid(t *testing.T) { diff --git a/client/client_test.go b/client/client_test.go index 66a81f54..abca9f5c 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - "github.com/TwiN/gatus/v4/test" + "github.com/TwiN/gatus/v5/test" ) func TestGetHTTPClient(t *testing.T) { diff --git a/config/config.go b/config/config.go index 16f0ae74..9040d936 100644 --- a/config/config.go +++ b/config/config.go @@ -7,17 +7,17 @@ import ( "os" "time" - "github.com/TwiN/gatus/v4/alerting" - "github.com/TwiN/gatus/v4/alerting/alert" - "github.com/TwiN/gatus/v4/alerting/provider" - "github.com/TwiN/gatus/v4/config/maintenance" - "github.com/TwiN/gatus/v4/config/remote" - "github.com/TwiN/gatus/v4/config/ui" - "github.com/TwiN/gatus/v4/config/web" - "github.com/TwiN/gatus/v4/core" - "github.com/TwiN/gatus/v4/security" - "github.com/TwiN/gatus/v4/storage" - "github.com/TwiN/gatus/v4/util" + "github.com/TwiN/gatus/v5/alerting" + "github.com/TwiN/gatus/v5/alerting/alert" + "github.com/TwiN/gatus/v5/alerting/provider" + "github.com/TwiN/gatus/v5/config/maintenance" + "github.com/TwiN/gatus/v5/config/remote" + "github.com/TwiN/gatus/v5/config/ui" + "github.com/TwiN/gatus/v5/config/web" + "github.com/TwiN/gatus/v5/core" + "github.com/TwiN/gatus/v5/security" + "github.com/TwiN/gatus/v5/storage" + "github.com/TwiN/gatus/v5/util" "gopkg.in/yaml.v2" ) diff --git a/config/config_test.go b/config/config_test.go index b8379801..df880f8d 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -5,27 +5,27 @@ import ( "testing" "time" - "github.com/TwiN/gatus/v4/alerting" - "github.com/TwiN/gatus/v4/alerting/alert" - "github.com/TwiN/gatus/v4/alerting/provider" - "github.com/TwiN/gatus/v4/alerting/provider/custom" - "github.com/TwiN/gatus/v4/alerting/provider/discord" - "github.com/TwiN/gatus/v4/alerting/provider/email" - "github.com/TwiN/gatus/v4/alerting/provider/googlechat" - "github.com/TwiN/gatus/v4/alerting/provider/matrix" - "github.com/TwiN/gatus/v4/alerting/provider/mattermost" - "github.com/TwiN/gatus/v4/alerting/provider/messagebird" - "github.com/TwiN/gatus/v4/alerting/provider/ntfy" - "github.com/TwiN/gatus/v4/alerting/provider/opsgenie" - "github.com/TwiN/gatus/v4/alerting/provider/pagerduty" - "github.com/TwiN/gatus/v4/alerting/provider/slack" - "github.com/TwiN/gatus/v4/alerting/provider/teams" - "github.com/TwiN/gatus/v4/alerting/provider/telegram" - "github.com/TwiN/gatus/v4/alerting/provider/twilio" - "github.com/TwiN/gatus/v4/client" - "github.com/TwiN/gatus/v4/config/web" - "github.com/TwiN/gatus/v4/core" - "github.com/TwiN/gatus/v4/storage" + "github.com/TwiN/gatus/v5/alerting" + "github.com/TwiN/gatus/v5/alerting/alert" + "github.com/TwiN/gatus/v5/alerting/provider" + "github.com/TwiN/gatus/v5/alerting/provider/custom" + "github.com/TwiN/gatus/v5/alerting/provider/discord" + "github.com/TwiN/gatus/v5/alerting/provider/email" + "github.com/TwiN/gatus/v5/alerting/provider/googlechat" + "github.com/TwiN/gatus/v5/alerting/provider/matrix" + "github.com/TwiN/gatus/v5/alerting/provider/mattermost" + "github.com/TwiN/gatus/v5/alerting/provider/messagebird" + "github.com/TwiN/gatus/v5/alerting/provider/ntfy" + "github.com/TwiN/gatus/v5/alerting/provider/opsgenie" + "github.com/TwiN/gatus/v5/alerting/provider/pagerduty" + "github.com/TwiN/gatus/v5/alerting/provider/slack" + "github.com/TwiN/gatus/v5/alerting/provider/teams" + "github.com/TwiN/gatus/v5/alerting/provider/telegram" + "github.com/TwiN/gatus/v5/alerting/provider/twilio" + "github.com/TwiN/gatus/v5/client" + "github.com/TwiN/gatus/v5/config/web" + "github.com/TwiN/gatus/v5/core" + "github.com/TwiN/gatus/v5/storage" ) func TestLoadFileThatDoesNotExist(t *testing.T) { diff --git a/config/remote/remote.go b/config/remote/remote.go index e46dea2b..1e65639d 100644 --- a/config/remote/remote.go +++ b/config/remote/remote.go @@ -3,7 +3,7 @@ package remote import ( "log" - "github.com/TwiN/gatus/v4/client" + "github.com/TwiN/gatus/v5/client" ) // NOTICE: This is an experimental alpha feature and may be updated/removed in future versions. diff --git a/config/ui/ui.go b/config/ui/ui.go index efdf60ef..e61440af 100644 --- a/config/ui/ui.go +++ b/config/ui/ui.go @@ -5,7 +5,7 @@ import ( "errors" "html/template" - "github.com/TwiN/gatus/v4/web" + static "github.com/TwiN/gatus/v5/web" ) const ( diff --git a/controller/controller.go b/controller/controller.go index d28c3604..cfdf5761 100644 --- a/controller/controller.go +++ b/controller/controller.go @@ -8,8 +8,8 @@ import ( "os" "time" - "github.com/TwiN/gatus/v4/config" - "github.com/TwiN/gatus/v4/controller/handler" + "github.com/TwiN/gatus/v5/config" + "github.com/TwiN/gatus/v5/controller/handler" ) var ( diff --git a/controller/controller_test.go b/controller/controller_test.go index b054a3f7..e60d28a8 100644 --- a/controller/controller_test.go +++ b/controller/controller_test.go @@ -7,9 +7,9 @@ import ( "os" "testing" - "github.com/TwiN/gatus/v4/config" - "github.com/TwiN/gatus/v4/config/web" - "github.com/TwiN/gatus/v4/core" + "github.com/TwiN/gatus/v5/config" + "github.com/TwiN/gatus/v5/config/web" + "github.com/TwiN/gatus/v5/core" ) func TestHandle(t *testing.T) { diff --git a/controller/handler/badge.go b/controller/handler/badge.go index 687550c9..7d9af244 100644 --- a/controller/handler/badge.go +++ b/controller/handler/badge.go @@ -7,10 +7,10 @@ import ( "strings" "time" - "github.com/TwiN/gatus/v4/config" - "github.com/TwiN/gatus/v4/storage/store" - "github.com/TwiN/gatus/v4/storage/store/common" - "github.com/TwiN/gatus/v4/storage/store/common/paging" + "github.com/TwiN/gatus/v5/config" + "github.com/TwiN/gatus/v5/storage/store" + "github.com/TwiN/gatus/v5/storage/store/common" + "github.com/TwiN/gatus/v5/storage/store/common/paging" "github.com/gorilla/mux" ) diff --git a/controller/handler/badge_test.go b/controller/handler/badge_test.go index 632989c4..4dc7db15 100644 --- a/controller/handler/badge_test.go +++ b/controller/handler/badge_test.go @@ -7,11 +7,11 @@ import ( "testing" "time" - "github.com/TwiN/gatus/v4/config" - "github.com/TwiN/gatus/v4/core" - "github.com/TwiN/gatus/v4/core/ui" - "github.com/TwiN/gatus/v4/storage/store" - "github.com/TwiN/gatus/v4/watchdog" + "github.com/TwiN/gatus/v5/config" + "github.com/TwiN/gatus/v5/core" + "github.com/TwiN/gatus/v5/core/ui" + "github.com/TwiN/gatus/v5/storage/store" + "github.com/TwiN/gatus/v5/watchdog" ) func TestBadge(t *testing.T) { diff --git a/controller/handler/chart.go b/controller/handler/chart.go index 15622496..d0fce820 100644 --- a/controller/handler/chart.go +++ b/controller/handler/chart.go @@ -7,8 +7,8 @@ import ( "sort" "time" - "github.com/TwiN/gatus/v4/storage/store" - "github.com/TwiN/gatus/v4/storage/store/common" + "github.com/TwiN/gatus/v5/storage/store" + "github.com/TwiN/gatus/v5/storage/store/common" "github.com/gorilla/mux" "github.com/wcharczuk/go-chart/v2" "github.com/wcharczuk/go-chart/v2/drawing" diff --git a/controller/handler/chart_test.go b/controller/handler/chart_test.go index 4869831b..d80591b7 100644 --- a/controller/handler/chart_test.go +++ b/controller/handler/chart_test.go @@ -6,10 +6,10 @@ import ( "testing" "time" - "github.com/TwiN/gatus/v4/config" - "github.com/TwiN/gatus/v4/core" - "github.com/TwiN/gatus/v4/storage/store" - "github.com/TwiN/gatus/v4/watchdog" + "github.com/TwiN/gatus/v5/config" + "github.com/TwiN/gatus/v5/core" + "github.com/TwiN/gatus/v5/storage/store" + "github.com/TwiN/gatus/v5/watchdog" ) func TestResponseTimeChart(t *testing.T) { diff --git a/controller/handler/config.go b/controller/handler/config.go index 40a15fee..1d626a53 100644 --- a/controller/handler/config.go +++ b/controller/handler/config.go @@ -4,7 +4,7 @@ import ( "fmt" "net/http" - "github.com/TwiN/gatus/v4/security" + "github.com/TwiN/gatus/v5/security" ) // ConfigHandler is a handler that returns information for the front end of the application. diff --git a/controller/handler/config_test.go b/controller/handler/config_test.go index e720ceb0..de69704c 100644 --- a/controller/handler/config_test.go +++ b/controller/handler/config_test.go @@ -5,7 +5,7 @@ import ( "net/http/httptest" "testing" - "github.com/TwiN/gatus/v4/security" + "github.com/TwiN/gatus/v5/security" "github.com/gorilla/mux" ) diff --git a/controller/handler/endpoint_status.go b/controller/handler/endpoint_status.go index 9fb36cc2..7eb9317a 100644 --- a/controller/handler/endpoint_status.go +++ b/controller/handler/endpoint_status.go @@ -11,13 +11,13 @@ import ( "strings" "time" - "github.com/TwiN/gatus/v4/client" - "github.com/TwiN/gatus/v4/config" - "github.com/TwiN/gatus/v4/config/remote" - "github.com/TwiN/gatus/v4/core" - "github.com/TwiN/gatus/v4/storage/store" - "github.com/TwiN/gatus/v4/storage/store/common" - "github.com/TwiN/gatus/v4/storage/store/common/paging" + "github.com/TwiN/gatus/v5/client" + "github.com/TwiN/gatus/v5/config" + "github.com/TwiN/gatus/v5/config/remote" + "github.com/TwiN/gatus/v5/core" + "github.com/TwiN/gatus/v5/storage/store" + "github.com/TwiN/gatus/v5/storage/store/common" + "github.com/TwiN/gatus/v5/storage/store/common/paging" "github.com/TwiN/gocache/v2" "github.com/gorilla/mux" ) diff --git a/controller/handler/endpoint_status_test.go b/controller/handler/endpoint_status_test.go index 94319949..608bc624 100644 --- a/controller/handler/endpoint_status_test.go +++ b/controller/handler/endpoint_status_test.go @@ -6,10 +6,10 @@ import ( "testing" "time" - "github.com/TwiN/gatus/v4/config" - "github.com/TwiN/gatus/v4/core" - "github.com/TwiN/gatus/v4/storage/store" - "github.com/TwiN/gatus/v4/watchdog" + "github.com/TwiN/gatus/v5/config" + "github.com/TwiN/gatus/v5/core" + "github.com/TwiN/gatus/v5/storage/store" + "github.com/TwiN/gatus/v5/watchdog" ) var ( diff --git a/controller/handler/handler.go b/controller/handler/handler.go index 83df2e99..c50cc9f2 100644 --- a/controller/handler/handler.go +++ b/controller/handler/handler.go @@ -4,8 +4,8 @@ import ( "io/fs" "net/http" - "github.com/TwiN/gatus/v4/config" - "github.com/TwiN/gatus/v4/web" + "github.com/TwiN/gatus/v5/config" + static "github.com/TwiN/gatus/v5/web" "github.com/TwiN/health" "github.com/gorilla/mux" "github.com/prometheus/client_golang/prometheus/promhttp" diff --git a/controller/handler/handler_test.go b/controller/handler/handler_test.go index ad2b9b96..fee3b4af 100644 --- a/controller/handler/handler_test.go +++ b/controller/handler/handler_test.go @@ -5,7 +5,7 @@ import ( "net/http/httptest" "testing" - "github.com/TwiN/gatus/v4/config" + "github.com/TwiN/gatus/v5/config" ) func TestCreateRouter(t *testing.T) { diff --git a/controller/handler/spa.go b/controller/handler/spa.go index 1b9fa817..6d702d46 100644 --- a/controller/handler/spa.go +++ b/controller/handler/spa.go @@ -6,8 +6,8 @@ import ( "log" "net/http" - "github.com/TwiN/gatus/v4/config/ui" - "github.com/TwiN/gatus/v4/web" + "github.com/TwiN/gatus/v5/config/ui" + static "github.com/TwiN/gatus/v5/web" ) func SinglePageApplication(ui *ui.Config) http.HandlerFunc { diff --git a/controller/handler/spa_test.go b/controller/handler/spa_test.go index 826990dd..f900d4a1 100644 --- a/controller/handler/spa_test.go +++ b/controller/handler/spa_test.go @@ -6,10 +6,10 @@ import ( "testing" "time" - "github.com/TwiN/gatus/v4/config" - "github.com/TwiN/gatus/v4/core" - "github.com/TwiN/gatus/v4/storage/store" - "github.com/TwiN/gatus/v4/watchdog" + "github.com/TwiN/gatus/v5/config" + "github.com/TwiN/gatus/v5/core" + "github.com/TwiN/gatus/v5/storage/store" + "github.com/TwiN/gatus/v5/watchdog" ) func TestSinglePageApplication(t *testing.T) { diff --git a/controller/handler/util.go b/controller/handler/util.go index c202561b..5ffd5cb2 100644 --- a/controller/handler/util.go +++ b/controller/handler/util.go @@ -4,7 +4,7 @@ import ( "net/http" "strconv" - "github.com/TwiN/gatus/v4/storage/store/common" + "github.com/TwiN/gatus/v5/storage/store/common" ) const ( diff --git a/core/condition.go b/core/condition.go index c4516b34..7ef26c7f 100644 --- a/core/condition.go +++ b/core/condition.go @@ -7,8 +7,8 @@ import ( "strings" "time" - "github.com/TwiN/gatus/v4/jsonpath" - "github.com/TwiN/gatus/v4/pattern" + "github.com/TwiN/gatus/v5/jsonpath" + "github.com/TwiN/gatus/v5/pattern" ) const ( @@ -22,7 +22,7 @@ const ( // Values that could replace the placeholder: 127.0.0.1, 10.0.0.1, ... IPPlaceholder = "[IP]" - // DNSRCodePlaceholder is a place holder for DNS_RCODE + // DNSRCodePlaceholder is a placeholder for DNS_RCODE // // Values that could replace the placeholder: NOERROR, FORMERR, SERVFAIL, NXDOMAIN, NOTIMP, REFUSED DNSRCodePlaceholder = "[DNS_RCODE]" diff --git a/core/dns_test.go b/core/dns_test.go index bd3f42d6..87411d83 100644 --- a/core/dns_test.go +++ b/core/dns_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "github.com/TwiN/gatus/v4/pattern" + "github.com/TwiN/gatus/v5/pattern" ) func TestIntegrationQuery(t *testing.T) { diff --git a/core/endpoint.go b/core/endpoint.go index dd017842..e4d1f065 100644 --- a/core/endpoint.go +++ b/core/endpoint.go @@ -13,10 +13,10 @@ import ( "strings" "time" - "github.com/TwiN/gatus/v4/alerting/alert" - "github.com/TwiN/gatus/v4/client" - "github.com/TwiN/gatus/v4/core/ui" - "github.com/TwiN/gatus/v4/util" + "github.com/TwiN/gatus/v5/alerting/alert" + "github.com/TwiN/gatus/v5/client" + "github.com/TwiN/gatus/v5/core/ui" + "github.com/TwiN/gatus/v5/util" ) type EndpointType string diff --git a/core/endpoint_status.go b/core/endpoint_status.go index 8220c93d..db1ccd78 100644 --- a/core/endpoint_status.go +++ b/core/endpoint_status.go @@ -1,6 +1,6 @@ package core -import "github.com/TwiN/gatus/v4/util" +import "github.com/TwiN/gatus/v5/util" // EndpointStatus contains the evaluation Results of an Endpoint type EndpointStatus struct { diff --git a/core/endpoint_test.go b/core/endpoint_test.go index f12fd8f4..c24289d4 100644 --- a/core/endpoint_test.go +++ b/core/endpoint_test.go @@ -10,10 +10,10 @@ import ( "testing" "time" - "github.com/TwiN/gatus/v4/alerting/alert" - "github.com/TwiN/gatus/v4/client" - "github.com/TwiN/gatus/v4/core/ui" - "github.com/TwiN/gatus/v4/test" + "github.com/TwiN/gatus/v5/alerting/alert" + "github.com/TwiN/gatus/v5/client" + "github.com/TwiN/gatus/v5/core/ui" + "github.com/TwiN/gatus/v5/test" ) func TestEndpoint(t *testing.T) { diff --git a/go.mod b/go.mod index 6feaa73b..7101c825 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/TwiN/gatus/v4 +module github.com/TwiN/gatus/v5 go 1.19 diff --git a/main.go b/main.go index 44d38791..36a5721d 100644 --- a/main.go +++ b/main.go @@ -7,10 +7,10 @@ import ( "syscall" "time" - "github.com/TwiN/gatus/v4/config" - "github.com/TwiN/gatus/v4/controller" - "github.com/TwiN/gatus/v4/storage/store" - "github.com/TwiN/gatus/v4/watchdog" + "github.com/TwiN/gatus/v5/config" + "github.com/TwiN/gatus/v5/controller" + "github.com/TwiN/gatus/v5/storage/store" + "github.com/TwiN/gatus/v5/watchdog" ) func main() { @@ -66,7 +66,7 @@ func loadConfiguration() (cfg *config.Config, err error) { // // Q: "TwiN, why are you putting this here? Wouldn't it make more sense to have this in the config?!" // A: Yes. Yes it would make more sense to have it in the config package. But I don't want to import -// the massive SQL dependencies just because I want to import the config, so here we are. +// the massive SQL dependencies just because I want to import the config, so here we are. func initializeStorage(cfg *config.Config) { err := store.Initialize(cfg.Storage) if err != nil { diff --git a/metrics/metrics.go b/metrics/metrics.go index d4796a4c..37027f24 100644 --- a/metrics/metrics.go +++ b/metrics/metrics.go @@ -3,7 +3,7 @@ package metrics import ( "strconv" - "github.com/TwiN/gatus/v4/core" + "github.com/TwiN/gatus/v5/core" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promauto" ) diff --git a/metrics/metrics_test.go b/metrics/metrics_test.go index c5818f53..4a1bb35e 100644 --- a/metrics/metrics_test.go +++ b/metrics/metrics_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - "github.com/TwiN/gatus/v4/core" + "github.com/TwiN/gatus/v5/core" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/testutil" ) diff --git a/storage/store/memory/memory.go b/storage/store/memory/memory.go index a0df352d..281e4a59 100644 --- a/storage/store/memory/memory.go +++ b/storage/store/memory/memory.go @@ -5,10 +5,10 @@ import ( "sync" "time" - "github.com/TwiN/gatus/v4/core" - "github.com/TwiN/gatus/v4/storage/store/common" - "github.com/TwiN/gatus/v4/storage/store/common/paging" - "github.com/TwiN/gatus/v4/util" + "github.com/TwiN/gatus/v5/core" + "github.com/TwiN/gatus/v5/storage/store/common" + "github.com/TwiN/gatus/v5/storage/store/common/paging" + "github.com/TwiN/gatus/v5/util" "github.com/TwiN/gocache/v2" ) diff --git a/storage/store/memory/memory_test.go b/storage/store/memory/memory_test.go index dac2ef5a..ea0bd1cd 100644 --- a/storage/store/memory/memory_test.go +++ b/storage/store/memory/memory_test.go @@ -4,8 +4,8 @@ import ( "testing" "time" - "github.com/TwiN/gatus/v4/core" - "github.com/TwiN/gatus/v4/storage/store/common/paging" + "github.com/TwiN/gatus/v5/core" + "github.com/TwiN/gatus/v5/storage/store/common/paging" ) var ( diff --git a/storage/store/memory/uptime.go b/storage/store/memory/uptime.go index 88a7cac6..ffb4863b 100644 --- a/storage/store/memory/uptime.go +++ b/storage/store/memory/uptime.go @@ -3,7 +3,7 @@ package memory import ( "time" - "github.com/TwiN/gatus/v4/core" + "github.com/TwiN/gatus/v5/core" ) const ( diff --git a/storage/store/memory/uptime_bench_test.go b/storage/store/memory/uptime_bench_test.go index e7d51a54..886ba4df 100644 --- a/storage/store/memory/uptime_bench_test.go +++ b/storage/store/memory/uptime_bench_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "github.com/TwiN/gatus/v4/core" + "github.com/TwiN/gatus/v5/core" ) func BenchmarkProcessUptimeAfterResult(b *testing.B) { diff --git a/storage/store/memory/uptime_test.go b/storage/store/memory/uptime_test.go index 4c643882..071bb4ce 100644 --- a/storage/store/memory/uptime_test.go +++ b/storage/store/memory/uptime_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "github.com/TwiN/gatus/v4/core" + "github.com/TwiN/gatus/v5/core" ) func TestProcessUptimeAfterResult(t *testing.T) { diff --git a/storage/store/memory/util.go b/storage/store/memory/util.go index e66b6020..7ba757e1 100644 --- a/storage/store/memory/util.go +++ b/storage/store/memory/util.go @@ -1,9 +1,9 @@ package memory import ( - "github.com/TwiN/gatus/v4/core" - "github.com/TwiN/gatus/v4/storage/store/common" - "github.com/TwiN/gatus/v4/storage/store/common/paging" + "github.com/TwiN/gatus/v5/core" + "github.com/TwiN/gatus/v5/storage/store/common" + "github.com/TwiN/gatus/v5/storage/store/common/paging" ) // ShallowCopyEndpointStatus returns a shallow copy of a EndpointStatus with only the results diff --git a/storage/store/memory/util_bench_test.go b/storage/store/memory/util_bench_test.go index 06281e22..e832f149 100644 --- a/storage/store/memory/util_bench_test.go +++ b/storage/store/memory/util_bench_test.go @@ -3,9 +3,9 @@ package memory import ( "testing" - "github.com/TwiN/gatus/v4/core" - "github.com/TwiN/gatus/v4/storage/store/common" - "github.com/TwiN/gatus/v4/storage/store/common/paging" + "github.com/TwiN/gatus/v5/core" + "github.com/TwiN/gatus/v5/storage/store/common" + "github.com/TwiN/gatus/v5/storage/store/common/paging" ) func BenchmarkShallowCopyEndpointStatus(b *testing.B) { diff --git a/storage/store/memory/util_test.go b/storage/store/memory/util_test.go index d1becbd2..8f88299e 100644 --- a/storage/store/memory/util_test.go +++ b/storage/store/memory/util_test.go @@ -4,9 +4,9 @@ import ( "testing" "time" - "github.com/TwiN/gatus/v4/core" - "github.com/TwiN/gatus/v4/storage/store/common" - "github.com/TwiN/gatus/v4/storage/store/common/paging" + "github.com/TwiN/gatus/v5/core" + "github.com/TwiN/gatus/v5/storage/store/common" + "github.com/TwiN/gatus/v5/storage/store/common/paging" ) func TestAddResult(t *testing.T) { diff --git a/storage/store/sql/sql.go b/storage/store/sql/sql.go index 701f5cb2..8f520f99 100644 --- a/storage/store/sql/sql.go +++ b/storage/store/sql/sql.go @@ -9,10 +9,10 @@ import ( "strings" "time" - "github.com/TwiN/gatus/v4/core" - "github.com/TwiN/gatus/v4/storage/store/common" - "github.com/TwiN/gatus/v4/storage/store/common/paging" - "github.com/TwiN/gatus/v4/util" + "github.com/TwiN/gatus/v5/core" + "github.com/TwiN/gatus/v5/storage/store/common" + "github.com/TwiN/gatus/v5/storage/store/common/paging" + "github.com/TwiN/gatus/v5/util" "github.com/TwiN/gocache/v2" _ "github.com/lib/pq" _ "modernc.org/sqlite" diff --git a/storage/store/sql/sql_test.go b/storage/store/sql/sql_test.go index cb4f4371..9d9b586f 100644 --- a/storage/store/sql/sql_test.go +++ b/storage/store/sql/sql_test.go @@ -4,9 +4,9 @@ import ( "testing" "time" - "github.com/TwiN/gatus/v4/core" - "github.com/TwiN/gatus/v4/storage/store/common" - "github.com/TwiN/gatus/v4/storage/store/common/paging" + "github.com/TwiN/gatus/v5/core" + "github.com/TwiN/gatus/v5/storage/store/common" + "github.com/TwiN/gatus/v5/storage/store/common/paging" ) var ( diff --git a/storage/store/store.go b/storage/store/store.go index 06e45436..3e7d8342 100644 --- a/storage/store/store.go +++ b/storage/store/store.go @@ -5,11 +5,11 @@ import ( "log" "time" - "github.com/TwiN/gatus/v4/core" - "github.com/TwiN/gatus/v4/storage" - "github.com/TwiN/gatus/v4/storage/store/common/paging" - "github.com/TwiN/gatus/v4/storage/store/memory" - "github.com/TwiN/gatus/v4/storage/store/sql" + "github.com/TwiN/gatus/v5/core" + "github.com/TwiN/gatus/v5/storage" + "github.com/TwiN/gatus/v5/storage/store/common/paging" + "github.com/TwiN/gatus/v5/storage/store/memory" + "github.com/TwiN/gatus/v5/storage/store/sql" ) // Store is the interface that each store should implement diff --git a/storage/store/store_bench_test.go b/storage/store/store_bench_test.go index 15f0b3b8..67a8e06c 100644 --- a/storage/store/store_bench_test.go +++ b/storage/store/store_bench_test.go @@ -5,10 +5,10 @@ import ( "testing" "time" - "github.com/TwiN/gatus/v4/core" - "github.com/TwiN/gatus/v4/storage/store/common/paging" - "github.com/TwiN/gatus/v4/storage/store/memory" - "github.com/TwiN/gatus/v4/storage/store/sql" + "github.com/TwiN/gatus/v5/core" + "github.com/TwiN/gatus/v5/storage/store/common/paging" + "github.com/TwiN/gatus/v5/storage/store/memory" + "github.com/TwiN/gatus/v5/storage/store/sql" ) func BenchmarkStore_GetAllEndpointStatuses(b *testing.B) { diff --git a/storage/store/store_test.go b/storage/store/store_test.go index b5bd6e0d..1c4a786a 100644 --- a/storage/store/store_test.go +++ b/storage/store/store_test.go @@ -4,12 +4,12 @@ import ( "testing" "time" - "github.com/TwiN/gatus/v4/core" - "github.com/TwiN/gatus/v4/storage" - "github.com/TwiN/gatus/v4/storage/store/common" - "github.com/TwiN/gatus/v4/storage/store/common/paging" - "github.com/TwiN/gatus/v4/storage/store/memory" - "github.com/TwiN/gatus/v4/storage/store/sql" + "github.com/TwiN/gatus/v5/core" + "github.com/TwiN/gatus/v5/storage" + "github.com/TwiN/gatus/v5/storage/store/common" + "github.com/TwiN/gatus/v5/storage/store/common/paging" + "github.com/TwiN/gatus/v5/storage/store/memory" + "github.com/TwiN/gatus/v5/storage/store/sql" ) var ( diff --git a/watchdog/alerting.go b/watchdog/alerting.go index df542146..d08f6b3c 100644 --- a/watchdog/alerting.go +++ b/watchdog/alerting.go @@ -5,8 +5,8 @@ import ( "log" "os" - "github.com/TwiN/gatus/v4/alerting" - "github.com/TwiN/gatus/v4/core" + "github.com/TwiN/gatus/v5/alerting" + "github.com/TwiN/gatus/v5/core" ) // HandleAlerting takes care of alerts to resolve and alerts to trigger based on result success or failure diff --git a/watchdog/alerting_test.go b/watchdog/alerting_test.go index b4e5d85b..2281f836 100644 --- a/watchdog/alerting_test.go +++ b/watchdog/alerting_test.go @@ -4,21 +4,21 @@ import ( "os" "testing" - "github.com/TwiN/gatus/v4/alerting" - "github.com/TwiN/gatus/v4/alerting/alert" - "github.com/TwiN/gatus/v4/alerting/provider/custom" - "github.com/TwiN/gatus/v4/alerting/provider/discord" - "github.com/TwiN/gatus/v4/alerting/provider/email" - "github.com/TwiN/gatus/v4/alerting/provider/matrix" - "github.com/TwiN/gatus/v4/alerting/provider/mattermost" - "github.com/TwiN/gatus/v4/alerting/provider/messagebird" - "github.com/TwiN/gatus/v4/alerting/provider/pagerduty" - "github.com/TwiN/gatus/v4/alerting/provider/slack" - "github.com/TwiN/gatus/v4/alerting/provider/teams" - "github.com/TwiN/gatus/v4/alerting/provider/telegram" - "github.com/TwiN/gatus/v4/alerting/provider/twilio" - "github.com/TwiN/gatus/v4/config" - "github.com/TwiN/gatus/v4/core" + "github.com/TwiN/gatus/v5/alerting" + "github.com/TwiN/gatus/v5/alerting/alert" + "github.com/TwiN/gatus/v5/alerting/provider/custom" + "github.com/TwiN/gatus/v5/alerting/provider/discord" + "github.com/TwiN/gatus/v5/alerting/provider/email" + "github.com/TwiN/gatus/v5/alerting/provider/matrix" + "github.com/TwiN/gatus/v5/alerting/provider/mattermost" + "github.com/TwiN/gatus/v5/alerting/provider/messagebird" + "github.com/TwiN/gatus/v5/alerting/provider/pagerduty" + "github.com/TwiN/gatus/v5/alerting/provider/slack" + "github.com/TwiN/gatus/v5/alerting/provider/teams" + "github.com/TwiN/gatus/v5/alerting/provider/telegram" + "github.com/TwiN/gatus/v5/alerting/provider/twilio" + "github.com/TwiN/gatus/v5/config" + "github.com/TwiN/gatus/v5/core" ) func TestHandleAlerting(t *testing.T) { diff --git a/watchdog/watchdog.go b/watchdog/watchdog.go index 1c57aca2..ab849511 100644 --- a/watchdog/watchdog.go +++ b/watchdog/watchdog.go @@ -6,12 +6,12 @@ import ( "sync" "time" - "github.com/TwiN/gatus/v4/alerting" - "github.com/TwiN/gatus/v4/config" - "github.com/TwiN/gatus/v4/config/maintenance" - "github.com/TwiN/gatus/v4/core" - "github.com/TwiN/gatus/v4/metrics" - "github.com/TwiN/gatus/v4/storage/store" + "github.com/TwiN/gatus/v5/alerting" + "github.com/TwiN/gatus/v5/config" + "github.com/TwiN/gatus/v5/config/maintenance" + "github.com/TwiN/gatus/v5/core" + "github.com/TwiN/gatus/v5/metrics" + "github.com/TwiN/gatus/v5/storage/store" ) var (