Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientFactory ¶
type ClientPool ¶
type ClientPool struct {
// contains filtered or unexported fields
}
func NewClientPool ¶
func NewClientPool(clientFactory ClientFactory, idleCapacity int, maxResources int) *ClientPool
func (*ClientPool) Close ¶
func (p *ClientPool) Close()
func (*ClientPool) GetPool ¶
func (p *ClientPool) GetPool() *resourcepool.ResourcePool
func (*ClientPool) SetRetries ¶
func (p *ClientPool) SetRetries(retries int)
type ErrCreateResource ¶
type ErrCreateResource struct {
Err error
}
func NewErrCreateResource ¶
func NewErrCreateResource(err error) *ErrCreateResource
func (*ErrCreateResource) Error ¶
func (e *ErrCreateResource) Error() string
func (*ErrCreateResource) Unwrap ¶
func (e *ErrCreateResource) Unwrap() error
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
func New ¶
func New(clientFactory ClientFactory) *Proxy
func (*Proxy) GetResponse ¶
Click to show internal directories.
Click to hide internal directories.