GetAll returns all pool entries.
()
| 82 | |
| 83 | // GetAll returns all pool entries. |
| 84 | func (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. |
| 95 | func (p *Pools) RemoveAll() { |