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

Function cloneInterceptorMetadata

internal/pluginhost/adapters.go:2235–2245  ·  view source on GitHub ↗
(in map[string]any)

Source from the content-addressed store, hash-verified

2233}
2234
2235func cloneInterceptorMetadata(in map[string]any) map[string]any {
2236 if len(in) == 0 {
2237 return nil
2238 }
2239 visited := make(map[metadataCloneVisit]reflect.Value)
2240 out := make(map[string]any, len(in))
2241 for key, value := range in {
2242 out[key] = cloneInterceptorMetadataAny(reflect.ValueOf(value), visited)
2243 }
2244 return out
2245}
2246
2247type metadataCloneVisit struct {
2248 typ reflect.Type

Callers 5

interceptRequestMethod · 0.85
cloneModelRouteRequestFunction · 0.85
executorPluginReadyMethod · 0.85

Calls 1

Tested by

no test coverage detected