(stats *ConnectionStats)
| 134 | } |
| 135 | |
| 136 | func (pool *Pool) GetStats(stats *ConnectionStats) { |
| 137 | pool.synchro.Lock() |
| 138 | |
| 139 | *stats = pool.synchro.stats |
| 140 | |
| 141 | stats.IdleCount = len(pool.synchro.idleConnections) |
| 142 | |
| 143 | pool.synchro.Unlock() |
| 144 | } |
| 145 | |
| 146 | // GetConn returns connection from the pool or create new |
| 147 | func (pool *Pool) GetConn(ctx context.Context) (*Conn, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected