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

Method Int

module/ai-local/dto/output.go:27–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25}
26
27func (l LocalModelState) Int() int {
28 switch l {
29 case LocalModelStateDisable:
30 return 0
31 case LocalModelStateNormal:
32 return 1
33 case LocalModelStateError:
34 return 2
35 case LocalModelStateDeploying:
36 return 3
37 case LocalModelStateDeployingError:
38 return 4
39 default:
40 return 0
41 }
42}
43
44func FromLocalModelState(state int) LocalModelState {
45 switch state {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected