Documentation ¶
Index ¶
Constants ¶
View Source
const MySQL = "icinga-mysql"
View Source
const PostgreSQL = "icinga-pgsql"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Driver ¶
Driver wraps a driver.Driver that also must implement driver.DriverContext with logging capabilities and provides our RetryConnector.
type Option ¶
type Option func(*RetryConnector)
func WithOnError ¶
func WithOnError(f retry.OnErrorFunc) Option
func WithOnSuccess ¶
func WithOnSuccess(f retry.OnSuccessFunc) Option
type PgSQLDriver ¶
PgSQLDriver extends pq.Driver with driver.DriverContext compliance.
func (PgSQLDriver) OpenConnector ¶
func (PgSQLDriver) OpenConnector(name string) (driver.Connector, error)
OpenConnector implements the driver.DriverContext interface.
type RetryConnector ¶
RetryConnector wraps driver.Connector with retry logic.
func (RetryConnector) Driver ¶
func (c RetryConnector) Driver() driver.Driver
Driver implements part of the driver.Connector interface.
Click to show internal directories.
Click to hide internal directories.