MCPcopy Index your code
hub / github.com/bytebase/bytebase / ClassifyRequest

Function ClassifyRequest

backend/plugin/parser/elasticsearch/query_type.go:10–12  ·  view source on GitHub ↗

ClassifyRequest determines the QueryType for an ElasticSearch REST API request.

(method, url string)

Source from the content-addressed store, hash-verified

8
9// ClassifyRequest determines the QueryType for an ElasticSearch REST API request.
10func ClassifyRequest(method, url string) base.QueryType {
11 return convertQueryType(es.ClassifyRequest(method, url))
12}
13
14// convertQueryType maps an omni QueryType to a bytebase base.QueryType.
15func convertQueryType(qt es.QueryType) base.QueryType {

Callers

nothing calls this directly

Calls 1

convertQueryTypeFunction · 0.85

Tested by

no test coverage detected