33package quesma
44
55import (
6- "quesma/frontend_connectors"
7- "quesma/frontend_connectors/mux"
86 "quesma/logger"
97 "quesma/quesma/config"
108 "quesma/quesma/types"
119 "quesma/table_resolver"
1210 "quesma/tracing"
11+ "quesma_v2/core/mux"
1312 "strings"
1413)
1514
@@ -34,15 +33,15 @@ func matchedAgainstBulkBody(configuration *config.QuesmaConfiguration, tableReso
3433 if idx % 2 == 0 {
3534 name := extractIndexName (s )
3635
37- decision := tableResolver .Resolve (frontend_connectors .IngestPipeline , name )
36+ decision := tableResolver .Resolve (mux .IngestPipeline , name )
3837
3938 if decision .IsClosed {
4039 return mux.MatchResult {Matched : true , Decision : decision }
4140 }
4241
4342 // if have any enabled Clickhouse connector, then return true
4443 for _ , connector := range decision .UseConnectors {
45- if _ , ok := connector .(* frontend_connectors .ConnectorDecisionClickhouse ); ok {
44+ if _ , ok := connector .(* mux .ConnectorDecisionClickhouse ); ok {
4645 return mux.MatchResult {Matched : true , Decision : decision }
4746 }
4847 }
@@ -57,7 +56,7 @@ func matchedAgainstBulkBody(configuration *config.QuesmaConfiguration, tableReso
5756
5857// Query path only (looks at QueryTarget)
5958func matchedAgainstPattern (indexRegistry table_resolver.TableResolver ) mux.RequestMatcher {
60- return matchAgainstTableResolver (indexRegistry , frontend_connectors .QueryPipeline )
59+ return matchAgainstTableResolver (indexRegistry , mux .QueryPipeline )
6160}
6261
6362// check whether exact index name is enabled
@@ -71,7 +70,7 @@ func matchAgainstTableResolver(indexRegistry table_resolver.TableResolver, pipel
7170 return mux.MatchResult {Matched : false , Decision : decision }
7271 }
7372 for _ , connector := range decision .UseConnectors {
74- if _ , ok := connector .(* frontend_connectors .ConnectorDecisionClickhouse ); ok {
73+ if _ , ok := connector .(* mux .ConnectorDecisionClickhouse ); ok {
7574 return mux.MatchResult {Matched : true , Decision : decision }
7675 }
7776 }
@@ -80,11 +79,11 @@ func matchAgainstTableResolver(indexRegistry table_resolver.TableResolver, pipel
8079}
8180
8281func matchedExactQueryPath (indexRegistry table_resolver.TableResolver ) mux.RequestMatcher {
83- return matchAgainstTableResolver (indexRegistry , frontend_connectors .QueryPipeline )
82+ return matchAgainstTableResolver (indexRegistry , mux .QueryPipeline )
8483}
8584
8685func matchedExactIngestPath (indexRegistry table_resolver.TableResolver ) mux.RequestMatcher {
87- return matchAgainstTableResolver (indexRegistry , frontend_connectors .IngestPipeline )
86+ return matchAgainstTableResolver (indexRegistry , mux .IngestPipeline )
8887}
8988
9089// Returns false if the body contains a Kibana internal search.
0 commit comments