| 20 | ) |
| 21 | |
| 22 | type PauseableHandler struct { |
| 23 | Next http.Handler |
| 24 | mu sync.Mutex |
| 25 | paused bool |
| 26 | } |
| 27 | |
| 28 | func (ph *PauseableHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { |
| 29 | ph.mu.Lock() |
nothing calls this directly
no outgoing calls
no test coverage detected