From 6c45f5b99cdf5df9b3cb9e06eeb90dec0f1b1535 Mon Sep 17 00:00:00 2001 From: TwiN Date: Thu, 7 Oct 2021 21:28:04 -0400 Subject: [PATCH] =?UTF-8?q?=E2=9A=A0=20Migrate=20TwinProduction/gatus=20to?= =?UTF-8?q?=20TwiN/gatus?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/FUNDING.yml | 2 +- LICENSE.md | 2 +- README.md | 16 +++---- alerting/config.go | 22 ++++----- alerting/provider/custom/custom.go | 6 +-- alerting/provider/custom/custom_test.go | 4 +- alerting/provider/discord/discord.go | 6 +-- alerting/provider/discord/discord_test.go | 4 +- alerting/provider/mattermost/mattermost.go | 10 ++-- .../provider/mattermost/mattermost_test.go | 4 +- alerting/provider/messagebird/messagebird.go | 6 +-- .../provider/messagebird/messagebird_test.go | 4 +- alerting/provider/pagerduty/pagerduty.go | 6 +-- alerting/provider/pagerduty/pagerduty_test.go | 4 +- alerting/provider/provider.go | 22 ++++----- alerting/provider/provider_test.go | 2 +- alerting/provider/slack/slack.go | 6 +-- alerting/provider/slack/slack_test.go | 4 +- alerting/provider/teams/teams.go | 6 +-- alerting/provider/teams/teams_test.go | 4 +- alerting/provider/telegram/telegram.go | 6 +-- alerting/provider/telegram/telegram_test.go | 4 +- alerting/provider/twilio/twilio.go | 6 +-- alerting/provider/twilio/twilio_test.go | 4 +- client/client.go | 2 +- config/config.go | 18 +++---- config/config_test.go | 30 ++++++------ controller/controller.go | 8 ++-- controller/controller_test.go | 6 +-- controller/handler/badge.go | 4 +- controller/handler/badge_test.go | 8 ++-- controller/handler/chart.go | 4 +- controller/handler/chart_test.go | 8 ++-- controller/handler/handler.go | 6 +-- controller/handler/service_status.go | 8 ++-- controller/handler/service_status_test.go | 8 ++-- 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/service.go | 8 ++-- core/service_test.go | 4 +- docs/pagerduty-integration-guide.md | 4 +- go.mod | 6 +-- go.sum | 8 ++-- main.go | 8 ++-- metric/metric.go | 2 +- storage/storage.go | 6 +-- storage/storage_test.go | 2 +- storage/store/memory/memory.go | 10 ++-- 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 | 8 ++-- storage/store/store_bench_test.go | 8 ++-- storage/store/store_test.go | 10 ++-- .../gocache/.gitattributes | 0 .../gocache/.gitignore | 0 .../gocache/Dockerfile | 0 .../gocache/LICENSE.md | 2 +- .../{TwinProduction => TwiN}/gocache/Makefile | 0 .../gocache/README.md | 24 +++++----- .../{TwinProduction => TwiN}/gocache/entry.go | 0 .../gocache/gocache.go | 6 +-- .../gocache/janitor.go | 0 .../gocache/pattern.go | 0 .../gocache/persistence.go | 4 +- .../gocache/policy.go | 0 .../gocache/statistics.go | 0 vendor/github.com/TwiN/health/.gitattributes | 1 + .../health/.gitignore | 0 vendor/github.com/TwiN/health/LICENSE.md | 9 ++++ .../{TwinProduction => TwiN}/health/README.md | 48 +++++++++---------- .../{TwinProduction => TwiN}/health/health.go | 4 +- vendor/github.com/TwiN/health/status.go | 8 ++++ .../TwinProduction/health/.gitattributes | 1 - .../TwinProduction/health/status.go | 8 ---- vendor/modules.txt | 10 ++-- watchdog/alerting.go | 6 +-- watchdog/alerting_test.go | 12 ++--- watchdog/watchdog.go | 12 ++--- web/app/src/components/Social.vue | 2 +- web/static/css/app.css | 2 +- web/static/js/app-legacy.js | 2 +- web/static/js/app.js | 2 +- 92 files changed, 293 insertions(+), 284 deletions(-) rename vendor/github.com/{TwinProduction => TwiN}/gocache/.gitattributes (100%) rename vendor/github.com/{TwinProduction => TwiN}/gocache/.gitignore (100%) rename vendor/github.com/{TwinProduction => TwiN}/gocache/Dockerfile (100%) rename vendor/github.com/{TwinProduction => TwiN}/gocache/LICENSE.md (96%) rename vendor/github.com/{TwinProduction => TwiN}/gocache/Makefile (100%) rename vendor/github.com/{TwinProduction => TwiN}/gocache/README.md (96%) rename vendor/github.com/{TwinProduction => TwiN}/gocache/entry.go (100%) rename vendor/github.com/{TwinProduction => TwiN}/gocache/gocache.go (98%) rename vendor/github.com/{TwinProduction => TwiN}/gocache/janitor.go (100%) rename vendor/github.com/{TwinProduction => TwiN}/gocache/pattern.go (100%) rename vendor/github.com/{TwinProduction => TwiN}/gocache/persistence.go (96%) rename vendor/github.com/{TwinProduction => TwiN}/gocache/policy.go (100%) rename vendor/github.com/{TwinProduction => TwiN}/gocache/statistics.go (100%) create mode 100644 vendor/github.com/TwiN/health/.gitattributes rename vendor/github.com/{TwinProduction => TwiN}/health/.gitignore (100%) create mode 100644 vendor/github.com/TwiN/health/LICENSE.md rename vendor/github.com/{TwinProduction => TwiN}/health/README.md (56%) rename vendor/github.com/{TwinProduction => TwiN}/health/health.go (81%) create mode 100644 vendor/github.com/TwiN/health/status.go delete mode 100644 vendor/github.com/TwinProduction/health/.gitattributes delete mode 100644 vendor/github.com/TwinProduction/health/status.go diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index c49dbd5a..468866bc 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1 +1 @@ -github: [TwinProduction] +github: [TwiN] diff --git a/LICENSE.md b/LICENSE.md index c608627d..ca64af38 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2021 TwinProduction +Copyright (c) 2021 TwiN Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: diff --git a/README.md b/README.md index a91cf298..2a54da61 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ ![Gatus](.github/assets/logo-with-name.png) -![build](https://github.com/TwinProduction/gatus/workflows/build/badge.svg?branch=master) -[![Go Report Card](https://goreportcard.com/badge/github.com/TwinProduction/gatus?)](https://goreportcard.com/report/github.com/TwinProduction/gatus) -[![codecov](https://codecov.io/gh/TwinProduction/gatus/branch/master/graph/badge.svg)](https://codecov.io/gh/TwinProduction/gatus) -[![Go version](https://img.shields.io/github/go-mod/go-version/TwinProduction/gatus.svg)](https://github.com/TwinProduction/gatus) +![build](https://github.com/TwiN/gatus/workflows/build/badge.svg?branch=master) +[![Go Report Card](https://goreportcard.com/badge/github.com/TwiN/gatus?)](https://goreportcard.com/report/github.com/TwiN/gatus) +[![codecov](https://codecov.io/gh/TwiN/gatus/branch/master/graph/badge.svg)](https://codecov.io/gh/TwiN/gatus) +[![Go version](https://img.shields.io/github/go-mod/go-version/TwiN/gatus.svg)](https://github.com/TwiN/gatus) [![Docker pulls](https://img.shields.io/docker/pulls/twinproduction/gatus.svg)](https://cloud.docker.com/repository/docker/twinproduction/gatus) [![Join Discord server](https://img.shields.io/discord/442432928614449155.svg?label=&logo=discord&logoColor=ffffff&color=7389D8&labelColor=6A7EC2)](https://discord.gg/TDfjeHmXDQ) -[![Follow TwinProduction](https://img.shields.io/github/followers/TwinProduction?label=Follow&style=social)](https://github.com/TwinProduction) +[![Follow TwiN](https://img.shields.io/github/followers/TwiN?label=Follow&style=social)](https://github.com/TwiN) Gatus is a health dashboard that gives you the ability to monitor your services using HTTP, ICMP, TCP, and even DNS queries as well as evaluate the result of said queries by using a list of conditions on values like the status code, @@ -842,7 +842,7 @@ and [helmfile example](https://github.com/avakarev/gatus-chart#helmfileyaml-exam ### Terraform -Gatus can be deployed on Terraform by using the following module: [terraform-kubernetes-gatus](https://github.com/TwinProduction/terraform-kubernetes-gatus). +Gatus can be deployed on Terraform by using the following module: [terraform-kubernetes-gatus](https://github.com/TwiN/terraform-kubernetes-gatus). @@ -1064,7 +1064,7 @@ to make. **If you are not using a file storage**, updating the configuration while Gatus is running is effectively the same as restarting the application. -**NOTE:** Updates may not be detected if the config file is bound instead of the config folder. See [#151](https://github.com/TwinProduction/gatus/issues/151). +**NOTE:** Updates may not be detected if the config file is bound instead of the config folder. See [#151](https://github.com/TwiN/gatus/issues/151). ### Service groups @@ -1200,7 +1200,7 @@ No such header is required to query the API. ## Sponsors -You can find the full list of sponsors [here](https://github.com/sponsors/TwinProduction). +You can find the full list of sponsors [here](https://github.com/sponsors/TwiN). [](https://github.com/math280h) [](https://github.com/pyroscope-io) diff --git a/alerting/config.go b/alerting/config.go index 0a18dfce..76b471aa 100644 --- a/alerting/config.go +++ b/alerting/config.go @@ -1,17 +1,17 @@ package alerting import ( - "github.com/TwinProduction/gatus/v3/alerting/alert" - "github.com/TwinProduction/gatus/v3/alerting/provider" - "github.com/TwinProduction/gatus/v3/alerting/provider/custom" - "github.com/TwinProduction/gatus/v3/alerting/provider/discord" - "github.com/TwinProduction/gatus/v3/alerting/provider/mattermost" - "github.com/TwinProduction/gatus/v3/alerting/provider/messagebird" - "github.com/TwinProduction/gatus/v3/alerting/provider/pagerduty" - "github.com/TwinProduction/gatus/v3/alerting/provider/slack" - "github.com/TwinProduction/gatus/v3/alerting/provider/teams" - "github.com/TwinProduction/gatus/v3/alerting/provider/telegram" - "github.com/TwinProduction/gatus/v3/alerting/provider/twilio" + "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/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" ) // Config is the configuration for alerting providers diff --git a/alerting/provider/custom/custom.go b/alerting/provider/custom/custom.go index a74f02fb..37f16af1 100644 --- a/alerting/provider/custom/custom.go +++ b/alerting/provider/custom/custom.go @@ -9,9 +9,9 @@ import ( "os" "strings" - "github.com/TwinProduction/gatus/v3/alerting/alert" - "github.com/TwinProduction/gatus/v3/client" - "github.com/TwinProduction/gatus/v3/core" + "github.com/TwiN/gatus/v3/alerting/alert" + "github.com/TwiN/gatus/v3/client" + "github.com/TwiN/gatus/v3/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 97f7ec35..86bc5b49 100644 --- a/alerting/provider/custom/custom_test.go +++ b/alerting/provider/custom/custom_test.go @@ -4,8 +4,8 @@ import ( "io/ioutil" "testing" - "github.com/TwinProduction/gatus/v3/alerting/alert" - "github.com/TwinProduction/gatus/v3/core" + "github.com/TwiN/gatus/v3/alerting/alert" + "github.com/TwiN/gatus/v3/core" ) func TestAlertProvider_IsValid(t *testing.T) { diff --git a/alerting/provider/discord/discord.go b/alerting/provider/discord/discord.go index 429aebbd..3e57d844 100644 --- a/alerting/provider/discord/discord.go +++ b/alerting/provider/discord/discord.go @@ -4,9 +4,9 @@ import ( "fmt" "net/http" - "github.com/TwinProduction/gatus/v3/alerting/alert" - "github.com/TwinProduction/gatus/v3/alerting/provider/custom" - "github.com/TwinProduction/gatus/v3/core" + "github.com/TwiN/gatus/v3/alerting/alert" + "github.com/TwiN/gatus/v3/alerting/provider/custom" + "github.com/TwiN/gatus/v3/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 44fb995e..4f5d85ad 100644 --- a/alerting/provider/discord/discord_test.go +++ b/alerting/provider/discord/discord_test.go @@ -6,8 +6,8 @@ import ( "strings" "testing" - "github.com/TwinProduction/gatus/v3/alerting/alert" - "github.com/TwinProduction/gatus/v3/core" + "github.com/TwiN/gatus/v3/alerting/alert" + "github.com/TwiN/gatus/v3/core" ) func TestAlertProvider_IsValid(t *testing.T) { diff --git a/alerting/provider/mattermost/mattermost.go b/alerting/provider/mattermost/mattermost.go index 41fe92fd..b880b809 100644 --- a/alerting/provider/mattermost/mattermost.go +++ b/alerting/provider/mattermost/mattermost.go @@ -4,10 +4,10 @@ import ( "fmt" "net/http" - "github.com/TwinProduction/gatus/v3/alerting/alert" - "github.com/TwinProduction/gatus/v3/alerting/provider/custom" - "github.com/TwinProduction/gatus/v3/client" - "github.com/TwinProduction/gatus/v3/core" + "github.com/TwiN/gatus/v3/alerting/alert" + "github.com/TwiN/gatus/v3/alerting/provider/custom" + "github.com/TwiN/gatus/v3/client" + "github.com/TwiN/gatus/v3/core" ) // AlertProvider is the configuration necessary for sending an alert using Mattermost @@ -61,7 +61,7 @@ func (provider *AlertProvider) ToCustomAlertProvider(service *core.Service, aler Body: fmt.Sprintf(`{ "text": "", "username": "gatus", - "icon_url": "https://raw.githubusercontent.com/TwinProduction/gatus/master/static/logo.png", + "icon_url": "https://raw.githubusercontent.com/TwiN/gatus/master/static/logo.png", "attachments": [ { "title": ":rescue_worker_helmet: Gatus", diff --git a/alerting/provider/mattermost/mattermost_test.go b/alerting/provider/mattermost/mattermost_test.go index 30a49ff6..1ba2be21 100644 --- a/alerting/provider/mattermost/mattermost_test.go +++ b/alerting/provider/mattermost/mattermost_test.go @@ -6,8 +6,8 @@ import ( "strings" "testing" - "github.com/TwinProduction/gatus/v3/alerting/alert" - "github.com/TwinProduction/gatus/v3/core" + "github.com/TwiN/gatus/v3/alerting/alert" + "github.com/TwiN/gatus/v3/core" ) func TestAlertProvider_IsValid(t *testing.T) { diff --git a/alerting/provider/messagebird/messagebird.go b/alerting/provider/messagebird/messagebird.go index 1ee9d2ea..18727f92 100644 --- a/alerting/provider/messagebird/messagebird.go +++ b/alerting/provider/messagebird/messagebird.go @@ -4,9 +4,9 @@ import ( "fmt" "net/http" - "github.com/TwinProduction/gatus/v3/alerting/alert" - "github.com/TwinProduction/gatus/v3/alerting/provider/custom" - "github.com/TwinProduction/gatus/v3/core" + "github.com/TwiN/gatus/v3/alerting/alert" + "github.com/TwiN/gatus/v3/alerting/provider/custom" + "github.com/TwiN/gatus/v3/core" ) const ( diff --git a/alerting/provider/messagebird/messagebird_test.go b/alerting/provider/messagebird/messagebird_test.go index 11719303..0f9789a1 100644 --- a/alerting/provider/messagebird/messagebird_test.go +++ b/alerting/provider/messagebird/messagebird_test.go @@ -6,8 +6,8 @@ import ( "strings" "testing" - "github.com/TwinProduction/gatus/v3/alerting/alert" - "github.com/TwinProduction/gatus/v3/core" + "github.com/TwiN/gatus/v3/alerting/alert" + "github.com/TwiN/gatus/v3/core" ) func TestMessagebirdAlertProvider_IsValid(t *testing.T) { diff --git a/alerting/provider/pagerduty/pagerduty.go b/alerting/provider/pagerduty/pagerduty.go index afeba036..a1d49ca1 100644 --- a/alerting/provider/pagerduty/pagerduty.go +++ b/alerting/provider/pagerduty/pagerduty.go @@ -4,9 +4,9 @@ import ( "fmt" "net/http" - "github.com/TwinProduction/gatus/v3/alerting/alert" - "github.com/TwinProduction/gatus/v3/alerting/provider/custom" - "github.com/TwinProduction/gatus/v3/core" + "github.com/TwiN/gatus/v3/alerting/alert" + "github.com/TwiN/gatus/v3/alerting/provider/custom" + "github.com/TwiN/gatus/v3/core" ) const ( diff --git a/alerting/provider/pagerduty/pagerduty_test.go b/alerting/provider/pagerduty/pagerduty_test.go index a4a86af5..8225a757 100644 --- a/alerting/provider/pagerduty/pagerduty_test.go +++ b/alerting/provider/pagerduty/pagerduty_test.go @@ -6,8 +6,8 @@ import ( "strings" "testing" - "github.com/TwinProduction/gatus/v3/alerting/alert" - "github.com/TwinProduction/gatus/v3/core" + "github.com/TwiN/gatus/v3/alerting/alert" + "github.com/TwiN/gatus/v3/core" ) func TestAlertProvider_IsValid(t *testing.T) { diff --git a/alerting/provider/provider.go b/alerting/provider/provider.go index d34dbd3d..5a7e8962 100644 --- a/alerting/provider/provider.go +++ b/alerting/provider/provider.go @@ -1,17 +1,17 @@ package provider import ( - "github.com/TwinProduction/gatus/v3/alerting/alert" - "github.com/TwinProduction/gatus/v3/alerting/provider/custom" - "github.com/TwinProduction/gatus/v3/alerting/provider/discord" - "github.com/TwinProduction/gatus/v3/alerting/provider/mattermost" - "github.com/TwinProduction/gatus/v3/alerting/provider/messagebird" - "github.com/TwinProduction/gatus/v3/alerting/provider/pagerduty" - "github.com/TwinProduction/gatus/v3/alerting/provider/slack" - "github.com/TwinProduction/gatus/v3/alerting/provider/teams" - "github.com/TwinProduction/gatus/v3/alerting/provider/telegram" - "github.com/TwinProduction/gatus/v3/alerting/provider/twilio" - "github.com/TwinProduction/gatus/v3/core" + "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/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 961fe4e6..8c4a7109 100644 --- a/alerting/provider/provider_test.go +++ b/alerting/provider/provider_test.go @@ -3,7 +3,7 @@ package provider import ( "testing" - "github.com/TwinProduction/gatus/v3/alerting/alert" + "github.com/TwiN/gatus/v3/alerting/alert" ) func TestParseWithDefaultAlert(t *testing.T) { diff --git a/alerting/provider/slack/slack.go b/alerting/provider/slack/slack.go index c9293312..920b4bee 100644 --- a/alerting/provider/slack/slack.go +++ b/alerting/provider/slack/slack.go @@ -4,9 +4,9 @@ import ( "fmt" "net/http" - "github.com/TwinProduction/gatus/v3/alerting/alert" - "github.com/TwinProduction/gatus/v3/alerting/provider/custom" - "github.com/TwinProduction/gatus/v3/core" + "github.com/TwiN/gatus/v3/alerting/alert" + "github.com/TwiN/gatus/v3/alerting/provider/custom" + "github.com/TwiN/gatus/v3/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 7b5e1548..9e43212a 100644 --- a/alerting/provider/slack/slack_test.go +++ b/alerting/provider/slack/slack_test.go @@ -6,8 +6,8 @@ import ( "strings" "testing" - "github.com/TwinProduction/gatus/v3/alerting/alert" - "github.com/TwinProduction/gatus/v3/core" + "github.com/TwiN/gatus/v3/alerting/alert" + "github.com/TwiN/gatus/v3/core" ) func TestAlertProvider_IsValid(t *testing.T) { diff --git a/alerting/provider/teams/teams.go b/alerting/provider/teams/teams.go index ce89f7d5..b74e4c63 100644 --- a/alerting/provider/teams/teams.go +++ b/alerting/provider/teams/teams.go @@ -4,9 +4,9 @@ import ( "fmt" "net/http" - "github.com/TwinProduction/gatus/v3/alerting/alert" - "github.com/TwinProduction/gatus/v3/alerting/provider/custom" - "github.com/TwinProduction/gatus/v3/core" + "github.com/TwiN/gatus/v3/alerting/alert" + "github.com/TwiN/gatus/v3/alerting/provider/custom" + "github.com/TwiN/gatus/v3/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 36dd0ffd..405922c5 100644 --- a/alerting/provider/teams/teams_test.go +++ b/alerting/provider/teams/teams_test.go @@ -6,8 +6,8 @@ import ( "strings" "testing" - "github.com/TwinProduction/gatus/v3/alerting/alert" - "github.com/TwinProduction/gatus/v3/core" + "github.com/TwiN/gatus/v3/alerting/alert" + "github.com/TwiN/gatus/v3/core" ) func TestAlertProvider_IsValid(t *testing.T) { diff --git a/alerting/provider/telegram/telegram.go b/alerting/provider/telegram/telegram.go index 962358ec..3754ffe5 100644 --- a/alerting/provider/telegram/telegram.go +++ b/alerting/provider/telegram/telegram.go @@ -4,9 +4,9 @@ import ( "fmt" "net/http" - "github.com/TwinProduction/gatus/v3/alerting/alert" - "github.com/TwinProduction/gatus/v3/alerting/provider/custom" - "github.com/TwinProduction/gatus/v3/core" + "github.com/TwiN/gatus/v3/alerting/alert" + "github.com/TwiN/gatus/v3/alerting/provider/custom" + "github.com/TwiN/gatus/v3/core" ) // AlertProvider is the configuration necessary for sending an alert using Telegram diff --git a/alerting/provider/telegram/telegram_test.go b/alerting/provider/telegram/telegram_test.go index a9d0855e..fa3bec98 100644 --- a/alerting/provider/telegram/telegram_test.go +++ b/alerting/provider/telegram/telegram_test.go @@ -7,8 +7,8 @@ import ( "strings" "testing" - "github.com/TwinProduction/gatus/v3/alerting/alert" - "github.com/TwinProduction/gatus/v3/core" + "github.com/TwiN/gatus/v3/alerting/alert" + "github.com/TwiN/gatus/v3/core" ) func TestAlertProvider_IsValid(t *testing.T) { diff --git a/alerting/provider/twilio/twilio.go b/alerting/provider/twilio/twilio.go index ef82fa06..80bec9f2 100644 --- a/alerting/provider/twilio/twilio.go +++ b/alerting/provider/twilio/twilio.go @@ -6,9 +6,9 @@ import ( "net/http" "net/url" - "github.com/TwinProduction/gatus/v3/alerting/alert" - "github.com/TwinProduction/gatus/v3/alerting/provider/custom" - "github.com/TwinProduction/gatus/v3/core" + "github.com/TwiN/gatus/v3/alerting/alert" + "github.com/TwiN/gatus/v3/alerting/provider/custom" + "github.com/TwiN/gatus/v3/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 5f81e460..c60fceb2 100644 --- a/alerting/provider/twilio/twilio_test.go +++ b/alerting/provider/twilio/twilio_test.go @@ -5,8 +5,8 @@ import ( "strings" "testing" - "github.com/TwinProduction/gatus/v3/alerting/alert" - "github.com/TwinProduction/gatus/v3/core" + "github.com/TwiN/gatus/v3/alerting/alert" + "github.com/TwiN/gatus/v3/core" ) func TestTwilioAlertProvider_IsValid(t *testing.T) { diff --git a/client/client.go b/client/client.go index 1d0a859e..8e78f718 100644 --- a/client/client.go +++ b/client/client.go @@ -86,7 +86,7 @@ func Ping(address string, config *Config) (bool, time.Duration) { pinger.Count = 1 pinger.Timeout = config.Timeout // Set the pinger's privileged mode to true for every GOOS except darwin - // See https://github.com/TwinProduction/gatus/issues/132 + // See https://github.com/TwiN/gatus/issues/132 // // Note that for this to work on Linux, Gatus must run with sudo privileges. // See https://github.com/go-ping/ping#linux diff --git a/config/config.go b/config/config.go index d18e7468..1b5df6ab 100644 --- a/config/config.go +++ b/config/config.go @@ -7,15 +7,15 @@ import ( "os" "time" - "github.com/TwinProduction/gatus/v3/alerting" - "github.com/TwinProduction/gatus/v3/alerting/alert" - "github.com/TwinProduction/gatus/v3/alerting/provider" - "github.com/TwinProduction/gatus/v3/config/maintenance" - "github.com/TwinProduction/gatus/v3/config/ui" - "github.com/TwinProduction/gatus/v3/config/web" - "github.com/TwinProduction/gatus/v3/core" - "github.com/TwinProduction/gatus/v3/security" - "github.com/TwinProduction/gatus/v3/storage" + "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" "gopkg.in/yaml.v2" ) diff --git a/config/config_test.go b/config/config_test.go index 32baaf2e..75f8be69 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -5,21 +5,21 @@ import ( "testing" "time" - "github.com/TwinProduction/gatus/v3/alerting" - "github.com/TwinProduction/gatus/v3/alerting/alert" - "github.com/TwinProduction/gatus/v3/alerting/provider/custom" - "github.com/TwinProduction/gatus/v3/alerting/provider/discord" - "github.com/TwinProduction/gatus/v3/alerting/provider/mattermost" - "github.com/TwinProduction/gatus/v3/alerting/provider/messagebird" - "github.com/TwinProduction/gatus/v3/alerting/provider/pagerduty" - "github.com/TwinProduction/gatus/v3/alerting/provider/slack" - "github.com/TwinProduction/gatus/v3/alerting/provider/teams" - "github.com/TwinProduction/gatus/v3/alerting/provider/telegram" - "github.com/TwinProduction/gatus/v3/alerting/provider/twilio" - "github.com/TwinProduction/gatus/v3/client" - "github.com/TwinProduction/gatus/v3/config/ui" - "github.com/TwinProduction/gatus/v3/config/web" - "github.com/TwinProduction/gatus/v3/core" + "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" ) func TestLoadFileThatDoesNotExist(t *testing.T) { diff --git a/controller/controller.go b/controller/controller.go index ccaeff57..e36e613d 100644 --- a/controller/controller.go +++ b/controller/controller.go @@ -8,10 +8,10 @@ import ( "os" "time" - "github.com/TwinProduction/gatus/v3/config/ui" - "github.com/TwinProduction/gatus/v3/config/web" - "github.com/TwinProduction/gatus/v3/controller/handler" - "github.com/TwinProduction/gatus/v3/security" + "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" ) var ( diff --git a/controller/controller_test.go b/controller/controller_test.go index d97bbe7f..a3c8618a 100644 --- a/controller/controller_test.go +++ b/controller/controller_test.go @@ -7,9 +7,9 @@ import ( "os" "testing" - "github.com/TwinProduction/gatus/v3/config" - "github.com/TwinProduction/gatus/v3/config/web" - "github.com/TwinProduction/gatus/v3/core" + "github.com/TwiN/gatus/v3/config" + "github.com/TwiN/gatus/v3/config/web" + "github.com/TwiN/gatus/v3/core" ) func TestHandle(t *testing.T) { diff --git a/controller/handler/badge.go b/controller/handler/badge.go index d0fe49bb..625736ba 100644 --- a/controller/handler/badge.go +++ b/controller/handler/badge.go @@ -7,8 +7,8 @@ import ( "strings" "time" - "github.com/TwinProduction/gatus/v3/storage" - "github.com/TwinProduction/gatus/v3/storage/store/common" + "github.com/TwiN/gatus/v3/storage" + "github.com/TwiN/gatus/v3/storage/store/common" "github.com/gorilla/mux" ) diff --git a/controller/handler/badge_test.go b/controller/handler/badge_test.go index f97500ff..fb1b2172 100644 --- a/controller/handler/badge_test.go +++ b/controller/handler/badge_test.go @@ -7,10 +7,10 @@ import ( "testing" "time" - "github.com/TwinProduction/gatus/v3/config" - "github.com/TwinProduction/gatus/v3/core" - "github.com/TwinProduction/gatus/v3/storage" - "github.com/TwinProduction/gatus/v3/watchdog" + "github.com/TwiN/gatus/v3/config" + "github.com/TwiN/gatus/v3/core" + "github.com/TwiN/gatus/v3/storage" + "github.com/TwiN/gatus/v3/watchdog" ) func TestUptimeBadge(t *testing.T) { diff --git a/controller/handler/chart.go b/controller/handler/chart.go index b7bb59d0..80090619 100644 --- a/controller/handler/chart.go +++ b/controller/handler/chart.go @@ -7,8 +7,8 @@ import ( "sort" "time" - "github.com/TwinProduction/gatus/v3/storage" - "github.com/TwinProduction/gatus/v3/storage/store/common" + "github.com/TwiN/gatus/v3/storage" + "github.com/TwiN/gatus/v3/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 ff4f0e9b..be9cfbea 100644 --- a/controller/handler/chart_test.go +++ b/controller/handler/chart_test.go @@ -6,10 +6,10 @@ import ( "testing" "time" - "github.com/TwinProduction/gatus/v3/config" - "github.com/TwinProduction/gatus/v3/core" - "github.com/TwinProduction/gatus/v3/storage" - "github.com/TwinProduction/gatus/v3/watchdog" + "github.com/TwiN/gatus/v3/config" + "github.com/TwiN/gatus/v3/core" + "github.com/TwiN/gatus/v3/storage" + "github.com/TwiN/gatus/v3/watchdog" ) func TestResponseTimeChart(t *testing.T) { diff --git a/controller/handler/handler.go b/controller/handler/handler.go index 628578e0..0a396913 100644 --- a/controller/handler/handler.go +++ b/controller/handler/handler.go @@ -3,9 +3,9 @@ package handler import ( "net/http" - "github.com/TwinProduction/gatus/v3/config/ui" - "github.com/TwinProduction/gatus/v3/security" - "github.com/TwinProduction/health" + "github.com/TwiN/gatus/v3/config/ui" + "github.com/TwiN/gatus/v3/security" + "github.com/TwiN/health" "github.com/gorilla/mux" "github.com/prometheus/client_golang/prometheus/promhttp" ) diff --git a/controller/handler/service_status.go b/controller/handler/service_status.go index c8ba2d92..5457706b 100644 --- a/controller/handler/service_status.go +++ b/controller/handler/service_status.go @@ -10,10 +10,10 @@ import ( "strings" "time" - "github.com/TwinProduction/gatus/v3/storage" - "github.com/TwinProduction/gatus/v3/storage/store/common" - "github.com/TwinProduction/gatus/v3/storage/store/common/paging" - "github.com/TwinProduction/gocache" + "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/gocache" "github.com/gorilla/mux" ) diff --git a/controller/handler/service_status_test.go b/controller/handler/service_status_test.go index c30d8a37..1cb1ca43 100644 --- a/controller/handler/service_status_test.go +++ b/controller/handler/service_status_test.go @@ -6,10 +6,10 @@ import ( "testing" "time" - "github.com/TwinProduction/gatus/v3/config" - "github.com/TwinProduction/gatus/v3/core" - "github.com/TwinProduction/gatus/v3/storage" - "github.com/TwinProduction/gatus/v3/watchdog" + "github.com/TwiN/gatus/v3/config" + "github.com/TwiN/gatus/v3/core" + "github.com/TwiN/gatus/v3/storage" + "github.com/TwiN/gatus/v3/watchdog" ) var ( diff --git a/controller/handler/spa.go b/controller/handler/spa.go index 2b49d41f..653e6028 100644 --- a/controller/handler/spa.go +++ b/controller/handler/spa.go @@ -5,7 +5,7 @@ import ( "log" "net/http" - "github.com/TwinProduction/gatus/v3/config/ui" + "github.com/TwiN/gatus/v3/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 5b5a4e97..32df8251 100644 --- a/controller/handler/spa_test.go +++ b/controller/handler/spa_test.go @@ -6,10 +6,10 @@ import ( "testing" "time" - "github.com/TwinProduction/gatus/v3/config" - "github.com/TwinProduction/gatus/v3/core" - "github.com/TwinProduction/gatus/v3/storage" - "github.com/TwinProduction/gatus/v3/watchdog" + "github.com/TwiN/gatus/v3/config" + "github.com/TwiN/gatus/v3/core" + "github.com/TwiN/gatus/v3/storage" + "github.com/TwiN/gatus/v3/watchdog" ) func TestSinglePageApplication(t *testing.T) { diff --git a/controller/handler/util.go b/controller/handler/util.go index 37732cf3..e8935480 100644 --- a/controller/handler/util.go +++ b/controller/handler/util.go @@ -4,7 +4,7 @@ import ( "net/http" "strconv" - "github.com/TwinProduction/gatus/v3/storage/store/common" + "github.com/TwiN/gatus/v3/storage/store/common" ) const ( diff --git a/core/condition.go b/core/condition.go index 28515c63..3d975de2 100644 --- a/core/condition.go +++ b/core/condition.go @@ -6,8 +6,8 @@ import ( "strings" "time" - "github.com/TwinProduction/gatus/v3/jsonpath" - "github.com/TwinProduction/gatus/v3/pattern" + "github.com/TwiN/gatus/v3/jsonpath" + "github.com/TwiN/gatus/v3/pattern" ) const ( diff --git a/core/dns_test.go b/core/dns_test.go index 149ee31a..9b26a812 100644 --- a/core/dns_test.go +++ b/core/dns_test.go @@ -3,7 +3,7 @@ package core import ( "testing" - "github.com/TwinProduction/gatus/v3/pattern" + "github.com/TwiN/gatus/v3/pattern" ) func TestIntegrationQuery(t *testing.T) { diff --git a/core/service.go b/core/service.go index a95a9f36..e34ebbd2 100644 --- a/core/service.go +++ b/core/service.go @@ -12,10 +12,10 @@ import ( "strings" "time" - "github.com/TwinProduction/gatus/v3/alerting/alert" - "github.com/TwinProduction/gatus/v3/client" - "github.com/TwinProduction/gatus/v3/core/ui" - "github.com/TwinProduction/gatus/v3/util" + "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" ) const ( diff --git a/core/service_test.go b/core/service_test.go index c6586d47..6c38d31f 100644 --- a/core/service_test.go +++ b/core/service_test.go @@ -6,8 +6,8 @@ import ( "testing" "time" - "github.com/TwinProduction/gatus/v3/alerting/alert" - "github.com/TwinProduction/gatus/v3/client" + "github.com/TwiN/gatus/v3/alerting/alert" + "github.com/TwiN/gatus/v3/client" ) func TestService_IsEnabled(t *testing.T) { diff --git a/docs/pagerduty-integration-guide.md b/docs/pagerduty-integration-guide.md index b6689ba3..ef96abd7 100644 --- a/docs/pagerduty-integration-guide.md +++ b/docs/pagerduty-integration-guide.md @@ -13,7 +13,7 @@ # Support -If you need help with this integration, please create an issue at https://github.com/TwinProduction/gatus/issues +If you need help with this integration, please create an issue at https://github.com/TwiN/gatus/issues # Integration Walkthrough @@ -26,7 +26,7 @@ If you need help with this integration, please create an issue at https://github 3. Enter an **Integration Name** in the format `gatus-service-name` (e.g. `Gatus-Shopping-Cart`) and select **Gatus** from the Integration Type menu. 4. Click the **Add Integration** button to save your new integration. You will be redirected to the Integrations tab for your service. 5. An **Integration Key** will be generated on this screen. Keep this key saved in a safe place, as it will be used when you configure the integration with **Gatus** in the next section. -![PagerDuty Integration Key](https://raw.githubusercontent.com/TwinProduction/gatus/master/.github/assets/pagerduty-integration-key.png) +![PagerDuty Integration Key](https://raw.githubusercontent.com/TwiN/gatus/master/.github/assets/pagerduty-integration-key.png) ## In Gatus diff --git a/go.mod b/go.mod index 436c4f21..fa960f7d 100644 --- a/go.mod +++ b/go.mod @@ -1,10 +1,10 @@ -module github.com/TwinProduction/gatus/v3 +module github.com/TwiN/gatus/v3 go 1.17 require ( - github.com/TwinProduction/gocache v1.2.3 - github.com/TwinProduction/health v1.0.0 + github.com/TwiN/gocache v1.2.4 + github.com/TwiN/health v1.0.1 github.com/beorn7/perks v1.0.1 // indirect github.com/cespare/xxhash/v2 v2.1.2 // indirect github.com/go-ping/ping v0.0.0-20210911151512-381826476871 diff --git a/go.sum b/go.sum index e79c54ce..a8a7742f 100644 --- a/go.sum +++ b/go.sum @@ -33,10 +33,10 @@ cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9 dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= -github.com/TwinProduction/gocache v1.2.3 h1:4wFNih4CemUX+A99Gk/EsaU0SXSNZV42Ve77v7/7ToY= -github.com/TwinProduction/gocache v1.2.3/go.mod h1:Yj2daITit8TTBgiOpc26XCDSbg9xcFskUilHj9u3Mh8= -github.com/TwinProduction/health v1.0.0 h1:TVyYTAORQQZ8LaptX8jCHZRCGCAO6e+oJx19BUIzQYY= -github.com/TwinProduction/health v1.0.0/go.mod h1:ys4mYKUeEfYrWmkm60xLtPjTuLIEDQNBZaTZvenLG1c= +github.com/TwiN/gocache v1.2.4 h1:AfJ1YRcxtQ/zZEN61URDwk/dwFG7LSRenU5qIm9dQzo= +github.com/TwiN/gocache v1.2.4/go.mod h1:BjabsQQy6z5uHDorHa4LJVPEzFeitLIDbCtdv3gc1gA= +github.com/TwiN/health v1.0.1 h1:Q8lE6mTMPG4A5nHXq5Xa+NY4Y8LkQdRBWh1ReUkuc6Y= +github.com/TwiN/health v1.0.1/go.mod h1:Bt+lEvSi6C/9NWb7OoGmUmgtS4dfPeMM9EINnURv5dE= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= diff --git a/main.go b/main.go index 61049fa3..c6e9c74a 100644 --- a/main.go +++ b/main.go @@ -7,10 +7,10 @@ import ( "syscall" "time" - "github.com/TwinProduction/gatus/v3/config" - "github.com/TwinProduction/gatus/v3/controller" - "github.com/TwinProduction/gatus/v3/storage" - "github.com/TwinProduction/gatus/v3/watchdog" + "github.com/TwiN/gatus/v3/config" + "github.com/TwiN/gatus/v3/controller" + "github.com/TwiN/gatus/v3/storage" + "github.com/TwiN/gatus/v3/watchdog" ) func main() { diff --git a/metric/metric.go b/metric/metric.go index 6d3d8669..6138b98c 100644 --- a/metric/metric.go +++ b/metric/metric.go @@ -5,7 +5,7 @@ import ( "strconv" "sync" - "github.com/TwinProduction/gatus/v3/core" + "github.com/TwiN/gatus/v3/core" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promauto" ) diff --git a/storage/storage.go b/storage/storage.go index 1d4bb120..d4bda379 100644 --- a/storage/storage.go +++ b/storage/storage.go @@ -5,9 +5,9 @@ import ( "log" "time" - "github.com/TwinProduction/gatus/v3/storage/store" - "github.com/TwinProduction/gatus/v3/storage/store/memory" - "github.com/TwinProduction/gatus/v3/storage/store/sql" + "github.com/TwiN/gatus/v3/storage/store" + "github.com/TwiN/gatus/v3/storage/store/memory" + "github.com/TwiN/gatus/v3/storage/store/sql" ) var ( diff --git a/storage/storage_test.go b/storage/storage_test.go index 5744bfcb..504b6af9 100644 --- a/storage/storage_test.go +++ b/storage/storage_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "github.com/TwinProduction/gatus/v3/storage/store/sql" + "github.com/TwiN/gatus/v3/storage/store/sql" ) func TestGet(t *testing.T) { diff --git a/storage/store/memory/memory.go b/storage/store/memory/memory.go index a1fde5de..474a5222 100644 --- a/storage/store/memory/memory.go +++ b/storage/store/memory/memory.go @@ -6,11 +6,11 @@ import ( "sync" "time" - "github.com/TwinProduction/gatus/v3/core" - "github.com/TwinProduction/gatus/v3/storage/store/common" - "github.com/TwinProduction/gatus/v3/storage/store/common/paging" - "github.com/TwinProduction/gatus/v3/util" - "github.com/TwinProduction/gocache" + "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/gocache" ) func init() { diff --git a/storage/store/memory/memory_test.go b/storage/store/memory/memory_test.go index 92119aaf..9baefbb6 100644 --- a/storage/store/memory/memory_test.go +++ b/storage/store/memory/memory_test.go @@ -4,8 +4,8 @@ import ( "testing" "time" - "github.com/TwinProduction/gatus/v3/core" - "github.com/TwinProduction/gatus/v3/storage/store/common/paging" + "github.com/TwiN/gatus/v3/core" + "github.com/TwiN/gatus/v3/storage/store/common/paging" ) var ( diff --git a/storage/store/memory/uptime.go b/storage/store/memory/uptime.go index 4ea46404..e040f1df 100644 --- a/storage/store/memory/uptime.go +++ b/storage/store/memory/uptime.go @@ -3,7 +3,7 @@ package memory import ( "time" - "github.com/TwinProduction/gatus/v3/core" + "github.com/TwiN/gatus/v3/core" ) const ( diff --git a/storage/store/memory/uptime_bench_test.go b/storage/store/memory/uptime_bench_test.go index 0c0ad53c..0e5157dd 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/TwinProduction/gatus/v3/core" + "github.com/TwiN/gatus/v3/core" ) func BenchmarkProcessUptimeAfterResult(b *testing.B) { diff --git a/storage/store/memory/uptime_test.go b/storage/store/memory/uptime_test.go index d67ab40b..c011af03 100644 --- a/storage/store/memory/uptime_test.go +++ b/storage/store/memory/uptime_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "github.com/TwinProduction/gatus/v3/core" + "github.com/TwiN/gatus/v3/core" ) func TestProcessUptimeAfterResult(t *testing.T) { diff --git a/storage/store/memory/util.go b/storage/store/memory/util.go index 6c977cd1..c6aa9482 100644 --- a/storage/store/memory/util.go +++ b/storage/store/memory/util.go @@ -1,9 +1,9 @@ package memory import ( - "github.com/TwinProduction/gatus/v3/core" - "github.com/TwinProduction/gatus/v3/storage/store/common" - "github.com/TwinProduction/gatus/v3/storage/store/common/paging" + "github.com/TwiN/gatus/v3/core" + "github.com/TwiN/gatus/v3/storage/store/common" + "github.com/TwiN/gatus/v3/storage/store/common/paging" ) // ShallowCopyServiceStatus returns a shallow copy of a ServiceStatus with only the results diff --git a/storage/store/memory/util_bench_test.go b/storage/store/memory/util_bench_test.go index e5a066be..81438c20 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/TwinProduction/gatus/v3/core" - "github.com/TwinProduction/gatus/v3/storage/store/common" - "github.com/TwinProduction/gatus/v3/storage/store/common/paging" + "github.com/TwiN/gatus/v3/core" + "github.com/TwiN/gatus/v3/storage/store/common" + "github.com/TwiN/gatus/v3/storage/store/common/paging" ) func BenchmarkShallowCopyServiceStatus(b *testing.B) { diff --git a/storage/store/memory/util_test.go b/storage/store/memory/util_test.go index 2a9eee6e..7e9bf8a5 100644 --- a/storage/store/memory/util_test.go +++ b/storage/store/memory/util_test.go @@ -4,9 +4,9 @@ import ( "testing" "time" - "github.com/TwinProduction/gatus/v3/core" - "github.com/TwinProduction/gatus/v3/storage/store/common" - "github.com/TwinProduction/gatus/v3/storage/store/common/paging" + "github.com/TwiN/gatus/v3/core" + "github.com/TwiN/gatus/v3/storage/store/common" + "github.com/TwiN/gatus/v3/storage/store/common/paging" ) func TestAddResult(t *testing.T) { diff --git a/storage/store/sql/sql.go b/storage/store/sql/sql.go index faec92a9..872b1cc2 100644 --- a/storage/store/sql/sql.go +++ b/storage/store/sql/sql.go @@ -8,10 +8,10 @@ import ( "strings" "time" - "github.com/TwinProduction/gatus/v3/core" - "github.com/TwinProduction/gatus/v3/storage/store/common" - "github.com/TwinProduction/gatus/v3/storage/store/common/paging" - "github.com/TwinProduction/gatus/v3/util" + "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/lib/pq" _ "modernc.org/sqlite" ) diff --git a/storage/store/sql/sql_test.go b/storage/store/sql/sql_test.go index 7bd98e0b..8af7a12b 100644 --- a/storage/store/sql/sql_test.go +++ b/storage/store/sql/sql_test.go @@ -4,9 +4,9 @@ import ( "testing" "time" - "github.com/TwinProduction/gatus/v3/core" - "github.com/TwinProduction/gatus/v3/storage/store/common" - "github.com/TwinProduction/gatus/v3/storage/store/common/paging" + "github.com/TwiN/gatus/v3/core" + "github.com/TwiN/gatus/v3/storage/store/common" + "github.com/TwiN/gatus/v3/storage/store/common/paging" ) var ( diff --git a/storage/store/store.go b/storage/store/store.go index 2641ad56..8ce34e50 100644 --- a/storage/store/store.go +++ b/storage/store/store.go @@ -3,10 +3,10 @@ package store import ( "time" - "github.com/TwinProduction/gatus/v3/core" - "github.com/TwinProduction/gatus/v3/storage/store/common/paging" - "github.com/TwinProduction/gatus/v3/storage/store/memory" - "github.com/TwinProduction/gatus/v3/storage/store/sql" + "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" ) // 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 a2cb1717..afd9eacf 100644 --- a/storage/store/store_bench_test.go +++ b/storage/store/store_bench_test.go @@ -4,10 +4,10 @@ import ( "testing" "time" - "github.com/TwinProduction/gatus/v3/core" - "github.com/TwinProduction/gatus/v3/storage/store/common/paging" - "github.com/TwinProduction/gatus/v3/storage/store/memory" - "github.com/TwinProduction/gatus/v3/storage/store/sql" + "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" ) func BenchmarkStore_GetAllServiceStatuses(b *testing.B) { diff --git a/storage/store/store_test.go b/storage/store/store_test.go index 9b733e06..936bacf2 100644 --- a/storage/store/store_test.go +++ b/storage/store/store_test.go @@ -4,11 +4,11 @@ import ( "testing" "time" - "github.com/TwinProduction/gatus/v3/core" - "github.com/TwinProduction/gatus/v3/storage/store/common" - "github.com/TwinProduction/gatus/v3/storage/store/common/paging" - "github.com/TwinProduction/gatus/v3/storage/store/memory" - "github.com/TwinProduction/gatus/v3/storage/store/sql" + "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/storage/store/memory" + "github.com/TwiN/gatus/v3/storage/store/sql" ) var ( diff --git a/vendor/github.com/TwinProduction/gocache/.gitattributes b/vendor/github.com/TwiN/gocache/.gitattributes similarity index 100% rename from vendor/github.com/TwinProduction/gocache/.gitattributes rename to vendor/github.com/TwiN/gocache/.gitattributes diff --git a/vendor/github.com/TwinProduction/gocache/.gitignore b/vendor/github.com/TwiN/gocache/.gitignore similarity index 100% rename from vendor/github.com/TwinProduction/gocache/.gitignore rename to vendor/github.com/TwiN/gocache/.gitignore diff --git a/vendor/github.com/TwinProduction/gocache/Dockerfile b/vendor/github.com/TwiN/gocache/Dockerfile similarity index 100% rename from vendor/github.com/TwinProduction/gocache/Dockerfile rename to vendor/github.com/TwiN/gocache/Dockerfile diff --git a/vendor/github.com/TwinProduction/gocache/LICENSE.md b/vendor/github.com/TwiN/gocache/LICENSE.md similarity index 96% rename from vendor/github.com/TwinProduction/gocache/LICENSE.md rename to vendor/github.com/TwiN/gocache/LICENSE.md index c608627d..ca64af38 100644 --- a/vendor/github.com/TwinProduction/gocache/LICENSE.md +++ b/vendor/github.com/TwiN/gocache/LICENSE.md @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2021 TwinProduction +Copyright (c) 2021 TwiN Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: diff --git a/vendor/github.com/TwinProduction/gocache/Makefile b/vendor/github.com/TwiN/gocache/Makefile similarity index 100% rename from vendor/github.com/TwinProduction/gocache/Makefile rename to vendor/github.com/TwiN/gocache/Makefile diff --git a/vendor/github.com/TwinProduction/gocache/README.md b/vendor/github.com/TwiN/gocache/README.md similarity index 96% rename from vendor/github.com/TwinProduction/gocache/README.md rename to vendor/github.com/TwiN/gocache/README.md index 4bfcf408..9c40a563 100644 --- a/vendor/github.com/TwinProduction/gocache/README.md +++ b/vendor/github.com/TwiN/gocache/README.md @@ -1,11 +1,11 @@ # gocache -![build](https://github.com/TwinProduction/gocache/workflows/build/badge.svg?branch=master) -[![Go Report Card](https://goreportcard.com/badge/github.com/TwinProduction/gocache)](https://goreportcard.com/report/github.com/TwinProduction/gocache) -[![codecov](https://codecov.io/gh/TwinProduction/gocache/branch/master/graph/badge.svg)](https://codecov.io/gh/TwinProduction/gocache) -[![Go version](https://img.shields.io/github/go-mod/go-version/TwinProduction/gocache.svg)](https://github.com/TwinProduction/gocache) -[![Go Reference](https://pkg.go.dev/badge/github.com/TwinProduction/gocache.svg)](https://pkg.go.dev/github.com/TwinProduction/gocache) -[![Follow TwinProduction](https://img.shields.io/github/followers/TwinProduction?label=Follow&style=social)](https://github.com/TwinProduction) +![build](https://github.com/TwiN/gocache/workflows/build/badge.svg?branch=master) +[![Go Report Card](https://goreportcard.com/badge/github.com/TwiN/gocache)](https://goreportcard.com/report/github.com/TwiN/gocache) +[![codecov](https://codecov.io/gh/TwiN/gocache/branch/master/graph/badge.svg)](https://codecov.io/gh/TwiN/gocache) +[![Go version](https://img.shields.io/github/go-mod/go-version/TwiN/gocache.svg)](https://github.com/TwiN/gocache) +[![Go Reference](https://pkg.go.dev/badge/github.com/TwiN/gocache.svg)](https://pkg.go.dev/github.com/TwiN/gocache) +[![Follow TwiN](https://img.shields.io/github/followers/TwiN?label=Follow&style=social)](https://github.com/TwiN) gocache is an easy-to-use, high-performance, lightweight and thread-safe (goroutine-safe) in-memory key-value cache with support for LRU and FIFO eviction policies as well as expiration, bulk operations and even persistence to file. @@ -58,7 +58,7 @@ It may also serve as a good reference to use in order to implement gocache in yo ## Usage ``` -go get -u github.com/TwinProduction/gocache +go get -u github.com/TwiN/gocache ``` If you're interested in using gocache as a server rather than an embedded library, see [Server](#server) @@ -101,7 +101,7 @@ cache.StartJanitor() | SaveToFile | Stores the content of the cache to a file so that it can be read using `ReadFromFile`. See [persistence](#persistence). | ReadFromFile | Populates the cache using a file created using `SaveToFile`. See [persistence](#persistence). -For further documentation, please refer to [Go Reference](https://pkg.go.dev/github.com/TwinProduction/gocache) +For further documentation, please refer to [Go Reference](https://pkg.go.dev/github.com/TwiN/gocache) ### Examples @@ -134,7 +134,7 @@ import ( "fmt" "time" - "github.com/TwinProduction/gocache" + "github.com/TwiN/gocache" ) func main() { @@ -323,8 +323,8 @@ For the sake of convenience, a ready-to-go cache server is available through the package main import ( - "github.com/TwinProduction/gocache" - gocacheserver "github.com/TwinProduction/gocache/server" + "github.com/TwiN/gocache" + gocacheserver "github.com/TwiN/gocache/server" ) func main() { @@ -490,7 +490,7 @@ import ( "os/signal" "syscall" - "github.com/TwinProduction/gocache" + "github.com/TwiN/gocache" ) const CacheFile = "gocache.data" diff --git a/vendor/github.com/TwinProduction/gocache/entry.go b/vendor/github.com/TwiN/gocache/entry.go similarity index 100% rename from vendor/github.com/TwinProduction/gocache/entry.go rename to vendor/github.com/TwiN/gocache/entry.go diff --git a/vendor/github.com/TwinProduction/gocache/gocache.go b/vendor/github.com/TwiN/gocache/gocache.go similarity index 98% rename from vendor/github.com/TwinProduction/gocache/gocache.go rename to vendor/github.com/TwiN/gocache/gocache.go index 9b056b74..f33b3cb7 100644 --- a/vendor/github.com/TwinProduction/gocache/gocache.go +++ b/vendor/github.com/TwiN/gocache/gocache.go @@ -31,9 +31,9 @@ const ( ) var ( - ErrKeyDoesNotExist = errors.New("key does not exist") - ErrKeyHasNoExpiration = errors.New("key has no expiration") - ErrJanitorAlreadyRunning = errors.New("janitor is already running") + ErrKeyDoesNotExist = errors.New("key does not exist") // Returned when a cache key does not exist + ErrKeyHasNoExpiration = errors.New("key has no expiration") // Returned when a cache key has no expiration + ErrJanitorAlreadyRunning = errors.New("janitor is already running") // Returned when the janitor has already been started ) // Cache is the core struct of gocache which contains the data as well as all relevant configuration fields diff --git a/vendor/github.com/TwinProduction/gocache/janitor.go b/vendor/github.com/TwiN/gocache/janitor.go similarity index 100% rename from vendor/github.com/TwinProduction/gocache/janitor.go rename to vendor/github.com/TwiN/gocache/janitor.go diff --git a/vendor/github.com/TwinProduction/gocache/pattern.go b/vendor/github.com/TwiN/gocache/pattern.go similarity index 100% rename from vendor/github.com/TwinProduction/gocache/pattern.go rename to vendor/github.com/TwiN/gocache/pattern.go diff --git a/vendor/github.com/TwinProduction/gocache/persistence.go b/vendor/github.com/TwiN/gocache/persistence.go similarity index 96% rename from vendor/github.com/TwinProduction/gocache/persistence.go rename to vendor/github.com/TwiN/gocache/persistence.go index 32fdb9fd..c3d55c97 100644 --- a/vendor/github.com/TwinProduction/gocache/persistence.go +++ b/vendor/github.com/TwiN/gocache/persistence.go @@ -42,7 +42,7 @@ func (cache *Cache) SaveToFile(path string) error { if err != nil { // Failed to encode the value, so we'll skip it. // This is likely due to the fact that the custom struct wasn't registered using gob.Register(...) - // See [Persistence - Limitations](https://github.com/TwinProduction/gocache#limitations) + // See [Persistence - Limitations](https://github.com/TwiN/gocache#limitations) continue } bucket.Put([]byte(bulkEntry.Key), buffer.Bytes()) @@ -91,7 +91,7 @@ func (cache *Cache) ReadFromFile(path string) (int, error) { // decoding the struct would fail. This can be avoided by using a different variable name every // time you must change the type of a variable within a struct. // - // See [Persistence - Limitations](https://github.com/TwinProduction/gocache#limitations) + // See [Persistence - Limitations](https://github.com/TwiN/gocache#limitations) return err } cache.entries[string(k)] = &entry diff --git a/vendor/github.com/TwinProduction/gocache/policy.go b/vendor/github.com/TwiN/gocache/policy.go similarity index 100% rename from vendor/github.com/TwinProduction/gocache/policy.go rename to vendor/github.com/TwiN/gocache/policy.go diff --git a/vendor/github.com/TwinProduction/gocache/statistics.go b/vendor/github.com/TwiN/gocache/statistics.go similarity index 100% rename from vendor/github.com/TwinProduction/gocache/statistics.go rename to vendor/github.com/TwiN/gocache/statistics.go diff --git a/vendor/github.com/TwiN/health/.gitattributes b/vendor/github.com/TwiN/health/.gitattributes new file mode 100644 index 00000000..94f480de --- /dev/null +++ b/vendor/github.com/TwiN/health/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf \ No newline at end of file diff --git a/vendor/github.com/TwinProduction/health/.gitignore b/vendor/github.com/TwiN/health/.gitignore similarity index 100% rename from vendor/github.com/TwinProduction/health/.gitignore rename to vendor/github.com/TwiN/health/.gitignore diff --git a/vendor/github.com/TwiN/health/LICENSE.md b/vendor/github.com/TwiN/health/LICENSE.md new file mode 100644 index 00000000..ca64af38 --- /dev/null +++ b/vendor/github.com/TwiN/health/LICENSE.md @@ -0,0 +1,9 @@ +MIT License + +Copyright (c) 2021 TwiN + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/vendor/github.com/TwinProduction/health/README.md b/vendor/github.com/TwiN/health/README.md similarity index 56% rename from vendor/github.com/TwinProduction/health/README.md rename to vendor/github.com/TwiN/health/README.md index aac0aadd..9cd6f659 100644 --- a/vendor/github.com/TwinProduction/health/README.md +++ b/vendor/github.com/TwiN/health/README.md @@ -1,32 +1,30 @@ # health - -![build](https://github.com/TwinProduction/health/workflows/build/badge.svg?branch=master) -[![Go Report Card](https://goreportcard.com/badge/github.com/TwinProduction/health)](https://goreportcard.com/report/github.com/TwinProduction/health) -[![codecov](https://codecov.io/gh/TwinProduction/health/branch/master/graph/badge.svg)](https://codecov.io/gh/TwinProduction/health) -[![Go version](https://img.shields.io/github/go-mod/go-version/TwinProduction/health.svg)](https://github.com/TwinProduction/health) -[![Go Reference](https://pkg.go.dev/badge/github.com/TwinProduction/health.svg)](https://pkg.go.dev/github.com/TwinProduction/health) +![build](https://github.com/TwiN/health/workflows/build/badge.svg?branch=master) +[![Go Report Card](https://goreportcard.com/badge/github.com/TwiN/health)](https://goreportcard.com/report/github.com/TwiN/health) +[![codecov](https://codecov.io/gh/TwiN/health/branch/master/graph/badge.svg)](https://codecov.io/gh/TwiN/health) +[![Go version](https://img.shields.io/github/go-mod/go-version/TwiN/health.svg)](https://github.com/TwiN/health) +[![Go Reference](https://pkg.go.dev/badge/github.com/TwiN/health.svg)](https://pkg.go.dev/github.com/TwiN/health) Health is a library used for creating a very simple health endpoint. While implementing a health endpoint is very simple, I've grown tired of implementing it over and over again. -## Installation +## Installation ``` -go get -u github.com/TwinProduction/health +go get -u github.com/TwiN/health ``` ## Usage - To retrieve the handler, you must use `health.Handler()` and are expected to pass it to the router like so: ```go router := http.NewServeMux() router.Handle("/health", health.Handler()) server := &http.Server{ - Addr: ":8080", - Handler: router, + Addr: ":8080", + Handler: router, } ``` @@ -45,28 +43,28 @@ health.SetStatus(health.Up) health.SetStatus(health.Down) ``` -### Complete example +### Complete example ```go package main import ( - "net/http" - "time" + "net/http" + "time" - "github.com/TwinProduction/health" + "github.com/TwiN/health" ) func main() { - router := http.NewServeMux() - router.Handle("/health", health.Handler()) - server := &http.Server{ - Addr: "0.0.0.0:8080", - Handler: router, - ReadTimeout: 15 * time.Second, - WriteTimeout: 15 * time.Second, - IdleTimeout: 15 * time.Second, - } - server.ListenAndServe() + router := http.NewServeMux() + router.Handle("/health", health.Handler()) + server := &http.Server{ + Addr: "0.0.0.0:8080", + Handler: router, + ReadTimeout: 15 * time.Second, + WriteTimeout: 15 * time.Second, + IdleTimeout: 15 * time.Second, + } + server.ListenAndServe() } ``` diff --git a/vendor/github.com/TwinProduction/health/health.go b/vendor/github.com/TwiN/health/health.go similarity index 81% rename from vendor/github.com/TwinProduction/health/health.go rename to vendor/github.com/TwiN/health/health.go index fdd88d29..8fcba4b8 100644 --- a/vendor/github.com/TwinProduction/health/health.go +++ b/vendor/github.com/TwiN/health/health.go @@ -9,6 +9,7 @@ var ( } ) +// healthHandler is the HTTP handler for serving the health endpoint type healthHandler struct { useJSON bool status Status @@ -22,7 +23,8 @@ func (h *healthHandler) WithJSON(v bool) *healthHandler { return h } -func (h healthHandler) ServeHTTP(writer http.ResponseWriter, request *http.Request) { +// ServeHTTP serves the HTTP request for the health handler +func (h healthHandler) ServeHTTP(writer http.ResponseWriter, _ *http.Request) { var status int var body []byte if h.status == Up { diff --git a/vendor/github.com/TwiN/health/status.go b/vendor/github.com/TwiN/health/status.go new file mode 100644 index 00000000..1f2fb7cb --- /dev/null +++ b/vendor/github.com/TwiN/health/status.go @@ -0,0 +1,8 @@ +package health + +type Status string + +var ( + Down Status = "DOWN" // For when the application is unhealthy + Up Status = "UP" // For when the application is healthy +) diff --git a/vendor/github.com/TwinProduction/health/.gitattributes b/vendor/github.com/TwinProduction/health/.gitattributes deleted file mode 100644 index fbd75d33..00000000 --- a/vendor/github.com/TwinProduction/health/.gitattributes +++ /dev/null @@ -1 +0,0 @@ -* text=lf \ No newline at end of file diff --git a/vendor/github.com/TwinProduction/health/status.go b/vendor/github.com/TwinProduction/health/status.go deleted file mode 100644 index 3e2cbd9f..00000000 --- a/vendor/github.com/TwinProduction/health/status.go +++ /dev/null @@ -1,8 +0,0 @@ -package health - -type Status string - -var ( - Down Status = "DOWN" - Up Status = "UP" -) diff --git a/vendor/modules.txt b/vendor/modules.txt index e5915fd3..3602c41d 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1,9 +1,9 @@ -# github.com/TwinProduction/gocache v1.2.3 +# github.com/TwiN/gocache v1.2.4 ## explicit; go 1.16 -github.com/TwinProduction/gocache -# github.com/TwinProduction/health v1.0.0 -## explicit; go 1.15 -github.com/TwinProduction/health +github.com/TwiN/gocache +# github.com/TwiN/health v1.0.1 +## explicit; go 1.17 +github.com/TwiN/health # github.com/beorn7/perks v1.0.1 ## explicit; go 1.11 github.com/beorn7/perks/quantile diff --git a/watchdog/alerting.go b/watchdog/alerting.go index 6eff9ee1..7a507f37 100644 --- a/watchdog/alerting.go +++ b/watchdog/alerting.go @@ -4,9 +4,9 @@ import ( "encoding/json" "log" - "github.com/TwinProduction/gatus/v3/alerting" - "github.com/TwinProduction/gatus/v3/alerting/alert" - "github.com/TwinProduction/gatus/v3/core" + "github.com/TwiN/gatus/v3/alerting" + "github.com/TwiN/gatus/v3/alerting/alert" + "github.com/TwiN/gatus/v3/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 dbcf7e49..5bbd95ad 100644 --- a/watchdog/alerting_test.go +++ b/watchdog/alerting_test.go @@ -4,12 +4,12 @@ import ( "os" "testing" - "github.com/TwinProduction/gatus/v3/alerting" - "github.com/TwinProduction/gatus/v3/alerting/alert" - "github.com/TwinProduction/gatus/v3/alerting/provider/custom" - "github.com/TwinProduction/gatus/v3/alerting/provider/pagerduty" - "github.com/TwinProduction/gatus/v3/config" - "github.com/TwinProduction/gatus/v3/core" + "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/pagerduty" + "github.com/TwiN/gatus/v3/config" + "github.com/TwiN/gatus/v3/core" ) func TestHandleAlerting(t *testing.T) { diff --git a/watchdog/watchdog.go b/watchdog/watchdog.go index faf28a82..4a74bc7e 100644 --- a/watchdog/watchdog.go +++ b/watchdog/watchdog.go @@ -6,12 +6,12 @@ import ( "sync" "time" - "github.com/TwinProduction/gatus/v3/alerting" - "github.com/TwinProduction/gatus/v3/config" - "github.com/TwinProduction/gatus/v3/config/maintenance" - "github.com/TwinProduction/gatus/v3/core" - "github.com/TwinProduction/gatus/v3/metric" - "github.com/TwinProduction/gatus/v3/storage" + "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/metric" + "github.com/TwiN/gatus/v3/storage" ) var ( diff --git a/web/app/src/components/Social.vue b/web/app/src/components/Social.vue index 2bc85436..e1fc9d9b 100644 --- a/web/app/src/components/Social.vue +++ b/web/app/src/components/Social.vue @@ -1,6 +1,6 @@