We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55c285f commit b042342Copy full SHA for b042342
internal/server/server.go
@@ -6,11 +6,12 @@ import (
6
"net/http"
7
"time"
8
9
+ "github.com/gin-gonic/gin"
10
+ "github.com/prometheus/client_golang/prometheus/promhttp"
11
+
12
"ghcr-exporter/internal/config"
13
"ghcr-exporter/internal/metrics"
14
"ghcr-exporter/internal/version"
- "github.com/gin-gonic/gin"
- "github.com/prometheus/client_golang/prometheus/promhttp"
15
)
16
17
type Server struct {
@@ -25,7 +26,7 @@ func New(cfg *config.Config, metricsRegistry *metrics.Registry) *Server {
25
26
if cfg.Logging.Level != "debug" {
27
gin.SetMode(gin.ReleaseMode)
28
}
-
29
30
router := gin.New()
31
router.Use(gin.Recovery())
32
0 commit comments