From 20868b83a5ef4221427c97f7c137c13d6a213b1f Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Mon, 2 Oct 2023 12:49:50 +0200 Subject: [PATCH] refac: change go module path --- cfg/cfg.go | 2 +- cfg/settings.go | 2 +- collector/f2b/collector.go | 4 ++-- collector/f2b/socket.go | 5 +++-- collector/textfile/collector.go | 5 +++-- exporter.go | 8 ++++---- go.mod | 2 +- server/auth.go | 2 +- server/handler.go | 2 +- server/server.go | 4 ++-- 10 files changed, 19 insertions(+), 17 deletions(-) diff --git a/cfg/cfg.go b/cfg/cfg.go index 56ab3d5..142173e 100644 --- a/cfg/cfg.go +++ b/cfg/cfg.go @@ -5,8 +5,8 @@ import ( "log" "os" + "git.cryptic.systems/volker.raschek/prometheus-fail2ban-exporter/auth" "github.com/alecthomas/kong" - "gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/auth" ) var cliStruct struct { diff --git a/cfg/settings.go b/cfg/settings.go index 8ecf998..826fa03 100644 --- a/cfg/settings.go +++ b/cfg/settings.go @@ -1,6 +1,6 @@ package cfg -import "gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/auth" +import "git.cryptic.systems/volker.raschek/prometheus-fail2ban-exporter/auth" type AppSettings struct { VersionMode bool diff --git a/collector/f2b/collector.go b/collector/f2b/collector.go index e6a8ed8..2447c68 100644 --- a/collector/f2b/collector.go +++ b/collector/f2b/collector.go @@ -4,9 +4,9 @@ import ( "log" "os" + "git.cryptic.systems/volker.raschek/prometheus-fail2ban-exporter/cfg" + "git.cryptic.systems/volker.raschek/prometheus-fail2ban-exporter/socket" "github.com/prometheus/client_golang/prometheus" - "gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/cfg" - "gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/socket" ) type Collector struct { diff --git a/collector/f2b/socket.go b/collector/f2b/socket.go index 0473cd1..a7378a5 100644 --- a/collector/f2b/socket.go +++ b/collector/f2b/socket.go @@ -1,9 +1,10 @@ package f2b import ( - "github.com/prometheus/client_golang/prometheus" - "gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/socket" "log" + + "git.cryptic.systems/volker.raschek/prometheus-fail2ban-exporter/socket" + "github.com/prometheus/client_golang/prometheus" ) const ( diff --git a/collector/textfile/collector.go b/collector/textfile/collector.go index 7b43cb0..f490e6d 100644 --- a/collector/textfile/collector.go +++ b/collector/textfile/collector.go @@ -1,9 +1,10 @@ package textfile import ( - "github.com/prometheus/client_golang/prometheus" - "gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/cfg" "log" + + "git.cryptic.systems/volker.raschek/prometheus-fail2ban-exporter/cfg" + "github.com/prometheus/client_golang/prometheus" ) type Collector struct { diff --git a/exporter.go b/exporter.go index 5dc6e0d..e748914 100644 --- a/exporter.go +++ b/exporter.go @@ -7,11 +7,11 @@ import ( "os/signal" "syscall" + "git.cryptic.systems/volker.raschek/prometheus-fail2ban-exporter/cfg" + "git.cryptic.systems/volker.raschek/prometheus-fail2ban-exporter/collector/f2b" + "git.cryptic.systems/volker.raschek/prometheus-fail2ban-exporter/collector/textfile" + "git.cryptic.systems/volker.raschek/prometheus-fail2ban-exporter/server" "github.com/prometheus/client_golang/prometheus" - "gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/cfg" - "gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/collector/f2b" - "gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/collector/textfile" - "gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/server" ) var ( diff --git a/go.mod b/go.mod index 9425657..2bdf344 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module gitlab.com/hectorjsmith/fail2ban-prometheus-exporter +module git.cryptic.systems/volker.raschek/prometheus-fail2ban-exporter go 1.20 diff --git a/server/auth.go b/server/auth.go index 6ed42ea..7bdf16b 100644 --- a/server/auth.go +++ b/server/auth.go @@ -3,7 +3,7 @@ package server import ( "net/http" - "gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/auth" + "git.cryptic.systems/volker.raschek/prometheus-fail2ban-exporter/auth" ) func AuthMiddleware(handlerFunc http.HandlerFunc, authProvider auth.AuthProvider) http.HandlerFunc { diff --git a/server/handler.go b/server/handler.go index a0d8bf2..43a9011 100644 --- a/server/handler.go +++ b/server/handler.go @@ -4,8 +4,8 @@ import ( "log" "net/http" + "git.cryptic.systems/volker.raschek/prometheus-fail2ban-exporter/collector/textfile" "github.com/prometheus/client_golang/prometheus/promhttp" - "gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/collector/textfile" ) const ( diff --git a/server/server.go b/server/server.go index 315846e..7bb229a 100644 --- a/server/server.go +++ b/server/server.go @@ -5,8 +5,8 @@ import ( "net/http" "time" - "gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/cfg" - "gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/collector/textfile" + "git.cryptic.systems/volker.raschek/prometheus-fail2ban-exporter/cfg" + "git.cryptic.systems/volker.raschek/prometheus-fail2ban-exporter/collector/textfile" ) func StartServer(