MCPcopy
hub / github.com/dgraph-io/dgraph / GetAll

Method GetAll

conn/pool.go:84–92  ·  view source on GitHub ↗

GetAll returns all pool entries.

()

Source from the content-addressed store, hash-verified

82
83// GetAll returns all pool entries.
84func (p *Pools) GetAll() []*Pool {
85 p.RLock()
86 defer p.RUnlock()
87 var pool []*Pool
88 for _, v := range p.all {
89 pool = append(pool, v)
90 }
91 return pool
92}
93
94// RemoveAll removes all pool entries.
95func (p *Pools) RemoveAll() {

Callers 1

HealthMethod · 0.80

Calls 2

RLockMethod · 0.80
RUnlockMethod · 0.80

Tested by

no test coverage detected