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

Interface Pausable

server/etcdserver/api/rafthttp/transport.go:420–423  ·  view source on GitHub ↗

Pausable is a testing interface for pausing transport traffic.

Source from the content-addressed store, hash-verified

418
419// Pausable is a testing interface for pausing transport traffic.
420type Pausable interface {
421 Pause()
422 Resume()
423}
424
425func (t *Transport) Pause() {
426 t.mu.RLock()

Callers 8

pauseSendingMethod · 0.65
runMethod · 0.65
CutPeerMethod · 0.65
PauseMethod · 0.65
resumeSendingMethod · 0.65
runMethod · 0.65
MendPeerMethod · 0.65
ResumeMethod · 0.65

Implementers 11

PauseableHandlerclient/pkg/testutil/pauseable_handler.
Membertests/framework/integration/cluster.go
EtcdServerProcesstests/framework/e2e/etcd_process.go
nopTransporterserver/etcdserver/server_test.go
nopTransporterWithActiveTimeserver/etcdserver/util_test.go
Transportserver/etcdserver/api/rafthttp/transpo
peerserver/etcdserver/api/rafthttp/peer.go
remoteserver/etcdserver/api/rafthttp/remote.
fakePeerserver/etcdserver/api/rafthttp/http_te
Revisionserver/etcdserver/api/v3compactor/revi
Periodicserver/etcdserver/api/v3compactor/peri

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…