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

Function WithPluginHost

internal/api/server.go:164–168  ·  view source on GitHub ↗

WithPluginHost registers dynamic plugin HTTP adapters with the server.

(host *pluginhost.Host)

Source from the content-addressed store, hash-verified

162
163// WithPluginHost registers dynamic plugin HTTP adapters with the server.
164func WithPluginHost(host *pluginhost.Host) ServerOption {
165 return func(cfg *serverOptionConfig) {
166 cfg.pluginHost = host
167 }
168}
169
170// WithConfigReloadHook registers a callback used after management saves config changes.
171func WithConfigReloadHook(hook func(context.Context, *config.Config)) ServerOption {

Callers 2

BuildMethod · 0.92

Calls

no outgoing calls