ClassifyRequest determines the QueryType for an ElasticSearch REST API request.
(method, url string)
| 8 | |
| 9 | // ClassifyRequest determines the QueryType for an ElasticSearch REST API request. |
| 10 | func 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. |
| 15 | func convertQueryType(qt es.QueryType) base.QueryType { |
nothing calls this directly
no test coverage detected