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

Function init

plugin/cyg/cyg.go:80–85  ·  view source on GitHub ↗

init 注册插件

()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

NewBaseAsyncPluginFunction · 0.92
RegisterGlobalPluginFunction · 0.92

Tested by

no test coverage detected