Documentation ¶
Index ¶
Constants ¶
View Source
const ( DEFAULT_MAX_POOL_SIZE = 1 DEFAULT_POOL_CREATION_ATTEMPTS = 10 DEFAULT_POOL_CREATION_TIMEOUT = time.Millisecond * 200 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func New ¶
func New(opts ...ClientOption) (*Client, error)
func (*Client) GetInstancePool ¶
type ClientOption ¶
type ClientOption func(*Client)
func WithConnAttempts ¶
func WithConnAttempts(att int) ClientOption
func WithConnTimeout ¶
func WithConnTimeout(t time.Duration) ClientOption
func WithMaxPoolSize ¶
func WithMaxPoolSize(pz int) ClientOption
Click to show internal directories.
Click to hide internal directories.