Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientPool ¶
type ClientPool struct {
// contains filtered or unexported fields
}
ClientPool a pool of client.
func (*ClientPool) GetClient ¶
func (pool *ClientPool) GetClient(t config.RequestType) (client.Client, error)
GetClient a factory method to get a client according to apiType .
func (*ClientPool) Put ¶
func (pool *ClientPool) Put(t config.RequestType, c client.Client) error
Put put client to pool.
Click to show internal directories.
Click to hide internal directories.