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

Function parsePriorityValue

internal/pluginhost/auth_callbacks.go:595–612  ·  view source on GitHub ↗
(raw any)

Source from the content-addressed store, hash-verified

593}
594
595func parsePriorityValue(raw any) (int, bool) {
596 switch v := raw.(type) {
597 case int:
598 return v, true
599 case int32:
600 return int(v), true
601 case int64:
602 return int(v), true
603 case float64:
604 return int(v), true
605 case string:
606 parsed, err := strconv.Atoi(strings.TrimSpace(v))
607 if err == nil {
608 return parsed, true
609 }
610 }
611 return 0, false
612}
613
614func parseWebsocketsValue(raw any) (bool, bool) {
615 switch v := raw.(type) {

Callers 2

listAuthFilesFromDiskMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected