pool is the pool for managing v2 version of the dfdaemon client.
| 54 | |
| 55 | // pool is the pool for managing v2 version of the dfdaemon client. |
| 56 | type pool struct { |
| 57 | // pool is a map of client connections for reusing. |
| 58 | *sync.Map |
| 59 | |
| 60 | // sf is the singleflight instance for concurrent requests. |
| 61 | sf *singleflight.Group |
| 62 | |
| 63 | // done is a channel to signal the manager is done. |
| 64 | done chan struct{} |
| 65 | } |
| 66 | |
| 67 | // GetV2Pool creates a new pool instance. |
| 68 | func GetV2Pool() Pool { |
nothing calls this directly
no outgoing calls
no test coverage detected