MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / ToScope

Function ToScope

module/strategy/dto/enum.go:33–44  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

31}
32
33func ToScope(s string) Scope {
34 switch s {
35 case ScopeGlobal:
36 return 0
37 case ScopeTeam:
38 return 1
39 case ScopeService:
40 return 2
41 default:
42 return 0
43 }
44}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected