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

Method Int

service/service/model.go:56–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54}
55
56func (s Kind) Int() int {
57 switch s {
58 case RestService:
59 return 0
60 case AIService:
61 return 1
62 default:
63 return 0
64 }
65}
66
67func ToServiceKind(s int) Kind {
68 switch s {

Callers 5

ServiceListByKindMethod · 0.45
SearchPublicServicesMethod · 0.45
createEntityHandlerFunction · 0.45
updateHandlerFunction · 0.45
HandleMessageMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected