Skip to content

Commit

Permalink
chore(multiple): replace all occurrences of julienschmidt/httprouter …
Browse files Browse the repository at this point in the history
…with influxdata/httprouter
  • Loading branch information
GeorgeMac committed Nov 22, 2019
1 parent cf16065 commit cc09555
Show file tree
Hide file tree
Showing 50 changed files with 52 additions and 51 deletions.
2 changes: 1 addition & 1 deletion chronograf/server/annotations_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

"github.com/influxdata/influxdb/chronograf"
"github.com/influxdata/influxdb/chronograf/mocks"
"github.com/julienschmidt/httprouter"
"github.com/influxdata/httprouter"
)

func TestService_Annotations(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion chronograf/server/cells.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/influxdata/influxdb/chronograf"
idgen "github.com/influxdata/influxdb/chronograf/id"
"github.com/julienschmidt/httprouter"
"github.com/influxdata/httprouter"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion chronograf/server/cells_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/influxdata/influxdb/chronograf"
"github.com/influxdata/influxdb/chronograf/mocks"
"github.com/julienschmidt/httprouter"
"github.com/influxdata/httprouter"
)

func Test_Cells_CorrectAxis(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion chronograf/server/databases.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strconv"

"github.com/influxdata/influxdb/chronograf"
"github.com/julienschmidt/httprouter"
"github.com/influxdata/httprouter"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion chronograf/server/databases_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

"github.com/influxdata/influxdb/chronograf"
"github.com/influxdata/influxdb/chronograf/mocks"
"github.com/julienschmidt/httprouter"
"github.com/influxdata/httprouter"
)

func TestService_GetDatabases(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion chronograf/server/influx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

"github.com/influxdata/influxdb/chronograf"
"github.com/influxdata/influxdb/chronograf/mocks"
"github.com/julienschmidt/httprouter"
"github.com/influxdata/httprouter"
)

func TestService_Influx(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion chronograf/server/mux.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/influxdata/influxdb/chronograf"
"github.com/influxdata/influxdb/chronograf/oauth2"
"github.com/influxdata/influxdb/chronograf/roles"
jhttprouter "github.com/julienschmidt/httprouter"
jhttprouter "github.com/influxdata/httprouter"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion chronograf/server/permissions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

"github.com/influxdata/influxdb/chronograf"
"github.com/influxdata/influxdb/chronograf/mocks"
"github.com/julienschmidt/httprouter"
"github.com/influxdata/httprouter"
)

func TestService_Permissions(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion chronograf/server/queries_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/influxdata/influxdb/chronograf"
"github.com/influxdata/influxdb/chronograf/mocks"
"github.com/julienschmidt/httprouter"
"github.com/influxdata/httprouter"
)

func TestService_Queries(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion chronograf/server/sources_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/influxdata/influxdb/chronograf"
"github.com/influxdata/influxdb/chronograf/mocks"
"github.com/julienschmidt/httprouter"
"github.com/influxdata/httprouter"
)

func Test_ValidSourceRequest(t *testing.T) {
Expand Down
4 changes: 1 addition & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ require (
github.com/hashicorp/vault/api v1.0.2
github.com/influxdata/cron v0.0.0-20191112133922-ad5847cfab62
github.com/influxdata/flux v0.54.0
github.com/influxdata/httprouter v1.3.1-0.20191122104820-ee83e2772f69
github.com/influxdata/influxql v0.0.0-20180925231337-1cbfca8e56b6
github.com/influxdata/usage-client v0.0.0-20160829180054-6d3895376368
github.com/jessevdk/go-flags v1.4.0
github.com/jsternberg/zap-logfmt v1.2.0
github.com/julienschmidt/httprouter v1.2.0
github.com/jwilder/encoding v0.0.0-20170811194829-b4e1701a28ef
github.com/k0kubun/colorstring v0.0.0-20150214042306-9440f1994b88 // indirect
github.com/kevinburke/go-bindata v3.11.0+incompatible
Expand Down Expand Up @@ -112,5 +112,3 @@ replace github.com/Sirupsen/logrus => github.com/sirupsen/logrus v1.2.0
replace github.com/influxdata/platform => /dev/null

replace github.com/goreleaser/goreleaser => github.com/influxdata/goreleaser v0.97.0-influx

replace github.com/julienschmidt/httprouter => github.com/georgemac/httprouter v1.3.1-0.20191121142037-34e411acc501
3 changes: 3 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,8 @@ github.com/influxdata/flux v0.54.0 h1:DjAkGoPkgHLDPEn1jSuOpsH4QgcjmSBkRuxSAaQCj1
github.com/influxdata/flux v0.54.0/go.mod h1:ZFf4F0c8ACFP/5BkfCwk9I/vUwcByr0vMdLxwgOk57E=
github.com/influxdata/goreleaser v0.97.0-influx h1:jT5OrcW7WfS0e2QxfwmTBjhLvpIC9CDLRhNgZJyhj8s=
github.com/influxdata/goreleaser v0.97.0-influx/go.mod h1:MnjA0e0Uq6ISqjG1WxxMAl+3VS1QYjILSWVnMYDxasE=
github.com/influxdata/httprouter v1.3.1-0.20191122104820-ee83e2772f69 h1:WQsmW0fXO4ZE/lFGIE84G6rIV5SJN3P3sjIXAP1a8eU=
github.com/influxdata/httprouter v1.3.1-0.20191122104820-ee83e2772f69/go.mod h1:pwymjR6SrP3gD3pRj9RJwdl1j5s3doEEV8gS4X9qSzA=
github.com/influxdata/influxql v0.0.0-20180925231337-1cbfca8e56b6 h1:CFx+pP90q/qg3spoiZjf8donE4WpAdjeJfPOcoNqkWo=
github.com/influxdata/influxql v0.0.0-20180925231337-1cbfca8e56b6/go.mod h1:KpVI7okXjK6PRi3Z5B+mtKZli+R1DnZgb3N+tzevNgo=
github.com/influxdata/line-protocol v0.0.0-20180522152040-32c6aa80de5e h1:/o3vQtpWJhvnIbXley4/jwzzqNeigJK9z+LZcJZ9zfM=
Expand All @@ -269,6 +271,7 @@ github.com/jsternberg/zap-logfmt v1.2.0 h1:1v+PK4/B48cy8cfQbxL4FmmNZrjnIMr2BsnyE
github.com/jsternberg/zap-logfmt v1.2.0/go.mod h1:kz+1CUmCutPWABnNkOu9hOHKdT2q3TDYCcsFy9hpqb0=
github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo=
github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU=
github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w=
github.com/jwilder/encoding v0.0.0-20170811194829-b4e1701a28ef h1:2jNeR4YUziVtswNP9sEFAI913cVrzH85T+8Q6LpYbT0=
github.com/jwilder/encoding v0.0.0-20170811194829-b4e1701a28ef/go.mod h1:Ct9fl0F6iIOGgxJ5npU/IUOhOhqlVrGjyIZc8/MagT0=
github.com/k0kubun/colorstring v0.0.0-20150214042306-9440f1994b88 h1:uC1QfSlInpQF+M0ao65imhwqKnz3Q2z/d8PWZRMQvDM=
Expand Down
2 changes: 1 addition & 1 deletion http/auth_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (

platform "github.com/influxdata/influxdb"
platcontext "github.com/influxdata/influxdb/context"
"github.com/julienschmidt/httprouter"
"github.com/influxdata/httprouter"
)

// AuthorizationBackend is all services and associated parameters required to construct
Expand Down
2 changes: 1 addition & 1 deletion http/auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"github.com/influxdata/influxdb/kv"
"github.com/influxdata/influxdb/mock"
platformtesting "github.com/influxdata/influxdb/testing"
"github.com/julienschmidt/httprouter"
"github.com/influxdata/httprouter"
)

// NewMockAuthorizationBackend returns a AuthorizationBackend with mock services.
Expand Down
2 changes: 1 addition & 1 deletion http/authentication_middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
platform "github.com/influxdata/influxdb"
platcontext "github.com/influxdata/influxdb/context"
"github.com/influxdata/influxdb/jsonweb"
"github.com/julienschmidt/httprouter"
"github.com/influxdata/httprouter"
"go.uber.org/zap"
)

Expand Down
2 changes: 1 addition & 1 deletion http/bucket_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"path"
"time"

"github.com/julienschmidt/httprouter"
"github.com/influxdata/httprouter"
"go.uber.org/zap"

"github.com/influxdata/influxdb"
Expand Down
2 changes: 1 addition & 1 deletion http/bucket_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"github.com/influxdata/influxdb/kv"
"github.com/influxdata/influxdb/mock"
platformtesting "github.com/influxdata/influxdb/testing"
"github.com/julienschmidt/httprouter"
"github.com/influxdata/httprouter"
"go.uber.org/zap"
)

Expand Down
2 changes: 1 addition & 1 deletion http/check_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/influxdata/influxdb"
pctx "github.com/influxdata/influxdb/context"
"github.com/influxdata/influxdb/notification/check"
"github.com/julienschmidt/httprouter"
"github.com/influxdata/httprouter"
"go.uber.org/zap"
)

Expand Down
2 changes: 1 addition & 1 deletion http/check_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"github.com/influxdata/influxdb/mock"
"github.com/influxdata/influxdb/notification/check"
influxTesting "github.com/influxdata/influxdb/testing"
"github.com/julienschmidt/httprouter"
"github.com/influxdata/httprouter"
"go.uber.org/zap"
)

Expand Down
2 changes: 1 addition & 1 deletion http/chronograf_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/NYTimes/gziphandler"
"github.com/influxdata/influxdb"
"github.com/influxdata/influxdb/chronograf/server"
"github.com/julienschmidt/httprouter"
"github.com/influxdata/httprouter"
)

// ChronografHandler is an http handler for serving chronograf chronografs.
Expand Down
2 changes: 1 addition & 1 deletion http/dashboard_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"path"

platform "github.com/influxdata/influxdb"
"github.com/julienschmidt/httprouter"
"github.com/influxdata/httprouter"
"go.uber.org/zap"
)

Expand Down
2 changes: 1 addition & 1 deletion http/dashboard_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"github.com/influxdata/influxdb/inmem"
"github.com/influxdata/influxdb/mock"
platformtesting "github.com/influxdata/influxdb/testing"
"github.com/julienschmidt/httprouter"
"github.com/influxdata/httprouter"
"github.com/yudai/gojsondiff"
"github.com/yudai/gojsondiff/formatter"
)
Expand Down
2 changes: 1 addition & 1 deletion http/delete_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
pcontext "github.com/influxdata/influxdb/context"
"github.com/influxdata/influxdb/kit/tracing"
"github.com/influxdata/influxdb/predicate"
"github.com/julienschmidt/httprouter"
"github.com/influxdata/httprouter"
"go.uber.org/zap"
)

Expand Down
2 changes: 1 addition & 1 deletion http/document_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/influxdata/influxdb"
pcontext "github.com/influxdata/influxdb/context"
"github.com/julienschmidt/httprouter"
"github.com/influxdata/httprouter"
"go.uber.org/zap"
)

Expand Down
2 changes: 1 addition & 1 deletion http/document_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
pcontext "github.com/influxdata/influxdb/context"
"github.com/influxdata/influxdb/mock"
influxtesting "github.com/influxdata/influxdb/testing"
"github.com/julienschmidt/httprouter"
"github.com/influxdata/httprouter"
"go.uber.org/zap"
)

Expand Down
2 changes: 1 addition & 1 deletion http/label_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"go.uber.org/zap"

"github.com/influxdata/influxdb"
"github.com/julienschmidt/httprouter"
"github.com/influxdata/httprouter"
)

// LabelHandler represents an HTTP API handler for labels
Expand Down
2 changes: 1 addition & 1 deletion http/label_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
platform "github.com/influxdata/influxdb"
"github.com/influxdata/influxdb/mock"
platformtesting "github.com/influxdata/influxdb/testing"
"github.com/julienschmidt/httprouter"
"github.com/influxdata/httprouter"
)

func TestService_handleGetLabels(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion http/notification_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/influxdata/influxdb"
pctx "github.com/influxdata/influxdb/context"
"github.com/influxdata/influxdb/notification/endpoint"
"github.com/julienschmidt/httprouter"
"github.com/influxdata/httprouter"
"go.uber.org/zap"
)

Expand Down
2 changes: 1 addition & 1 deletion http/notification_endpoint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"github.com/influxdata/influxdb/mock"
"github.com/influxdata/influxdb/notification/endpoint"
influxTesting "github.com/influxdata/influxdb/testing"
"github.com/julienschmidt/httprouter"
"github.com/influxdata/httprouter"
"go.uber.org/zap"
)

Expand Down
2 changes: 1 addition & 1 deletion http/notification_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/influxdata/influxdb"
pctx "github.com/influxdata/influxdb/context"
"github.com/influxdata/influxdb/notification/rule"
"github.com/julienschmidt/httprouter"
"github.com/influxdata/httprouter"
"go.uber.org/zap"
)

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

platform "github.com/influxdata/influxdb"
"github.com/julienschmidt/httprouter"
"github.com/influxdata/httprouter"
"go.uber.org/zap"
)

Expand Down
2 changes: 1 addition & 1 deletion http/org_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/http"
"path"

"github.com/julienschmidt/httprouter"
"github.com/influxdata/httprouter"
"go.uber.org/zap"

"github.com/influxdata/influxdb"
Expand Down
2 changes: 1 addition & 1 deletion http/query_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"github.com/influxdata/influxdb/kit/check"
"github.com/influxdata/influxdb/kit/tracing"
"github.com/influxdata/influxdb/query"
"github.com/julienschmidt/httprouter"
"github.com/influxdata/httprouter"
"github.com/pkg/errors"
prom "github.com/prometheus/client_golang/prometheus"
"go.uber.org/zap"
Expand Down
2 changes: 1 addition & 1 deletion http/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/go-chi/chi"
platform "github.com/influxdata/influxdb"
influxlogger "github.com/influxdata/influxdb/logger"
"github.com/julienschmidt/httprouter"
"github.com/influxdata/httprouter"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
)
Expand Down
2 changes: 1 addition & 1 deletion http/scraper_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

"github.com/influxdata/influxdb"
pctx "github.com/influxdata/influxdb/context"
"github.com/julienschmidt/httprouter"
"github.com/influxdata/httprouter"
"go.uber.org/zap"
)

Expand Down
2 changes: 1 addition & 1 deletion http/scraper_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"github.com/influxdata/influxdb/inmem"
"github.com/influxdata/influxdb/mock"
platformtesting "github.com/influxdata/influxdb/testing"
"github.com/julienschmidt/httprouter"
"github.com/influxdata/httprouter"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion http/session_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"net/http"

platform "github.com/influxdata/influxdb"
"github.com/julienschmidt/httprouter"
"github.com/influxdata/httprouter"
"go.uber.org/zap"
)

Expand Down
2 changes: 1 addition & 1 deletion http/source_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
platform "github.com/influxdata/influxdb"
"github.com/influxdata/influxdb/query"
"github.com/influxdata/influxdb/query/influxql"
"github.com/julienschmidt/httprouter"
"github.com/influxdata/httprouter"
"go.uber.org/zap"
)

Expand Down
2 changes: 1 addition & 1 deletion http/task_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"github.com/influxdata/influxdb/kit/tracing"
"github.com/influxdata/influxdb/kv"
"github.com/influxdata/influxdb/task/backend"
"github.com/julienschmidt/httprouter"
"github.com/influxdata/httprouter"
"go.uber.org/zap"
)

Expand Down
2 changes: 1 addition & 1 deletion http/task_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
_ "github.com/influxdata/influxdb/query/builtin"
"github.com/influxdata/influxdb/task/backend"
platformtesting "github.com/influxdata/influxdb/testing"
"github.com/julienschmidt/httprouter"
"github.com/influxdata/httprouter"
"go.uber.org/zap"
"go.uber.org/zap/zaptest"
)
Expand Down
2 changes: 1 addition & 1 deletion http/telegraf.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
platform "github.com/influxdata/influxdb"
pctx "github.com/influxdata/influxdb/context"
"github.com/influxdata/influxdb/telegraf/plugins"
"github.com/julienschmidt/httprouter"
"github.com/influxdata/httprouter"
"go.uber.org/zap"
)

Expand Down
2 changes: 1 addition & 1 deletion http/usage_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"time"

platform "github.com/influxdata/influxdb"
"github.com/julienschmidt/httprouter"
"github.com/influxdata/httprouter"
"go.uber.org/zap"
)

Expand Down
Loading

0 comments on commit cc09555

Please sign in to comment.