Skip to content

Commit

Permalink
deps: chi v5
Browse files Browse the repository at this point in the history
  • Loading branch information
rl404 committed Jul 12, 2023
1 parent 30d2aa2 commit e7602ed
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions example/log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/http"
"net/http/httptest"

"github.com/go-chi/chi"
"github.com/go-chi/chi/v5"
"github.com/rl404/fairy/example/errors/helper"
"github.com/rl404/fairy/log"
)
Expand All @@ -31,7 +31,7 @@ func main() {
Level: log.ErrorLevel,
ElasticsearchAddresses: []string{"http://localhost:9200"},
ElasticsearchUser: "elastic",
ElasticsearchPassword: "rl404",
ElasticsearchPassword: "",
ElasticsearchIndex: "logs-example",
ElasticsearchIsSync: true,
})
Expand Down
2 changes: 1 addition & 1 deletion example/monitoring/newrelic.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"net/http"
"time"

"github.com/go-chi/chi"
"github.com/go-chi/chi/v5"
"github.com/newrelic/go-agent/v3/newrelic"
_cache "github.com/rl404/fairy/cache"
"github.com/rl404/fairy/monitoring/newrelic/cache"
Expand Down
2 changes: 1 addition & 1 deletion example/monitoring/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"net/http"
"time"

"github.com/go-chi/chi"
"github.com/go-chi/chi/v5"
"github.com/prometheus/client_golang/prometheus/promhttp"
_cache "github.com/rl404/fairy/cache"
"github.com/rl404/fairy/monitoring/prometheus/cache"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/allegro/bigcache/v3 v3.1.0
github.com/bradfitz/gomemcache v0.0.0-20230611145640-acc696258285
github.com/elastic/go-elasticsearch/v8 v8.8.2
github.com/go-chi/chi v4.1.2+incompatible
github.com/go-chi/chi/v5 v5.0.8
github.com/go-playground/mold/v4 v4.5.0
github.com/go-playground/validator/v10 v10.14.1
github.com/golang/mock v1.6.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -706,8 +706,8 @@ github.com/fogleman/gg v1.3.0/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzP
github.com/gabriel-vasile/mimetype v1.4.2 h1:w5qFW6JKBz9Y393Y4q372O9A7cUSequkh1Q7OhCmWKU=
github.com/gabriel-vasile/mimetype v1.4.2/go.mod h1:zApsH/mKG4w07erKIaJPFiX0Tsq9BFQgN3qGY5GnNgA=
github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
github.com/go-chi/chi v4.1.2+incompatible h1:fGFk2Gmi/YKXk0OmGfBh0WgmN3XB8lVnEyNz34tQRec=
github.com/go-chi/chi v4.1.2+incompatible/go.mod h1:eB3wogJHnLi3x/kFX2A+IbTBlXxmMeXJVKy9tTv1XzQ=
github.com/go-chi/chi/v5 v5.0.8 h1:lD+NLqFcAi1ovnVZpsnObHGW4xb4J8lNmoYVfECH1Y0=
github.com/go-chi/chi/v5 v5.0.8/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8=
github.com/go-fonts/dejavu v0.1.0/go.mod h1:4Wt4I4OU2Nq9asgDCteaAaWZOV24E+0/Pwo0gppep4g=
github.com/go-fonts/latin-modern v0.2.0/go.mod h1:rQVLdDMK+mK1xscDwsqM5J8U2jrRa3T0ecnM9pNujks=
github.com/go-fonts/liberation v0.1.1/go.mod h1:K6qoJYypsmfVjWg8KOVDQhLc8UDgIK2HYqyqAO9z7GY=
Expand Down
4 changes: 2 additions & 2 deletions log/http_middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"net/http"
"time"

"github.com/go-chi/chi"
"github.com/go-chi/chi/middleware"
"github.com/go-chi/chi/v5"
"github.com/go-chi/chi/v5/middleware"
"github.com/rl404/fairy/errors"
)

Expand Down
2 changes: 1 addition & 1 deletion monitoring/newrelic/middleware/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package middleware
import (
"net/http"

"github.com/go-chi/chi"
"github.com/go-chi/chi/v5"
"github.com/newrelic/go-agent/v3/newrelic"
)

Expand Down
4 changes: 2 additions & 2 deletions monitoring/prometheus/middleware/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"strconv"
"time"

"github.com/go-chi/chi"
mwChi "github.com/go-chi/chi/middleware"
"github.com/go-chi/chi/v5"
mwChi "github.com/go-chi/chi/v5/middleware"
"github.com/prometheus/client_golang/prometheus"
)

Expand Down

0 comments on commit e7602ed

Please sign in to comment.