Help us shape the future of Go! Take the 2026 Go Developer Survey

database

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package database provides a database-backed implementation of the RegistryService interface

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrBug is returned when a server is not found
	ErrBug = errors.New("bug")
)

Functions

func New

func New(opts ...Option) (service.RegistryService, error)

New creates a new database-backed registry service with the given options

Types

type Option

type Option func(*options) error

Option is a functional option for configuring the database service

func WithConnectionPool

func WithConnectionPool(pool *pgxpool.Pool) Option

WithConnectionPool creates a new database-backed registry service with the given pgx pool. The caller is responsible for closing the pool when it is done.

Jump to

Keyboard shortcuts

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