Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConnector ¶
NewConnector will create a new driver.Connector with retry enabled and the provided application_name.
Types ¶
type RetryDriver ¶
type RetryDriver struct {
// contains filtered or unexported fields
}
RetryDriver will wrap a driver.Driver so that all new connections will be retried on temporary errors.
func NewRetryDriver ¶
func NewRetryDriver(drv driver.Driver, retryLimit int) *RetryDriver
NewRetryDriver returns a new RetryDriver with the provided connection retry limit.
func (*RetryDriver) OpenConnector ¶
func (rd *RetryDriver) OpenConnector(name string) (driver.Connector, error)
Click to show internal directories.
Click to hide internal directories.