ApplyConfig applies plugin runtime configuration.
(ctx context.Context, cfg RuntimeConfig)
| 64 | |
| 65 | // ApplyConfig applies plugin runtime configuration. |
| 66 | func (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. |
| 75 | func (h *Host) ShutdownAll() { |
no test coverage detected