init 注册插件
()
| 78 | |
| 79 | // init 注册插件 |
| 80 | func init() { |
| 81 | p := &CygPlugin{ |
| 82 | BaseAsyncPlugin: plugin.NewBaseAsyncPlugin("cyg", 3), // 优先级3,标准质量数据源 |
| 83 | } |
| 84 | plugin.RegisterGlobalPlugin(p) |
| 85 | } |
| 86 | |
| 87 | // Search 执行搜索并返回结果(兼容性方法) |
| 88 | func (p *CygPlugin) Search(keyword string, ext map[string]interface{}) ([]model.SearchResult, error) { |
nothing calls this directly
no test coverage detected