database

package
v0.0.0-...-a421ca8 Latest Latest
Warning

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

Go to latest
Published: May 15, 2026 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	Pool *pgxpool.Pool
}

func New

func New(cfg *config.Config) (*Service, error)

Produce new database pool

func (*Service) Health

func (s *Service) Health(ctx context.Context) map[string]any

Health checks the health of the database connection. It returns a map with keys indicating various health statistics.

Jump to

Keyboard shortcuts

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