()
| 20 | } |
| 21 | |
| 22 | func (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 | |
| 33 | func ToServiceType(s int) ServiceType { |
| 34 |
nothing calls this directly
no outgoing calls
no test coverage detected