Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Checker ¶
type Checker struct {
// contains filtered or unexported fields
}
Checker health checker for go driver for oracle.
type HealthPlugin ¶
type HealthPlugin struct {
// contains filtered or unexported fields
}
HealthPlugin implements the factory’s Plugin hooks for health checks.
func NewHealthPlugin ¶
func NewHealthPlugin() *HealthPlugin
NewHealthPlugin constructs the plugin with default Options.
func NewHealthPluginWithConfigPath ¶
func NewHealthPluginWithConfigPath(path string) (*HealthPlugin, error)
NewHealthPluginWithConfigPath loads Options from a config file.
func NewHealthPluginWithOptions ¶
func NewHealthPluginWithOptions(opts *Options) *HealthPlugin
NewHealthPluginWithOptions constructs the plugin from explicit Options.
func (*HealthPlugin) InitDB ¶
InitDB is called immediately after sql.OpenDB: it registers the health check.
func (*HealthPlugin) WrapConnector ¶
func (h *HealthPlugin) WrapConnector(ctx context.Context, connector driver.Connector) (driver.Connector, error)
WrapConnector is a no-op: health checks don’t need to wrap the driver.
type Options ¶
Options represents a health checker for go driver for oracle options.
func NewOptions ¶
NewOptions returns options from config file or environment vars.
func NewOptionsWithPath ¶
NewOptionsWithPath unmarshals a given key path into options and returns it.