Exists 检查插件是否存在
(name string)
| 154 | |
| 155 | // Exists 检查插件是否存在 |
| 156 | func Exists(name string) bool { |
| 157 | mutex.RLock() |
| 158 | defer mutex.RUnlock() |
| 159 | |
| 160 | _, exists := plugins[name] |
| 161 | return exists |
| 162 | } |
| 163 | |
| 164 | // GetPluginPorts 获取插件端口列表 |
| 165 | func GetPluginPorts(name string) []int { |
no outgoing calls
no test coverage detected