MCPcopy
hub / github.com/etcd-io/etcd / PauseableHandler

Struct PauseableHandler

client/pkg/testutil/pauseable_handler.go:22–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20)
21
22type PauseableHandler struct {
23 Next http.Handler
24 mu sync.Mutex
25 paused bool
26}
27
28func (ph *PauseableHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
29 ph.mu.Lock()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected