MCPcopy
hub / github.com/fish2018/pansou / SearchWithResult

Method SearchWithResult

plugin/huban/huban.go:168–170  ·  view source on GitHub ↗

SearchWithResult 带结果统计的搜索接口

(keyword string, ext map[string]interface{})

Source from the content-addressed store, hash-verified

166
167// SearchWithResult 带结果统计的搜索接口
168func (p *HubanAsyncPlugin) SearchWithResult(keyword string, ext map[string]interface{}) (model.PluginSearchResult, error) {
169 return p.AsyncSearchWithResult(keyword, p.searchImpl, p.MainCacheKey, ext)
170}
171
172// searchImpl 搜索实现 - HTML解析版本
173func (p *HubanAsyncPlugin) searchImpl(client *http.Client, keyword string, ext map[string]interface{}) ([]model.SearchResult, error) {

Callers 1

SearchMethod · 0.95

Calls 1

AsyncSearchWithResultMethod · 0.80

Tested by

no test coverage detected