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

Method Int

service/service/model.go:22–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20}
21
22func (s ServiceType) Int() int {
23 switch s {
24 case InnerService:
25 return 1
26 case PublicService:
27 return 2
28 default:
29 return 2
30 }
31}
32
33func ToServiceType(s int) ServiceType {
34

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected