Documentation
¶
Overview ¶
Package database provides a database-backed implementation of the RegistryService interface
Index ¶
Constants ¶
View Source
const ( // DefaultPageSize is the default number of items per page DefaultPageSize = 50 // MaxPageSize is the maximum allowed items per page MaxPageSize = 1000 )
Variables ¶
View Source
var ( // ErrBug is returned when a server is not found ErrBug = errors.New("bug") )
Functions ¶
Types ¶
type Option ¶
type Option func(*options) error
Option is a functional option for configuring the database service
func WithConnectionPool ¶
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.
Click to show internal directories.
Click to hide internal directories.