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

Function StartServiceBackground

internal/cmd/run.go:88–90  ·  view source on GitHub ↗

StartServiceBackground starts the proxy service in a background goroutine and returns a cancel function for shutdown and a done channel.

(cfg *config.Config, configPath string, localPassword string)

Source from the content-addressed store, hash-verified

86// StartServiceBackground starts the proxy service in a background goroutine
87// and returns a cancel function for shutdown and a done channel.
88func StartServiceBackground(cfg *config.Config, configPath string, localPassword string) (cancel func(), done <-chan struct{}) {
89 return StartServiceBackgroundWithPluginHost(cfg, configPath, localPassword, nil)
90}
91
92// StartServiceBackgroundWithPluginHost starts the proxy service with a shared plugin host.
93func StartServiceBackgroundWithPluginHost(cfg *config.Config, configPath string, localPassword string, host *pluginhost.Host) (cancel func(), done <-chan struct{}) {

Callers

nothing calls this directly

Tested by

no test coverage detected