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

Function FromServiceState

module/service/dto/output.go:34–45  ·  view source on GitHub ↗
(s int)

Source from the content-addressed store, hash-verified

32}
33
34func FromServiceState(s int) ServiceState {
35 switch s {
36 case 0:
37 return ServiceStateNormal
38 case 1:
39 return ServiceStateDeploying
40 case 2:
41 return ServiceStateDeployError
42 default:
43 return ""
44 }
45}
46
47type ServiceItem struct {
48 Id string `json:"id"`

Callers 1

ToServiceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected