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

Method SearchWithResult

plugin/ash/ash.go:68–70  ·  view source on GitHub ↗

SearchWithResult 执行搜索并返回包含IsFinal标记的结果

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

Source from the content-addressed store, hash-verified

66
67// SearchWithResult 执行搜索并返回包含IsFinal标记的结果
68func (p *AshPlugin) SearchWithResult(keyword string, ext map[string]interface{}) (model.PluginSearchResult, error) {
69 return p.AsyncSearchWithResult(keyword, p.searchImpl, p.MainCacheKey, ext)
70}
71
72// searchImpl 实际的搜索实现(优化版本)
73func (p *AshPlugin) 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