pgpool

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(
	ctx context.Context,
	cfg Config,
) (*pgxpool.Pool, error)

New creates an instrumented connection pool and verifies it can reach the database before returning.

Types

type Config

type Config struct {
	URL string

	MaxConns int32
	MinConns int32

	MaxConnIdleTime time.Duration
	MaxConnLifetime time.Duration
}

Jump to

Keyboard shortcuts

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