| 62 | } |
| 63 | |
| 64 | type manager struct { |
| 65 | m sync.Mutex |
| 66 | |
| 67 | reservedPorts map[int]bool |
| 68 | |
| 69 | portRangeStart int |
| 70 | portRangeEnd int |
| 71 | portMap map[int]bool |
| 72 | } |
| 73 | |
| 74 | func (m *manager) LockSpecificPort(p int) error { |
| 75 | m.m.Lock() |
nothing calls this directly
no outgoing calls
no test coverage detected