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

Method WithConfig

sdk/cliproxy/builder.go:92–95  ·  view source on GitHub ↗

WithConfig sets the configuration instance used by the service. Parameters: - cfg: The application configuration Returns: - *Builder: The builder instance for method chaining

(cfg *config.Config)

Source from the content-addressed store, hash-verified

90// Returns:
91// - *Builder: The builder instance for method chaining
92func (b *Builder) WithConfig(cfg *config.Config) *Builder {
93 b.cfg = cfg
94 return b
95}
96
97// WithConfigPath sets the absolute configuration file path used for reload watching.
98//

Callers 4

mainFunction · 0.80

Calls

no outgoing calls