From ab2bee9c4bfa4e69bec20645823a888da5738d93 Mon Sep 17 00:00:00 2001 From: TwiN Date: Mon, 20 Jun 2022 21:25:14 -0400 Subject: [PATCH] chore!: Update module from v3 to v4 --- alerting/config.go | 28 ++++++++-------- 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/mattermost/mattermost.go | 7 ++-- .../provider/mattermost/mattermost_test.go | 8 ++--- alerting/provider/messagebird/messagebird.go | 6 ++-- .../provider/messagebird/messagebird_test.go | 8 ++--- 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 | 28 ++++++++-------- 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 | 18 +++++------ config/config_test.go | 32 +++++++++---------- controller/controller.go | 8 ++--- controller/controller_test.go | 6 ++-- controller/handler/badge.go | 6 ++-- controller/handler/badge_test.go | 8 ++--- 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 | 6 ++-- controller/handler/endpoint_status_test.go | 8 ++--- controller/handler/handler.go | 4 +-- controller/handler/spa.go | 2 +- controller/handler/spa_test.go | 8 ++--- controller/handler/util.go | 2 +- core/condition.go | 4 +-- core/dns_test.go | 2 +- core/endpoint.go | 8 ++--- core/endpoint_status.go | 2 +- core/endpoint_test.go | 6 ++-- go.mod | 2 +- main.go | 8 ++--- 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 | 28 ++++++++-------- watchdog/watchdog.go | 12 +++---- 69 files changed, 251 insertions(+), 252 deletions(-) diff --git a/alerting/config.go b/alerting/config.go index 564497db..f53a7289 100644 --- a/alerting/config.go +++ b/alerting/config.go @@ -1,20 +1,20 @@ package alerting import ( - "github.com/TwiN/gatus/v3/alerting/alert" - "github.com/TwiN/gatus/v3/alerting/provider" - "github.com/TwiN/gatus/v3/alerting/provider/custom" - "github.com/TwiN/gatus/v3/alerting/provider/discord" - "github.com/TwiN/gatus/v3/alerting/provider/email" - "github.com/TwiN/gatus/v3/alerting/provider/googlechat" - "github.com/TwiN/gatus/v3/alerting/provider/mattermost" - "github.com/TwiN/gatus/v3/alerting/provider/messagebird" - "github.com/TwiN/gatus/v3/alerting/provider/opsgenie" - "github.com/TwiN/gatus/v3/alerting/provider/pagerduty" - "github.com/TwiN/gatus/v3/alerting/provider/slack" - "github.com/TwiN/gatus/v3/alerting/provider/teams" - "github.com/TwiN/gatus/v3/alerting/provider/telegram" - "github.com/TwiN/gatus/v3/alerting/provider/twilio" + "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/mattermost" + "github.com/TwiN/gatus/v4/alerting/provider/messagebird" + "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" ) // Config is the configuration for alerting providers diff --git a/alerting/provider/custom/custom.go b/alerting/provider/custom/custom.go index 967afedc..1c668ef6 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/v3/alerting/alert" - "github.com/TwiN/gatus/v3/client" - "github.com/TwiN/gatus/v3/core" + "github.com/TwiN/gatus/v4/alerting/alert" + "github.com/TwiN/gatus/v4/client" + "github.com/TwiN/gatus/v4/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 24fe0e10..ca32c5c4 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/v3/alerting/alert" - "github.com/TwiN/gatus/v3/client" - "github.com/TwiN/gatus/v3/core" - "github.com/TwiN/gatus/v3/test" + "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" ) func TestAlertProvider_IsValid(t *testing.T) { diff --git a/alerting/provider/discord/discord.go b/alerting/provider/discord/discord.go index 38c898ee..57d2bbbb 100644 --- a/alerting/provider/discord/discord.go +++ b/alerting/provider/discord/discord.go @@ -6,9 +6,9 @@ import ( "io" "net/http" - "github.com/TwiN/gatus/v3/alerting/alert" - "github.com/TwiN/gatus/v3/client" - "github.com/TwiN/gatus/v3/core" + "github.com/TwiN/gatus/v4/alerting/alert" + "github.com/TwiN/gatus/v4/client" + "github.com/TwiN/gatus/v4/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 d1ecbaf1..f6ef7622 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/v3/alerting/alert" - "github.com/TwiN/gatus/v3/client" - "github.com/TwiN/gatus/v3/core" - "github.com/TwiN/gatus/v3/test" + "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" ) func TestAlertProvider_IsValid(t *testing.T) { diff --git a/alerting/provider/email/email.go b/alerting/provider/email/email.go index dd1ec3ae..ddc8d324 100644 --- a/alerting/provider/email/email.go +++ b/alerting/provider/email/email.go @@ -5,8 +5,8 @@ import ( "math" "strings" - "github.com/TwiN/gatus/v3/alerting/alert" - "github.com/TwiN/gatus/v3/core" + "github.com/TwiN/gatus/v4/alerting/alert" + "github.com/TwiN/gatus/v4/core" gomail "gopkg.in/mail.v2" ) diff --git a/alerting/provider/email/email_test.go b/alerting/provider/email/email_test.go index 42751b26..d5d526fc 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/v3/alerting/alert" - "github.com/TwiN/gatus/v3/core" + "github.com/TwiN/gatus/v4/alerting/alert" + "github.com/TwiN/gatus/v4/core" ) func TestAlertDefaultProvider_IsValid(t *testing.T) { diff --git a/alerting/provider/googlechat/googlechat.go b/alerting/provider/googlechat/googlechat.go index 405f41f4..81ba56a5 100644 --- a/alerting/provider/googlechat/googlechat.go +++ b/alerting/provider/googlechat/googlechat.go @@ -6,9 +6,9 @@ import ( "io" "net/http" - "github.com/TwiN/gatus/v3/alerting/alert" - "github.com/TwiN/gatus/v3/client" - "github.com/TwiN/gatus/v3/core" + "github.com/TwiN/gatus/v4/alerting/alert" + "github.com/TwiN/gatus/v4/client" + "github.com/TwiN/gatus/v4/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 543cee61..673ca57c 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/v3/alerting/alert" - "github.com/TwiN/gatus/v3/client" - "github.com/TwiN/gatus/v3/core" - "github.com/TwiN/gatus/v3/test" + "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" ) func TestAlertDefaultProvider_IsValid(t *testing.T) { diff --git a/alerting/provider/mattermost/mattermost.go b/alerting/provider/mattermost/mattermost.go index 507c6a90..509e8275 100644 --- a/alerting/provider/mattermost/mattermost.go +++ b/alerting/provider/mattermost/mattermost.go @@ -6,9 +6,9 @@ import ( "io" "net/http" - "github.com/TwiN/gatus/v3/alerting/alert" - "github.com/TwiN/gatus/v3/client" - "github.com/TwiN/gatus/v3/core" + "github.com/TwiN/gatus/v4/alerting/alert" + "github.com/TwiN/gatus/v4/client" + "github.com/TwiN/gatus/v4/core" ) // AlertProvider is the configuration necessary for sending an alert using Mattermost @@ -119,7 +119,6 @@ func (provider *AlertProvider) buildRequestBody(endpoint *core.Endpoint, alert * }`, message, message, description, color, endpoint.URL, results) } - // getWebhookURLForGroup returns the appropriate Webhook URL integration to for a given group func (provider *AlertProvider) getWebhookURLForGroup(group string) string { if provider.Overrides != nil { diff --git a/alerting/provider/mattermost/mattermost_test.go b/alerting/provider/mattermost/mattermost_test.go index 1ae39eb6..48e43c49 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/v3/alerting/alert" - "github.com/TwiN/gatus/v3/client" - "github.com/TwiN/gatus/v3/core" - "github.com/TwiN/gatus/v3/test" + "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" ) func TestAlertProvider_IsValid(t *testing.T) { diff --git a/alerting/provider/messagebird/messagebird.go b/alerting/provider/messagebird/messagebird.go index 6dc10c0a..5c54def6 100644 --- a/alerting/provider/messagebird/messagebird.go +++ b/alerting/provider/messagebird/messagebird.go @@ -6,9 +6,9 @@ import ( "io" "net/http" - "github.com/TwiN/gatus/v3/alerting/alert" - "github.com/TwiN/gatus/v3/client" - "github.com/TwiN/gatus/v3/core" + "github.com/TwiN/gatus/v4/alerting/alert" + "github.com/TwiN/gatus/v4/client" + "github.com/TwiN/gatus/v4/core" ) const ( diff --git a/alerting/provider/messagebird/messagebird_test.go b/alerting/provider/messagebird/messagebird_test.go index 5d59001c..2696fc02 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/v3/alerting/alert" - "github.com/TwiN/gatus/v3/client" - "github.com/TwiN/gatus/v3/core" - "github.com/TwiN/gatus/v3/test" + "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" ) func TestMessagebirdAlertProvider_IsValid(t *testing.T) { diff --git a/alerting/provider/opsgenie/opsgenie.go b/alerting/provider/opsgenie/opsgenie.go index dd98d707..ed4ebe0e 100644 --- a/alerting/provider/opsgenie/opsgenie.go +++ b/alerting/provider/opsgenie/opsgenie.go @@ -9,9 +9,9 @@ import ( "strconv" "strings" - "github.com/TwiN/gatus/v3/alerting/alert" - "github.com/TwiN/gatus/v3/client" - "github.com/TwiN/gatus/v3/core" + "github.com/TwiN/gatus/v4/alerting/alert" + "github.com/TwiN/gatus/v4/client" + "github.com/TwiN/gatus/v4/core" ) const ( diff --git a/alerting/provider/opsgenie/opsgenie_test.go b/alerting/provider/opsgenie/opsgenie_test.go index 244fac92..d2e12963 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/v3/alerting/alert" - "github.com/TwiN/gatus/v3/client" - "github.com/TwiN/gatus/v3/core" - "github.com/TwiN/gatus/v3/test" + "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" ) func TestAlertProvider_IsValid(t *testing.T) { diff --git a/alerting/provider/pagerduty/pagerduty.go b/alerting/provider/pagerduty/pagerduty.go index a1f790fb..616a85c0 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/v3/alerting/alert" - "github.com/TwiN/gatus/v3/client" - "github.com/TwiN/gatus/v3/core" + "github.com/TwiN/gatus/v4/alerting/alert" + "github.com/TwiN/gatus/v4/client" + "github.com/TwiN/gatus/v4/core" ) const ( diff --git a/alerting/provider/pagerduty/pagerduty_test.go b/alerting/provider/pagerduty/pagerduty_test.go index 8f8b7348..71ea7549 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/v3/alerting/alert" - "github.com/TwiN/gatus/v3/client" - "github.com/TwiN/gatus/v3/core" - "github.com/TwiN/gatus/v3/test" + "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" ) func TestAlertProvider_IsValid(t *testing.T) { diff --git a/alerting/provider/provider.go b/alerting/provider/provider.go index 4f2ff0f0..f0c9fed5 100644 --- a/alerting/provider/provider.go +++ b/alerting/provider/provider.go @@ -1,20 +1,20 @@ package provider import ( - "github.com/TwiN/gatus/v3/alerting/alert" - "github.com/TwiN/gatus/v3/alerting/provider/custom" - "github.com/TwiN/gatus/v3/alerting/provider/discord" - "github.com/TwiN/gatus/v3/alerting/provider/email" - "github.com/TwiN/gatus/v3/alerting/provider/googlechat" - "github.com/TwiN/gatus/v3/alerting/provider/mattermost" - "github.com/TwiN/gatus/v3/alerting/provider/messagebird" - "github.com/TwiN/gatus/v3/alerting/provider/opsgenie" - "github.com/TwiN/gatus/v3/alerting/provider/pagerduty" - "github.com/TwiN/gatus/v3/alerting/provider/slack" - "github.com/TwiN/gatus/v3/alerting/provider/teams" - "github.com/TwiN/gatus/v3/alerting/provider/telegram" - "github.com/TwiN/gatus/v3/alerting/provider/twilio" - "github.com/TwiN/gatus/v3/core" + "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/mattermost" + "github.com/TwiN/gatus/v4/alerting/provider/messagebird" + "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" ) // AlertProvider is the interface that each providers should implement diff --git a/alerting/provider/provider_test.go b/alerting/provider/provider_test.go index 2de2e978..beaa456b 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/v3/alerting/alert" + "github.com/TwiN/gatus/v4/alerting/alert" ) func TestParseWithDefaultAlert(t *testing.T) { diff --git a/alerting/provider/slack/slack.go b/alerting/provider/slack/slack.go index fbde77f2..b0a74cb6 100644 --- a/alerting/provider/slack/slack.go +++ b/alerting/provider/slack/slack.go @@ -6,9 +6,9 @@ import ( "io" "net/http" - "github.com/TwiN/gatus/v3/alerting/alert" - "github.com/TwiN/gatus/v3/client" - "github.com/TwiN/gatus/v3/core" + "github.com/TwiN/gatus/v4/alerting/alert" + "github.com/TwiN/gatus/v4/client" + "github.com/TwiN/gatus/v4/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 909aafff..430f17ea 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/v3/alerting/alert" - "github.com/TwiN/gatus/v3/client" - "github.com/TwiN/gatus/v3/core" - "github.com/TwiN/gatus/v3/test" + "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" ) func TestAlertDefaultProvider_IsValid(t *testing.T) { diff --git a/alerting/provider/teams/teams.go b/alerting/provider/teams/teams.go index d1d7b457..00abbad6 100644 --- a/alerting/provider/teams/teams.go +++ b/alerting/provider/teams/teams.go @@ -6,9 +6,9 @@ import ( "io" "net/http" - "github.com/TwiN/gatus/v3/alerting/alert" - "github.com/TwiN/gatus/v3/client" - "github.com/TwiN/gatus/v3/core" + "github.com/TwiN/gatus/v4/alerting/alert" + "github.com/TwiN/gatus/v4/client" + "github.com/TwiN/gatus/v4/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 0a0477eb..2b31a1dd 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/v3/alerting/alert" - "github.com/TwiN/gatus/v3/client" - "github.com/TwiN/gatus/v3/core" - "github.com/TwiN/gatus/v3/test" + "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" ) func TestAlertDefaultProvider_IsValid(t *testing.T) { diff --git a/alerting/provider/telegram/telegram.go b/alerting/provider/telegram/telegram.go index b3b1f4f0..963b5f79 100644 --- a/alerting/provider/telegram/telegram.go +++ b/alerting/provider/telegram/telegram.go @@ -6,9 +6,9 @@ import ( "io" "net/http" - "github.com/TwiN/gatus/v3/alerting/alert" - "github.com/TwiN/gatus/v3/client" - "github.com/TwiN/gatus/v3/core" + "github.com/TwiN/gatus/v4/alerting/alert" + "github.com/TwiN/gatus/v4/client" + "github.com/TwiN/gatus/v4/core" ) const defaultAPIURL = "https://api.telegram.org" diff --git a/alerting/provider/telegram/telegram_test.go b/alerting/provider/telegram/telegram_test.go index 966edee8..a4680438 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/v3/alerting/alert" - "github.com/TwiN/gatus/v3/client" - "github.com/TwiN/gatus/v3/core" - "github.com/TwiN/gatus/v3/test" + "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" ) func TestAlertProvider_IsValid(t *testing.T) { diff --git a/alerting/provider/twilio/twilio.go b/alerting/provider/twilio/twilio.go index 17ba2545..a99fa8ea 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/v3/alerting/alert" - "github.com/TwiN/gatus/v3/client" - "github.com/TwiN/gatus/v3/core" + "github.com/TwiN/gatus/v4/alerting/alert" + "github.com/TwiN/gatus/v4/client" + "github.com/TwiN/gatus/v4/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 a46fe64c..a21f894d 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/v3/alerting/alert" - "github.com/TwiN/gatus/v3/core" + "github.com/TwiN/gatus/v4/alerting/alert" + "github.com/TwiN/gatus/v4/core" ) func TestTwilioAlertProvider_IsValid(t *testing.T) { diff --git a/client/client_test.go b/client/client_test.go index 5da2f55a..1ccf1b56 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - "github.com/TwiN/gatus/v3/test" + "github.com/TwiN/gatus/v4/test" ) func TestGetHTTPClient(t *testing.T) { diff --git a/config/config.go b/config/config.go index d3ce27c8..7668c929 100644 --- a/config/config.go +++ b/config/config.go @@ -6,15 +6,15 @@ import ( "os" "time" - "github.com/TwiN/gatus/v3/alerting" - "github.com/TwiN/gatus/v3/alerting/alert" - "github.com/TwiN/gatus/v3/alerting/provider" - "github.com/TwiN/gatus/v3/config/maintenance" - "github.com/TwiN/gatus/v3/config/ui" - "github.com/TwiN/gatus/v3/config/web" - "github.com/TwiN/gatus/v3/core" - "github.com/TwiN/gatus/v3/security" - "github.com/TwiN/gatus/v3/storage" + "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/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" "gopkg.in/yaml.v2" ) diff --git a/config/config_test.go b/config/config_test.go index dbad1661..1a013692 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -5,22 +5,22 @@ import ( "testing" "time" - "github.com/TwiN/gatus/v3/alerting" - "github.com/TwiN/gatus/v3/alerting/alert" - "github.com/TwiN/gatus/v3/alerting/provider/custom" - "github.com/TwiN/gatus/v3/alerting/provider/discord" - "github.com/TwiN/gatus/v3/alerting/provider/mattermost" - "github.com/TwiN/gatus/v3/alerting/provider/messagebird" - "github.com/TwiN/gatus/v3/alerting/provider/pagerduty" - "github.com/TwiN/gatus/v3/alerting/provider/slack" - "github.com/TwiN/gatus/v3/alerting/provider/teams" - "github.com/TwiN/gatus/v3/alerting/provider/telegram" - "github.com/TwiN/gatus/v3/alerting/provider/twilio" - "github.com/TwiN/gatus/v3/client" - "github.com/TwiN/gatus/v3/config/ui" - "github.com/TwiN/gatus/v3/config/web" - "github.com/TwiN/gatus/v3/core" - "github.com/TwiN/gatus/v3/storage" + "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/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/client" + "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/storage" ) func TestLoadFileThatDoesNotExist(t *testing.T) { diff --git a/controller/controller.go b/controller/controller.go index e36e613d..3ff9043e 100644 --- a/controller/controller.go +++ b/controller/controller.go @@ -8,10 +8,10 @@ import ( "os" "time" - "github.com/TwiN/gatus/v3/config/ui" - "github.com/TwiN/gatus/v3/config/web" - "github.com/TwiN/gatus/v3/controller/handler" - "github.com/TwiN/gatus/v3/security" + "github.com/TwiN/gatus/v4/config/ui" + "github.com/TwiN/gatus/v4/config/web" + "github.com/TwiN/gatus/v4/controller/handler" + "github.com/TwiN/gatus/v4/security" ) var ( diff --git a/controller/controller_test.go b/controller/controller_test.go index 865dfc5e..872795c7 100644 --- a/controller/controller_test.go +++ b/controller/controller_test.go @@ -7,9 +7,9 @@ import ( "os" "testing" - "github.com/TwiN/gatus/v3/config" - "github.com/TwiN/gatus/v3/config/web" - "github.com/TwiN/gatus/v3/core" + "github.com/TwiN/gatus/v4/config" + "github.com/TwiN/gatus/v4/config/web" + "github.com/TwiN/gatus/v4/core" ) func TestHandle(t *testing.T) { diff --git a/controller/handler/badge.go b/controller/handler/badge.go index 96967c25..99bae67b 100644 --- a/controller/handler/badge.go +++ b/controller/handler/badge.go @@ -7,9 +7,9 @@ import ( "strings" "time" - "github.com/TwiN/gatus/v3/storage/store" - "github.com/TwiN/gatus/v3/storage/store/common" - "github.com/TwiN/gatus/v3/storage/store/common/paging" + "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/gorilla/mux" ) diff --git a/controller/handler/badge_test.go b/controller/handler/badge_test.go index fe043a00..1ba15fdc 100644 --- a/controller/handler/badge_test.go +++ b/controller/handler/badge_test.go @@ -7,10 +7,10 @@ import ( "testing" "time" - "github.com/TwiN/gatus/v3/config" - "github.com/TwiN/gatus/v3/core" - "github.com/TwiN/gatus/v3/storage/store" - "github.com/TwiN/gatus/v3/watchdog" + "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" ) func TestBadge(t *testing.T) { diff --git a/controller/handler/chart.go b/controller/handler/chart.go index d2df7809..15622496 100644 --- a/controller/handler/chart.go +++ b/controller/handler/chart.go @@ -7,8 +7,8 @@ import ( "sort" "time" - "github.com/TwiN/gatus/v3/storage/store" - "github.com/TwiN/gatus/v3/storage/store/common" + "github.com/TwiN/gatus/v4/storage/store" + "github.com/TwiN/gatus/v4/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 f15f5e6e..7c4d686c 100644 --- a/controller/handler/chart_test.go +++ b/controller/handler/chart_test.go @@ -6,10 +6,10 @@ import ( "testing" "time" - "github.com/TwiN/gatus/v3/config" - "github.com/TwiN/gatus/v3/core" - "github.com/TwiN/gatus/v3/storage/store" - "github.com/TwiN/gatus/v3/watchdog" + "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" ) func TestResponseTimeChart(t *testing.T) { diff --git a/controller/handler/config.go b/controller/handler/config.go index c7c62319..40a15fee 100644 --- a/controller/handler/config.go +++ b/controller/handler/config.go @@ -4,7 +4,7 @@ import ( "fmt" "net/http" - "github.com/TwiN/gatus/v3/security" + "github.com/TwiN/gatus/v4/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 25d67f46..e720ceb0 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/v3/security" + "github.com/TwiN/gatus/v4/security" "github.com/gorilla/mux" ) diff --git a/controller/handler/endpoint_status.go b/controller/handler/endpoint_status.go index 4f487787..9e5f1e7a 100644 --- a/controller/handler/endpoint_status.go +++ b/controller/handler/endpoint_status.go @@ -10,9 +10,9 @@ import ( "strings" "time" - "github.com/TwiN/gatus/v3/storage/store" - "github.com/TwiN/gatus/v3/storage/store/common" - "github.com/TwiN/gatus/v3/storage/store/common/paging" + "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/gocache/v2" "github.com/gorilla/mux" ) diff --git a/controller/handler/endpoint_status_test.go b/controller/handler/endpoint_status_test.go index 5b0093b8..7249744c 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/v3/config" - "github.com/TwiN/gatus/v3/core" - "github.com/TwiN/gatus/v3/storage/store" - "github.com/TwiN/gatus/v3/watchdog" + "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" ) var ( diff --git a/controller/handler/handler.go b/controller/handler/handler.go index 5505d3ac..de0e0559 100644 --- a/controller/handler/handler.go +++ b/controller/handler/handler.go @@ -3,8 +3,8 @@ package handler import ( "net/http" - "github.com/TwiN/gatus/v3/config/ui" - "github.com/TwiN/gatus/v3/security" + "github.com/TwiN/gatus/v4/config/ui" + "github.com/TwiN/gatus/v4/security" "github.com/TwiN/health" "github.com/gorilla/mux" "github.com/prometheus/client_golang/prometheus/promhttp" diff --git a/controller/handler/spa.go b/controller/handler/spa.go index 653e6028..6c17d1bd 100644 --- a/controller/handler/spa.go +++ b/controller/handler/spa.go @@ -5,7 +5,7 @@ import ( "log" "net/http" - "github.com/TwiN/gatus/v3/config/ui" + "github.com/TwiN/gatus/v4/config/ui" ) func SinglePageApplication(staticFolder string, ui *ui.Config) http.HandlerFunc { diff --git a/controller/handler/spa_test.go b/controller/handler/spa_test.go index 7d968fa8..f5ba398f 100644 --- a/controller/handler/spa_test.go +++ b/controller/handler/spa_test.go @@ -6,10 +6,10 @@ import ( "testing" "time" - "github.com/TwiN/gatus/v3/config" - "github.com/TwiN/gatus/v3/core" - "github.com/TwiN/gatus/v3/storage/store" - "github.com/TwiN/gatus/v3/watchdog" + "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" ) func TestSinglePageApplication(t *testing.T) { diff --git a/controller/handler/util.go b/controller/handler/util.go index e8935480..c202561b 100644 --- a/controller/handler/util.go +++ b/controller/handler/util.go @@ -4,7 +4,7 @@ import ( "net/http" "strconv" - "github.com/TwiN/gatus/v3/storage/store/common" + "github.com/TwiN/gatus/v4/storage/store/common" ) const ( diff --git a/core/condition.go b/core/condition.go index 6820e92f..44b55f54 100644 --- a/core/condition.go +++ b/core/condition.go @@ -6,8 +6,8 @@ import ( "strings" "time" - "github.com/TwiN/gatus/v3/jsonpath" - "github.com/TwiN/gatus/v3/pattern" + "github.com/TwiN/gatus/v4/jsonpath" + "github.com/TwiN/gatus/v4/pattern" ) const ( diff --git a/core/dns_test.go b/core/dns_test.go index 91820b63..2a4bc437 100644 --- a/core/dns_test.go +++ b/core/dns_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "github.com/TwiN/gatus/v3/pattern" + "github.com/TwiN/gatus/v4/pattern" ) func TestIntegrationQuery(t *testing.T) { diff --git a/core/endpoint.go b/core/endpoint.go index 626c89b8..a03eca69 100644 --- a/core/endpoint.go +++ b/core/endpoint.go @@ -12,10 +12,10 @@ import ( "strings" "time" - "github.com/TwiN/gatus/v3/alerting/alert" - "github.com/TwiN/gatus/v3/client" - "github.com/TwiN/gatus/v3/core/ui" - "github.com/TwiN/gatus/v3/util" + "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" ) type EndpointType string diff --git a/core/endpoint_status.go b/core/endpoint_status.go index b6217880..8220c93d 100644 --- a/core/endpoint_status.go +++ b/core/endpoint_status.go @@ -1,6 +1,6 @@ package core -import "github.com/TwiN/gatus/v3/util" +import "github.com/TwiN/gatus/v4/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 68faa9c7..e59f5a2f 100644 --- a/core/endpoint_test.go +++ b/core/endpoint_test.go @@ -6,9 +6,9 @@ import ( "testing" "time" - "github.com/TwiN/gatus/v3/alerting/alert" - "github.com/TwiN/gatus/v3/client" - "github.com/TwiN/gatus/v3/core/ui" + "github.com/TwiN/gatus/v4/alerting/alert" + "github.com/TwiN/gatus/v4/client" + "github.com/TwiN/gatus/v4/core/ui" ) func TestEndpoint_IsEnabled(t *testing.T) { diff --git a/go.mod b/go.mod index 3a93ff91..97983727 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/TwiN/gatus/v3 +module github.com/TwiN/gatus/v4 go 1.18 diff --git a/main.go b/main.go index b70c6cdd..b052b1c7 100644 --- a/main.go +++ b/main.go @@ -7,10 +7,10 @@ import ( "syscall" "time" - "github.com/TwiN/gatus/v3/config" - "github.com/TwiN/gatus/v3/controller" - "github.com/TwiN/gatus/v3/storage/store" - "github.com/TwiN/gatus/v3/watchdog" + "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" ) func main() { diff --git a/metrics/metrics.go b/metrics/metrics.go index 27f334f9..d4796a4c 100644 --- a/metrics/metrics.go +++ b/metrics/metrics.go @@ -3,7 +3,7 @@ package metrics import ( "strconv" - "github.com/TwiN/gatus/v3/core" + "github.com/TwiN/gatus/v4/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 1666a4f2..937244f6 100644 --- a/metrics/metrics_test.go +++ b/metrics/metrics_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - "github.com/TwiN/gatus/v3/core" + "github.com/TwiN/gatus/v4/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 91519665..d64ac942 100644 --- a/storage/store/memory/memory.go +++ b/storage/store/memory/memory.go @@ -6,10 +6,10 @@ import ( "sync" "time" - "github.com/TwiN/gatus/v3/core" - "github.com/TwiN/gatus/v3/storage/store/common" - "github.com/TwiN/gatus/v3/storage/store/common/paging" - "github.com/TwiN/gatus/v3/util" + "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/gocache/v2" ) diff --git a/storage/store/memory/memory_test.go b/storage/store/memory/memory_test.go index 72bc0e36..712bf426 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/v3/core" - "github.com/TwiN/gatus/v3/storage/store/common/paging" + "github.com/TwiN/gatus/v4/core" + "github.com/TwiN/gatus/v4/storage/store/common/paging" ) var ( diff --git a/storage/store/memory/uptime.go b/storage/store/memory/uptime.go index e040f1df..88a7cac6 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/v3/core" + "github.com/TwiN/gatus/v4/core" ) const ( diff --git a/storage/store/memory/uptime_bench_test.go b/storage/store/memory/uptime_bench_test.go index b3a9a715..e7d51a54 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/v3/core" + "github.com/TwiN/gatus/v4/core" ) func BenchmarkProcessUptimeAfterResult(b *testing.B) { diff --git a/storage/store/memory/uptime_test.go b/storage/store/memory/uptime_test.go index 0e3831ca..4c643882 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/v3/core" + "github.com/TwiN/gatus/v4/core" ) func TestProcessUptimeAfterResult(t *testing.T) { diff --git a/storage/store/memory/util.go b/storage/store/memory/util.go index 2db45a06..e66b6020 100644 --- a/storage/store/memory/util.go +++ b/storage/store/memory/util.go @@ -1,9 +1,9 @@ package memory import ( - "github.com/TwiN/gatus/v3/core" - "github.com/TwiN/gatus/v3/storage/store/common" - "github.com/TwiN/gatus/v3/storage/store/common/paging" + "github.com/TwiN/gatus/v4/core" + "github.com/TwiN/gatus/v4/storage/store/common" + "github.com/TwiN/gatus/v4/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 948a04d1..06281e22 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/v3/core" - "github.com/TwiN/gatus/v3/storage/store/common" - "github.com/TwiN/gatus/v3/storage/store/common/paging" + "github.com/TwiN/gatus/v4/core" + "github.com/TwiN/gatus/v4/storage/store/common" + "github.com/TwiN/gatus/v4/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 4075bcdd..d1becbd2 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/v3/core" - "github.com/TwiN/gatus/v3/storage/store/common" - "github.com/TwiN/gatus/v3/storage/store/common/paging" + "github.com/TwiN/gatus/v4/core" + "github.com/TwiN/gatus/v4/storage/store/common" + "github.com/TwiN/gatus/v4/storage/store/common/paging" ) func TestAddResult(t *testing.T) { diff --git a/storage/store/sql/sql.go b/storage/store/sql/sql.go index 666e8753..e3d47009 100644 --- a/storage/store/sql/sql.go +++ b/storage/store/sql/sql.go @@ -9,10 +9,10 @@ import ( "strings" "time" - "github.com/TwiN/gatus/v3/core" - "github.com/TwiN/gatus/v3/storage/store/common" - "github.com/TwiN/gatus/v3/storage/store/common/paging" - "github.com/TwiN/gatus/v3/util" + "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/lib/pq" _ "modernc.org/sqlite" ) diff --git a/storage/store/sql/sql_test.go b/storage/store/sql/sql_test.go index 79113103..02568f3c 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/v3/core" - "github.com/TwiN/gatus/v3/storage/store/common" - "github.com/TwiN/gatus/v3/storage/store/common/paging" + "github.com/TwiN/gatus/v4/core" + "github.com/TwiN/gatus/v4/storage/store/common" + "github.com/TwiN/gatus/v4/storage/store/common/paging" ) var ( diff --git a/storage/store/store.go b/storage/store/store.go index fc1afa8a..11de69ef 100644 --- a/storage/store/store.go +++ b/storage/store/store.go @@ -5,11 +5,11 @@ import ( "log" "time" - "github.com/TwiN/gatus/v3/core" - "github.com/TwiN/gatus/v3/storage" - "github.com/TwiN/gatus/v3/storage/store/common/paging" - "github.com/TwiN/gatus/v3/storage/store/memory" - "github.com/TwiN/gatus/v3/storage/store/sql" + "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" ) // Store is the interface that each stores should implement diff --git a/storage/store/store_bench_test.go b/storage/store/store_bench_test.go index 9e66716d..940fdfb3 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/v3/core" - "github.com/TwiN/gatus/v3/storage/store/common/paging" - "github.com/TwiN/gatus/v3/storage/store/memory" - "github.com/TwiN/gatus/v3/storage/store/sql" + "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" ) func BenchmarkStore_GetAllEndpointStatuses(b *testing.B) { diff --git a/storage/store/store_test.go b/storage/store/store_test.go index aa561ca4..8e6e547d 100644 --- a/storage/store/store_test.go +++ b/storage/store/store_test.go @@ -4,12 +4,12 @@ import ( "testing" "time" - "github.com/TwiN/gatus/v3/core" - "github.com/TwiN/gatus/v3/storage" - "github.com/TwiN/gatus/v3/storage/store/common" - "github.com/TwiN/gatus/v3/storage/store/common/paging" - "github.com/TwiN/gatus/v3/storage/store/memory" - "github.com/TwiN/gatus/v3/storage/store/sql" + "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" ) var ( diff --git a/watchdog/alerting.go b/watchdog/alerting.go index 63e0ff7f..df542146 100644 --- a/watchdog/alerting.go +++ b/watchdog/alerting.go @@ -5,8 +5,8 @@ import ( "log" "os" - "github.com/TwiN/gatus/v3/alerting" - "github.com/TwiN/gatus/v3/core" + "github.com/TwiN/gatus/v4/alerting" + "github.com/TwiN/gatus/v4/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 7b4765dc..c1b9f089 100644 --- a/watchdog/alerting_test.go +++ b/watchdog/alerting_test.go @@ -4,20 +4,20 @@ import ( "os" "testing" - "github.com/TwiN/gatus/v3/alerting" - "github.com/TwiN/gatus/v3/alerting/alert" - "github.com/TwiN/gatus/v3/alerting/provider/custom" - "github.com/TwiN/gatus/v3/alerting/provider/discord" - "github.com/TwiN/gatus/v3/alerting/provider/email" - "github.com/TwiN/gatus/v3/alerting/provider/mattermost" - "github.com/TwiN/gatus/v3/alerting/provider/messagebird" - "github.com/TwiN/gatus/v3/alerting/provider/pagerduty" - "github.com/TwiN/gatus/v3/alerting/provider/slack" - "github.com/TwiN/gatus/v3/alerting/provider/teams" - "github.com/TwiN/gatus/v3/alerting/provider/telegram" - "github.com/TwiN/gatus/v3/alerting/provider/twilio" - "github.com/TwiN/gatus/v3/config" - "github.com/TwiN/gatus/v3/core" + "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/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" ) func TestHandleAlerting(t *testing.T) { diff --git a/watchdog/watchdog.go b/watchdog/watchdog.go index 454be010..1c57aca2 100644 --- a/watchdog/watchdog.go +++ b/watchdog/watchdog.go @@ -6,12 +6,12 @@ import ( "sync" "time" - "github.com/TwiN/gatus/v3/alerting" - "github.com/TwiN/gatus/v3/config" - "github.com/TwiN/gatus/v3/config/maintenance" - "github.com/TwiN/gatus/v3/core" - "github.com/TwiN/gatus/v3/metrics" - "github.com/TwiN/gatus/v3/storage/store" + "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" ) var (