Skip to content

Commit 8ad03e0

Browse files
committed
Change query_api pkg name
Signed-off-by: SungJin1212 <[email protected]>
1 parent 3a54741 commit 8ad03e0

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

pkg/api/handlers.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"path"
99
"sync"
1010

11+
"github.com/cortexproject/cortex/pkg/api/query"
1112
"github.com/go-kit/log"
1213
"github.com/go-kit/log/level"
1314
"github.com/gorilla/mux"
@@ -25,7 +26,6 @@ import (
2526
"github.com/weaveworks/common/instrument"
2627
"github.com/weaveworks/common/middleware"
2728

28-
"github.com/cortexproject/cortex/pkg/api/queryapi"
2929
"github.com/cortexproject/cortex/pkg/querier"
3030
"github.com/cortexproject/cortex/pkg/querier/codec"
3131
"github.com/cortexproject/cortex/pkg/querier/stats"
@@ -280,7 +280,7 @@ func NewQuerierHandler(
280280
legacyPromRouter := route.New().WithPrefix(path.Join(legacyPrefix, "/api/v1"))
281281
api.Register(legacyPromRouter)
282282

283-
queryAPI := queryapi.NewQueryAPI(engine, translateSampleAndChunkQueryable, statsRenderer, logger, codecs, corsOrigin)
283+
queryAPI := query.NewQueryAPI(engine, translateSampleAndChunkQueryable, statsRenderer, logger, codecs, corsOrigin)
284284

285285
// TODO(gotjosh): This custom handler is temporary until we're able to vendor the changes in:
286286
// https://github.com/prometheus/prometheus/pull/7125/files

pkg/api/queryapi/query_api.go renamed to pkg/api/query/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package queryapi
1+
package query
22

33
import (
44
"context"

pkg/api/queryapi/query_api_test.go renamed to pkg/api/query/handler_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package queryapi
1+
package query
22

33
import (
44
"context"

pkg/api/queryapi/response.go renamed to pkg/api/query/response.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package queryapi
1+
package query
22

33
// Response defines the Prometheus response format.
44
type Response struct {

pkg/api/queryapi/util.go renamed to pkg/api/query/util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package queryapi
1+
package query
22

33
import (
44
"context"

0 commit comments

Comments
 (0)