Add v3 to module path

Gatus wasn't intended to be used as a library, but I have a use case now.
This commit is contained in:
TwinProduction 2021-10-03 21:53:59 -04:00
parent d19f564e4e
commit 2d3fe9795f
60 changed files with 199 additions and 199 deletions

View File

@ -1,17 +1,17 @@
package alerting
import (
"github.com/TwinProduction/gatus/alerting/alert"
"github.com/TwinProduction/gatus/alerting/provider"
"github.com/TwinProduction/gatus/alerting/provider/custom"
"github.com/TwinProduction/gatus/alerting/provider/discord"
"github.com/TwinProduction/gatus/alerting/provider/mattermost"
"github.com/TwinProduction/gatus/alerting/provider/messagebird"
"github.com/TwinProduction/gatus/alerting/provider/pagerduty"
"github.com/TwinProduction/gatus/alerting/provider/slack"
"github.com/TwinProduction/gatus/alerting/provider/teams"
"github.com/TwinProduction/gatus/alerting/provider/telegram"
"github.com/TwinProduction/gatus/alerting/provider/twilio"
"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"
)
// Config is the configuration for alerting providers

View File

@ -9,9 +9,9 @@ import (
"os"
"strings"
"github.com/TwinProduction/gatus/alerting/alert"
"github.com/TwinProduction/gatus/client"
"github.com/TwinProduction/gatus/core"
"github.com/TwinProduction/gatus/v3/alerting/alert"
"github.com/TwinProduction/gatus/v3/client"
"github.com/TwinProduction/gatus/v3/core"
)
// AlertProvider is the configuration necessary for sending an alert using a custom HTTP request

View File

@ -4,8 +4,8 @@ import (
"io/ioutil"
"testing"
"github.com/TwinProduction/gatus/alerting/alert"
"github.com/TwinProduction/gatus/core"
"github.com/TwinProduction/gatus/v3/alerting/alert"
"github.com/TwinProduction/gatus/v3/core"
)
func TestAlertProvider_IsValid(t *testing.T) {

View File

@ -4,9 +4,9 @@ import (
"fmt"
"net/http"
"github.com/TwinProduction/gatus/alerting/alert"
"github.com/TwinProduction/gatus/alerting/provider/custom"
"github.com/TwinProduction/gatus/core"
"github.com/TwinProduction/gatus/v3/alerting/alert"
"github.com/TwinProduction/gatus/v3/alerting/provider/custom"
"github.com/TwinProduction/gatus/v3/core"
)
// AlertProvider is the configuration necessary for sending an alert using Discord

View File

@ -6,8 +6,8 @@ import (
"strings"
"testing"
"github.com/TwinProduction/gatus/alerting/alert"
"github.com/TwinProduction/gatus/core"
"github.com/TwinProduction/gatus/v3/alerting/alert"
"github.com/TwinProduction/gatus/v3/core"
)
func TestAlertProvider_IsValid(t *testing.T) {

View File

@ -4,10 +4,10 @@ import (
"fmt"
"net/http"
"github.com/TwinProduction/gatus/alerting/alert"
"github.com/TwinProduction/gatus/alerting/provider/custom"
"github.com/TwinProduction/gatus/client"
"github.com/TwinProduction/gatus/core"
"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"
)
// AlertProvider is the configuration necessary for sending an alert using Mattermost

View File

@ -6,8 +6,8 @@ import (
"strings"
"testing"
"github.com/TwinProduction/gatus/alerting/alert"
"github.com/TwinProduction/gatus/core"
"github.com/TwinProduction/gatus/v3/alerting/alert"
"github.com/TwinProduction/gatus/v3/core"
)
func TestAlertProvider_IsValid(t *testing.T) {

View File

@ -4,9 +4,9 @@ import (
"fmt"
"net/http"
"github.com/TwinProduction/gatus/alerting/alert"
"github.com/TwinProduction/gatus/alerting/provider/custom"
"github.com/TwinProduction/gatus/core"
"github.com/TwinProduction/gatus/v3/alerting/alert"
"github.com/TwinProduction/gatus/v3/alerting/provider/custom"
"github.com/TwinProduction/gatus/v3/core"
)
const (

View File

@ -6,8 +6,8 @@ import (
"strings"
"testing"
"github.com/TwinProduction/gatus/alerting/alert"
"github.com/TwinProduction/gatus/core"
"github.com/TwinProduction/gatus/v3/alerting/alert"
"github.com/TwinProduction/gatus/v3/core"
)
func TestMessagebirdAlertProvider_IsValid(t *testing.T) {

View File

@ -4,9 +4,9 @@ import (
"fmt"
"net/http"
"github.com/TwinProduction/gatus/alerting/alert"
"github.com/TwinProduction/gatus/alerting/provider/custom"
"github.com/TwinProduction/gatus/core"
"github.com/TwinProduction/gatus/v3/alerting/alert"
"github.com/TwinProduction/gatus/v3/alerting/provider/custom"
"github.com/TwinProduction/gatus/v3/core"
)
const (

View File

@ -6,8 +6,8 @@ import (
"strings"
"testing"
"github.com/TwinProduction/gatus/alerting/alert"
"github.com/TwinProduction/gatus/core"
"github.com/TwinProduction/gatus/v3/alerting/alert"
"github.com/TwinProduction/gatus/v3/core"
)
func TestAlertProvider_IsValid(t *testing.T) {

View File

@ -1,17 +1,17 @@
package provider
import (
"github.com/TwinProduction/gatus/alerting/alert"
"github.com/TwinProduction/gatus/alerting/provider/custom"
"github.com/TwinProduction/gatus/alerting/provider/discord"
"github.com/TwinProduction/gatus/alerting/provider/mattermost"
"github.com/TwinProduction/gatus/alerting/provider/messagebird"
"github.com/TwinProduction/gatus/alerting/provider/pagerduty"
"github.com/TwinProduction/gatus/alerting/provider/slack"
"github.com/TwinProduction/gatus/alerting/provider/teams"
"github.com/TwinProduction/gatus/alerting/provider/telegram"
"github.com/TwinProduction/gatus/alerting/provider/twilio"
"github.com/TwinProduction/gatus/core"
"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"
)
// AlertProvider is the interface that each providers should implement

View File

@ -3,7 +3,7 @@ package provider
import (
"testing"
"github.com/TwinProduction/gatus/alerting/alert"
"github.com/TwinProduction/gatus/v3/alerting/alert"
)
func TestParseWithDefaultAlert(t *testing.T) {

View File

@ -4,9 +4,9 @@ import (
"fmt"
"net/http"
"github.com/TwinProduction/gatus/alerting/alert"
"github.com/TwinProduction/gatus/alerting/provider/custom"
"github.com/TwinProduction/gatus/core"
"github.com/TwinProduction/gatus/v3/alerting/alert"
"github.com/TwinProduction/gatus/v3/alerting/provider/custom"
"github.com/TwinProduction/gatus/v3/core"
)
// AlertProvider is the configuration necessary for sending an alert using Slack

View File

@ -6,8 +6,8 @@ import (
"strings"
"testing"
"github.com/TwinProduction/gatus/alerting/alert"
"github.com/TwinProduction/gatus/core"
"github.com/TwinProduction/gatus/v3/alerting/alert"
"github.com/TwinProduction/gatus/v3/core"
)
func TestAlertProvider_IsValid(t *testing.T) {

View File

@ -4,9 +4,9 @@ import (
"fmt"
"net/http"
"github.com/TwinProduction/gatus/alerting/alert"
"github.com/TwinProduction/gatus/alerting/provider/custom"
"github.com/TwinProduction/gatus/core"
"github.com/TwinProduction/gatus/v3/alerting/alert"
"github.com/TwinProduction/gatus/v3/alerting/provider/custom"
"github.com/TwinProduction/gatus/v3/core"
)
// AlertProvider is the configuration necessary for sending an alert using Teams

View File

@ -6,8 +6,8 @@ import (
"strings"
"testing"
"github.com/TwinProduction/gatus/alerting/alert"
"github.com/TwinProduction/gatus/core"
"github.com/TwinProduction/gatus/v3/alerting/alert"
"github.com/TwinProduction/gatus/v3/core"
)
func TestAlertProvider_IsValid(t *testing.T) {

View File

@ -4,9 +4,9 @@ import (
"fmt"
"net/http"
"github.com/TwinProduction/gatus/alerting/alert"
"github.com/TwinProduction/gatus/alerting/provider/custom"
"github.com/TwinProduction/gatus/core"
"github.com/TwinProduction/gatus/v3/alerting/alert"
"github.com/TwinProduction/gatus/v3/alerting/provider/custom"
"github.com/TwinProduction/gatus/v3/core"
)
// AlertProvider is the configuration necessary for sending an alert using Telegram

View File

@ -7,8 +7,8 @@ import (
"strings"
"testing"
"github.com/TwinProduction/gatus/alerting/alert"
"github.com/TwinProduction/gatus/core"
"github.com/TwinProduction/gatus/v3/alerting/alert"
"github.com/TwinProduction/gatus/v3/core"
)
func TestAlertProvider_IsValid(t *testing.T) {

View File

@ -6,9 +6,9 @@ import (
"net/http"
"net/url"
"github.com/TwinProduction/gatus/alerting/alert"
"github.com/TwinProduction/gatus/alerting/provider/custom"
"github.com/TwinProduction/gatus/core"
"github.com/TwinProduction/gatus/v3/alerting/alert"
"github.com/TwinProduction/gatus/v3/alerting/provider/custom"
"github.com/TwinProduction/gatus/v3/core"
)
// AlertProvider is the configuration necessary for sending an alert using Twilio

View File

@ -5,8 +5,8 @@ import (
"strings"
"testing"
"github.com/TwinProduction/gatus/alerting/alert"
"github.com/TwinProduction/gatus/core"
"github.com/TwinProduction/gatus/v3/alerting/alert"
"github.com/TwinProduction/gatus/v3/core"
)
func TestTwilioAlertProvider_IsValid(t *testing.T) {

View File

@ -7,15 +7,15 @@ import (
"os"
"time"
"github.com/TwinProduction/gatus/alerting"
"github.com/TwinProduction/gatus/alerting/alert"
"github.com/TwinProduction/gatus/alerting/provider"
"github.com/TwinProduction/gatus/config/maintenance"
"github.com/TwinProduction/gatus/config/ui"
"github.com/TwinProduction/gatus/config/web"
"github.com/TwinProduction/gatus/core"
"github.com/TwinProduction/gatus/security"
"github.com/TwinProduction/gatus/storage"
"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"
"gopkg.in/yaml.v2"
)

View File

@ -5,21 +5,21 @@ import (
"testing"
"time"
"github.com/TwinProduction/gatus/alerting"
"github.com/TwinProduction/gatus/alerting/alert"
"github.com/TwinProduction/gatus/alerting/provider/custom"
"github.com/TwinProduction/gatus/alerting/provider/discord"
"github.com/TwinProduction/gatus/alerting/provider/mattermost"
"github.com/TwinProduction/gatus/alerting/provider/messagebird"
"github.com/TwinProduction/gatus/alerting/provider/pagerduty"
"github.com/TwinProduction/gatus/alerting/provider/slack"
"github.com/TwinProduction/gatus/alerting/provider/teams"
"github.com/TwinProduction/gatus/alerting/provider/telegram"
"github.com/TwinProduction/gatus/alerting/provider/twilio"
"github.com/TwinProduction/gatus/client"
"github.com/TwinProduction/gatus/config/ui"
"github.com/TwinProduction/gatus/config/web"
"github.com/TwinProduction/gatus/core"
"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"
)
func TestLoadFileThatDoesNotExist(t *testing.T) {

View File

@ -8,10 +8,10 @@ import (
"os"
"time"
"github.com/TwinProduction/gatus/config/ui"
"github.com/TwinProduction/gatus/config/web"
"github.com/TwinProduction/gatus/controller/handler"
"github.com/TwinProduction/gatus/security"
"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"
)
var (

View File

@ -7,9 +7,9 @@ import (
"os"
"testing"
"github.com/TwinProduction/gatus/config"
"github.com/TwinProduction/gatus/config/web"
"github.com/TwinProduction/gatus/core"
"github.com/TwinProduction/gatus/v3/config"
"github.com/TwinProduction/gatus/v3/config/web"
"github.com/TwinProduction/gatus/v3/core"
)
func TestHandle(t *testing.T) {

View File

@ -7,8 +7,8 @@ import (
"strings"
"time"
"github.com/TwinProduction/gatus/storage"
"github.com/TwinProduction/gatus/storage/store/common"
"github.com/TwinProduction/gatus/v3/storage"
"github.com/TwinProduction/gatus/v3/storage/store/common"
"github.com/gorilla/mux"
)

View File

@ -7,10 +7,10 @@ import (
"testing"
"time"
"github.com/TwinProduction/gatus/config"
"github.com/TwinProduction/gatus/core"
"github.com/TwinProduction/gatus/storage"
"github.com/TwinProduction/gatus/watchdog"
"github.com/TwinProduction/gatus/v3/config"
"github.com/TwinProduction/gatus/v3/core"
"github.com/TwinProduction/gatus/v3/storage"
"github.com/TwinProduction/gatus/v3/watchdog"
)
func TestUptimeBadge(t *testing.T) {

View File

@ -7,8 +7,8 @@ import (
"sort"
"time"
"github.com/TwinProduction/gatus/storage"
"github.com/TwinProduction/gatus/storage/store/common"
"github.com/TwinProduction/gatus/v3/storage"
"github.com/TwinProduction/gatus/v3/storage/store/common"
"github.com/gorilla/mux"
"github.com/wcharczuk/go-chart/v2"
"github.com/wcharczuk/go-chart/v2/drawing"

View File

@ -6,10 +6,10 @@ import (
"testing"
"time"
"github.com/TwinProduction/gatus/config"
"github.com/TwinProduction/gatus/core"
"github.com/TwinProduction/gatus/storage"
"github.com/TwinProduction/gatus/watchdog"
"github.com/TwinProduction/gatus/v3/config"
"github.com/TwinProduction/gatus/v3/core"
"github.com/TwinProduction/gatus/v3/storage"
"github.com/TwinProduction/gatus/v3/watchdog"
)
func TestResponseTimeChart(t *testing.T) {

View File

@ -3,8 +3,8 @@ package handler
import (
"net/http"
"github.com/TwinProduction/gatus/config/ui"
"github.com/TwinProduction/gatus/security"
"github.com/TwinProduction/gatus/v3/config/ui"
"github.com/TwinProduction/gatus/v3/security"
"github.com/TwinProduction/health"
"github.com/gorilla/mux"
"github.com/prometheus/client_golang/prometheus/promhttp"

View File

@ -10,9 +10,9 @@ import (
"strings"
"time"
"github.com/TwinProduction/gatus/storage"
"github.com/TwinProduction/gatus/storage/store/common"
"github.com/TwinProduction/gatus/storage/store/common/paging"
"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/gorilla/mux"
)

View File

@ -6,10 +6,10 @@ import (
"testing"
"time"
"github.com/TwinProduction/gatus/config"
"github.com/TwinProduction/gatus/core"
"github.com/TwinProduction/gatus/storage"
"github.com/TwinProduction/gatus/watchdog"
"github.com/TwinProduction/gatus/v3/config"
"github.com/TwinProduction/gatus/v3/core"
"github.com/TwinProduction/gatus/v3/storage"
"github.com/TwinProduction/gatus/v3/watchdog"
)
var (

View File

@ -5,7 +5,7 @@ import (
"log"
"net/http"
"github.com/TwinProduction/gatus/config/ui"
"github.com/TwinProduction/gatus/v3/config/ui"
)
func SinglePageApplication(staticFolder string, ui *ui.Config) http.HandlerFunc {

View File

@ -6,10 +6,10 @@ import (
"testing"
"time"
"github.com/TwinProduction/gatus/config"
"github.com/TwinProduction/gatus/core"
"github.com/TwinProduction/gatus/storage"
"github.com/TwinProduction/gatus/watchdog"
"github.com/TwinProduction/gatus/v3/config"
"github.com/TwinProduction/gatus/v3/core"
"github.com/TwinProduction/gatus/v3/storage"
"github.com/TwinProduction/gatus/v3/watchdog"
)
func TestSinglePageApplication(t *testing.T) {

View File

@ -4,7 +4,7 @@ import (
"net/http"
"strconv"
"github.com/TwinProduction/gatus/storage/store/common"
"github.com/TwinProduction/gatus/v3/storage/store/common"
)
const (

View File

@ -6,8 +6,8 @@ import (
"strings"
"time"
"github.com/TwinProduction/gatus/jsonpath"
"github.com/TwinProduction/gatus/pattern"
"github.com/TwinProduction/gatus/v3/jsonpath"
"github.com/TwinProduction/gatus/v3/pattern"
)
const (

View File

@ -3,7 +3,7 @@ package core
import (
"testing"
"github.com/TwinProduction/gatus/pattern"
"github.com/TwinProduction/gatus/v3/pattern"
)
func TestIntegrationQuery(t *testing.T) {

View File

@ -12,10 +12,10 @@ import (
"strings"
"time"
"github.com/TwinProduction/gatus/alerting/alert"
"github.com/TwinProduction/gatus/client"
"github.com/TwinProduction/gatus/core/ui"
"github.com/TwinProduction/gatus/util"
"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"
)
const (

View File

@ -6,8 +6,8 @@ import (
"testing"
"time"
"github.com/TwinProduction/gatus/alerting/alert"
"github.com/TwinProduction/gatus/client"
"github.com/TwinProduction/gatus/v3/alerting/alert"
"github.com/TwinProduction/gatus/v3/client"
)
func TestService_IsEnabled(t *testing.T) {

2
go.mod
View File

@ -1,4 +1,4 @@
module github.com/TwinProduction/gatus
module github.com/TwinProduction/gatus/v3
go 1.17

View File

@ -7,10 +7,10 @@ import (
"syscall"
"time"
"github.com/TwinProduction/gatus/config"
"github.com/TwinProduction/gatus/controller"
"github.com/TwinProduction/gatus/storage"
"github.com/TwinProduction/gatus/watchdog"
"github.com/TwinProduction/gatus/v3/config"
"github.com/TwinProduction/gatus/v3/controller"
"github.com/TwinProduction/gatus/v3/storage"
"github.com/TwinProduction/gatus/v3/watchdog"
)
func main() {

View File

@ -5,7 +5,7 @@ import (
"strconv"
"sync"
"github.com/TwinProduction/gatus/core"
"github.com/TwinProduction/gatus/v3/core"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
)

View File

@ -5,9 +5,9 @@ import (
"log"
"time"
"github.com/TwinProduction/gatus/storage/store"
"github.com/TwinProduction/gatus/storage/store/memory"
"github.com/TwinProduction/gatus/storage/store/sql"
"github.com/TwinProduction/gatus/v3/storage/store"
"github.com/TwinProduction/gatus/v3/storage/store/memory"
"github.com/TwinProduction/gatus/v3/storage/store/sql"
)
var (

View File

@ -4,7 +4,7 @@ import (
"testing"
"time"
"github.com/TwinProduction/gatus/storage/store/sql"
"github.com/TwinProduction/gatus/v3/storage/store/sql"
)
func TestGet(t *testing.T) {

View File

@ -6,10 +6,10 @@ import (
"sync"
"time"
"github.com/TwinProduction/gatus/core"
"github.com/TwinProduction/gatus/storage/store/common"
"github.com/TwinProduction/gatus/storage/store/common/paging"
"github.com/TwinProduction/gatus/util"
"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"
)

View File

@ -4,8 +4,8 @@ import (
"testing"
"time"
"github.com/TwinProduction/gatus/core"
"github.com/TwinProduction/gatus/storage/store/common/paging"
"github.com/TwinProduction/gatus/v3/core"
"github.com/TwinProduction/gatus/v3/storage/store/common/paging"
)
var (

View File

@ -3,7 +3,7 @@ package memory
import (
"time"
"github.com/TwinProduction/gatus/core"
"github.com/TwinProduction/gatus/v3/core"
)
const (

View File

@ -4,7 +4,7 @@ import (
"testing"
"time"
"github.com/TwinProduction/gatus/core"
"github.com/TwinProduction/gatus/v3/core"
)
func BenchmarkProcessUptimeAfterResult(b *testing.B) {

View File

@ -4,7 +4,7 @@ import (
"testing"
"time"
"github.com/TwinProduction/gatus/core"
"github.com/TwinProduction/gatus/v3/core"
)
func TestProcessUptimeAfterResult(t *testing.T) {

View File

@ -1,9 +1,9 @@
package memory
import (
"github.com/TwinProduction/gatus/core"
"github.com/TwinProduction/gatus/storage/store/common"
"github.com/TwinProduction/gatus/storage/store/common/paging"
"github.com/TwinProduction/gatus/v3/core"
"github.com/TwinProduction/gatus/v3/storage/store/common"
"github.com/TwinProduction/gatus/v3/storage/store/common/paging"
)
// ShallowCopyServiceStatus returns a shallow copy of a ServiceStatus with only the results

View File

@ -3,9 +3,9 @@ package memory
import (
"testing"
"github.com/TwinProduction/gatus/core"
"github.com/TwinProduction/gatus/storage/store/common"
"github.com/TwinProduction/gatus/storage/store/common/paging"
"github.com/TwinProduction/gatus/v3/core"
"github.com/TwinProduction/gatus/v3/storage/store/common"
"github.com/TwinProduction/gatus/v3/storage/store/common/paging"
)
func BenchmarkShallowCopyServiceStatus(b *testing.B) {

View File

@ -4,9 +4,9 @@ import (
"testing"
"time"
"github.com/TwinProduction/gatus/core"
"github.com/TwinProduction/gatus/storage/store/common"
"github.com/TwinProduction/gatus/storage/store/common/paging"
"github.com/TwinProduction/gatus/v3/core"
"github.com/TwinProduction/gatus/v3/storage/store/common"
"github.com/TwinProduction/gatus/v3/storage/store/common/paging"
)
func TestAddResult(t *testing.T) {

View File

@ -8,10 +8,10 @@ import (
"strings"
"time"
"github.com/TwinProduction/gatus/core"
"github.com/TwinProduction/gatus/storage/store/common"
"github.com/TwinProduction/gatus/storage/store/common/paging"
"github.com/TwinProduction/gatus/util"
"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/lib/pq"
_ "modernc.org/sqlite"
)

View File

@ -4,9 +4,9 @@ import (
"testing"
"time"
"github.com/TwinProduction/gatus/core"
"github.com/TwinProduction/gatus/storage/store/common"
"github.com/TwinProduction/gatus/storage/store/common/paging"
"github.com/TwinProduction/gatus/v3/core"
"github.com/TwinProduction/gatus/v3/storage/store/common"
"github.com/TwinProduction/gatus/v3/storage/store/common/paging"
)
var (

View File

@ -3,10 +3,10 @@ package store
import (
"time"
"github.com/TwinProduction/gatus/core"
"github.com/TwinProduction/gatus/storage/store/common/paging"
"github.com/TwinProduction/gatus/storage/store/memory"
"github.com/TwinProduction/gatus/storage/store/sql"
"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"
)
// Store is the interface that each stores should implement

View File

@ -4,10 +4,10 @@ import (
"testing"
"time"
"github.com/TwinProduction/gatus/core"
"github.com/TwinProduction/gatus/storage/store/common/paging"
"github.com/TwinProduction/gatus/storage/store/memory"
"github.com/TwinProduction/gatus/storage/store/sql"
"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"
)
func BenchmarkStore_GetAllServiceStatuses(b *testing.B) {

View File

@ -4,11 +4,11 @@ import (
"testing"
"time"
"github.com/TwinProduction/gatus/core"
"github.com/TwinProduction/gatus/storage/store/common"
"github.com/TwinProduction/gatus/storage/store/common/paging"
"github.com/TwinProduction/gatus/storage/store/memory"
"github.com/TwinProduction/gatus/storage/store/sql"
"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"
)
var (

View File

@ -4,9 +4,9 @@ import (
"encoding/json"
"log"
"github.com/TwinProduction/gatus/alerting"
"github.com/TwinProduction/gatus/alerting/alert"
"github.com/TwinProduction/gatus/core"
"github.com/TwinProduction/gatus/v3/alerting"
"github.com/TwinProduction/gatus/v3/alerting/alert"
"github.com/TwinProduction/gatus/v3/core"
)
// HandleAlerting takes care of alerts to resolve and alerts to trigger based on result success or failure

View File

@ -4,12 +4,12 @@ import (
"os"
"testing"
"github.com/TwinProduction/gatus/alerting"
"github.com/TwinProduction/gatus/alerting/alert"
"github.com/TwinProduction/gatus/alerting/provider/custom"
"github.com/TwinProduction/gatus/alerting/provider/pagerduty"
"github.com/TwinProduction/gatus/config"
"github.com/TwinProduction/gatus/core"
"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"
)
func TestHandleAlerting(t *testing.T) {

View File

@ -6,12 +6,12 @@ import (
"sync"
"time"
"github.com/TwinProduction/gatus/alerting"
"github.com/TwinProduction/gatus/config"
"github.com/TwinProduction/gatus/config/maintenance"
"github.com/TwinProduction/gatus/core"
"github.com/TwinProduction/gatus/metric"
"github.com/TwinProduction/gatus/storage"
"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"
)
var (