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

Function accessMetadataSource

sdk/cliproxy/auth/conductor.go:4761–4770  ·  view source on GitHub ↗
(raw any)

Source from the content-addressed store, hash-verified

4759}
4760
4761func accessMetadataSource(raw any) string {
4762 switch v := raw.(type) {
4763 case map[string]string:
4764 return strings.TrimSpace(v["source"])
4765 case map[string]any:
4766 return contextStringValue(v["source"])
4767 default:
4768 return ""
4769 }
4770}
4771
4772func contextStringValue(raw any) string {
4773 switch v := raw.(type) {

Callers 1

Calls 1

contextStringValueFunction · 0.85

Tested by

no test coverage detected