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

Function GetPluginByName

plugin/plugin.go:148–154  ·  view source on GitHub ↗

GetPluginByName 根据名称获取已注册的插件

(name string)

Source from the content-addressed store, hash-verified

146
147// GetPluginByName 根据名称获取已注册的插件
148func GetPluginByName(name string) (AsyncSearchPlugin, bool) {
149 globalRegistryLock.RLock()
150 defer globalRegistryLock.RUnlock()
151
152 plugin, exists := globalRegistry[name]
153 return plugin, exists
154}
155
156// PluginManager 异步插件管理器
157type PluginManager struct {

Callers 3

mergeResultsByTypeFunction · 0.92
getPluginPriorityByNameFunction · 0.92
getPluginPriorityMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected