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

Method Int

module/service/dto/output.go:21–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19}
20
21func (s ServiceState) Int() int {
22 switch s {
23 case ServiceStateNormal:
24 return 0
25 case ServiceStateDeploying:
26 return 1
27 case ServiceStateDeployError:
28 return 2
29 default:
30 return 0
31 }
32}
33
34func FromServiceState(s int) ServiceState {
35 switch s {

Callers 2

CreateMethod · 0.45
EditMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected