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

Function defaultRuntimeItemConfig

internal/pluginhost/config.go:68–75  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

66}
67
68func defaultRuntimeItemConfig(id string) runtimeItemConfig {
69 return runtimeItemConfig{
70 ID: id,
71 Enabled: false,
72 Priority: 0,
73 ConfigYAML: append([]byte(nil), defaultRuntimeConfigYAML...),
74 }
75}
76
77func runtimeConfigYAML(item config.PluginInstanceConfig, enabled bool) []byte {
78 rawNode := normalizedConfigNode(item, enabled)

Callers 1

ApplyConfigMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected