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 ¶
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.