MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / currentUsagePlugin

Method currentUsagePlugin

internal/pluginhost/adapters.go:1224–1238  ·  view source on GitHub ↗
(pluginID string)

Source from the content-addressed store, hash-verified

1222}
1223
1224func (h *Host) currentUsagePlugin(pluginID string) pluginapi.UsagePlugin {
1225 if h == nil || strings.TrimSpace(pluginID) == "" {
1226 return nil
1227 }
1228 for _, record := range h.activeRecords() {
1229 if record.id != pluginID {
1230 continue
1231 }
1232 if h.isPluginFused(record.id) {
1233 return nil
1234 }
1235 return record.plugin.Capabilities.UsagePlugin
1236 }
1237 return nil
1238}
1239
1240func (h *Host) fusePlugin(id, method string, recovered any) {
1241 if h == nil {

Callers 1

HandleUsageMethod · 0.80

Calls 2

activeRecordsMethod · 0.95
isPluginFusedMethod · 0.95

Tested by

no test coverage detected