MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / ParseStatus

Function ParseStatus

model/plugin_model/type.go:164–175  ·  view source on GitHub ↗
(string2 string)

Source from the content-addressed store, hash-verified

162}
163
164func ParseStatus(string2 string) Status {
165 switch string2 {
166 case "enable", "0":
167 return Enable
168 case "disable", "2":
169 return Disable
170 case "global", "1":
171 return Global
172 default:
173 return unKnownStatus
174 }
175}

Callers 3

pluginItemUnmarshalYAMLFunction · 0.92
UnmarshalJSONMethod · 0.85
ScanMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected