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

Method ApplyConfig

sdk/pluginhost/host.go:66–72  ·  view source on GitHub ↗

ApplyConfig applies plugin runtime configuration.

(ctx context.Context, cfg RuntimeConfig)

Source from the content-addressed store, hash-verified

64
65// ApplyConfig applies plugin runtime configuration.
66func (h *Host) ApplyConfig(ctx context.Context, cfg RuntimeConfig) {
67 if h == nil || h.inner == nil {
68 return
69 }
70 internalCfg := runtimeConfigToInternalConfig(cfg)
71 h.inner.ApplyConfig(ctx, internalCfg)
72}
73
74// ShutdownAll unloads every active plugin.
75func (h *Host) ShutdownAll() {

Callers 4

mainFunction · 0.45
ShutdownMethod · 0.45
BuildMethod · 0.45

Calls 1

Tested by

no test coverage detected