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

Struct Host

internal/pluginhost/host.go:43–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43type Host struct {
44 applyMu sync.Mutex
45 mu sync.Mutex
46 loader pluginLoader
47 loaded map[string]*loadedPlugin
48 retired map[string][]*loadedPlugin
49 loading map[string]struct{}
50 fused map[string]string
51 pluginFileVersions map[string]string
52 activePluginVersions map[string]string
53 activePluginPaths map[string]string
54 cleanupFilesPending bool
55 runtimeConfig *config.Config
56 authManager *coreauth.Manager
57 modelExecutor modelExecutor
58 modelClientIDs map[string]struct{}
59 executorModelClientIDs map[string]struct{}
60 modelProviders map[string]string
61 modelRegistrations map[string]pluginModelRegistration
62 providerModels map[string][]*registryModelInfo
63 executorProviders map[string]struct{}
64 accessProviderKeys map[string]struct{}
65 commandLineFlags map[string]commandLineFlagRecord
66 commandLineHits map[string]struct{}
67 managementRoutes map[string]managementRouteRecord
68 resourceRoutes map[string]resourceRouteRecord
69 streams *streamBridge
70 httpStreams *hostHTTPStreamBridge
71 modelStreams *modelStreamBridge
72 callbackContexts *callbackContextRegistry
73 snapshot atomic.Value
74}
75
76func New() *Host {
77 h := &Host{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected