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

Method load

internal/pluginhost/host.go:324–336  ·  view source on GitHub ↗
(file pluginFile)

Source from the content-addressed store, hash-verified

322}
323
324func (h *Host) load(file pluginFile) (*loadedPlugin, error) {
325 client, errOpen := h.loader.Open(file, h)
326 if errOpen != nil {
327 return nil, errOpen
328 }
329
330 return &loadedPlugin{
331 id: file.ID,
332 path: file.Path,
333 version: file.Version,
334 client: newGuardedPluginClient(client),
335 }, nil
336}
337
338func (h *Host) withLoadedPluginFallbacks(files []pluginFile, items map[string]runtimeItemConfig, desired map[string]string) []pluginFile {
339 if h == nil || len(desired) == 0 {

Callers 1

ApplyConfigMethod · 0.95

Calls 2

newGuardedPluginClientFunction · 0.85
OpenMethod · 0.65

Tested by

no test coverage detected