init

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2026 License: MIT Imports: 21 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package init creates the retrievers from their configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Built

type Built struct {
	retriever.Retriever
}

Built is the retriever that Retriever built: the implementation of the kind of the configuration.

func Retriever

func Retriever(
	conf *retrieverconf.RetrieverConf, opts ...Option,
) (Built, error)

Retriever initialize the retriever based on the configuration.

type Option

type Option func(*options)

Option customizes InitRetriever.

func WithPostgresPools

func WithPostgresPools(pools *postgresqlretriever.PoolRegistry) Option

WithPostgresPools makes the PostgreSQL retrievers that InitRetriever creates share the connection pools of pools (a registry owned by the caller, e.g. the relay proxy, which shares them between its flag sets). Without it each PostgreSQL retriever owns its pool.

Jump to

Keyboard shortcuts

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