refactor: rename project module

Rename the project module to include the full project URL instead of just
the name. This better aligns with Go best-practices.
This commit is contained in:
Hector 2022-02-25 21:53:38 +00:00
parent 7c2bcecf7a
commit 24ee5d96bd
6 changed files with 10 additions and 10 deletions

View File

@ -1,6 +1,6 @@
package cfg package cfg
import "fail2ban-prometheus-exporter/auth" import "gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/auth"
type hashedBasicAuth struct { type hashedBasicAuth struct {
username string username string

View File

@ -1,9 +1,9 @@
package f2b package f2b
import ( import (
"fail2ban-prometheus-exporter/cfg"
"fail2ban-prometheus-exporter/socket"
"github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus"
"gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/cfg"
"gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/socket"
"log" "log"
) )

View File

@ -1,8 +1,8 @@
package f2b package f2b
import ( import (
"fail2ban-prometheus-exporter/socket"
"github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus"
"gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/socket"
"log" "log"
) )

View File

@ -1,8 +1,8 @@
package textfile package textfile
import ( import (
"fail2ban-prometheus-exporter/cfg"
"github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus"
"gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/cfg"
"log" "log"
) )

View File

@ -1,13 +1,13 @@
package main package main
import ( import (
"fail2ban-prometheus-exporter/auth"
"fail2ban-prometheus-exporter/cfg"
"fail2ban-prometheus-exporter/collector/f2b"
"fail2ban-prometheus-exporter/collector/textfile"
"fmt" "fmt"
"github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp" "github.com/prometheus/client_golang/prometheus/promhttp"
"gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/auth"
"gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/cfg"
"gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/collector/f2b"
"gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/collector/textfile"
"log" "log"
"net/http" "net/http"
"os" "os"

View File

@ -1,4 +1,4 @@
module fail2ban-prometheus-exporter module gitlab.com/hectorjsmith/fail2ban-prometheus-exporter
go 1.15 go 1.15