postgres

package
v1.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package postgres is the native client probe for PostgreSQL

Index

Constants

View Source
const Kind string = "PostgreSQL"

Kind is the type of driver

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgreSQL

type PostgreSQL struct {
	conf.Options  `yaml:",inline"`
	ClientOptions []pgdriver.Option `yaml:"-" json:"-"`
}

revive:disable PostgreSQL is the PostgreSQL client

func New

func New(opt conf.Options) (*PostgreSQL, error)

New create a PostgreSQL client

func (*PostgreSQL) Kind

func (r *PostgreSQL) Kind() string

Kind return the name of client

func (*PostgreSQL) Probe

func (r *PostgreSQL) Probe() (bool, string)

Probe do the health check

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL