MCPcopy Create free account
hub / github.com/0x4D31/finch / SetLocalEngine

Method SetLocalEngine

internal/proxy/server.go:292–297  ·  view source on GitHub ↗

SetLocalEngine replaces the listener-specific rule engine.

(eng *rules.Engine)

Source from the content-addressed store, hash-verified

290
291// SetLocalEngine replaces the listener-specific rule engine.
292func (s *Server) SetLocalEngine(eng *rules.Engine) {
293 s.LocalEngine = eng
294 if s.ruleHandler != nil {
295 s.ruleHandler.local = eng
296 }
297}
298
299// SetGlobalEngine replaces the shared rule engine.
300func (s *Server) SetGlobalEngine(eng *rules.Engine) {

Callers 1

watchConfigFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected