connectors

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package connectors provides dfetch's default connector set, kept out of the engine so a program embedding the engine links only the connectors it imports. The CLI composes DefaultOptions with the user's config; a library user can do the same, pick individual factories, or skip this package entirely and register its own source.Connector implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Builtins

func Builtins() map[string]source.Factory

Builtins returns the connector types usable without configuration. Each is also auto-instantiated under its own name as a schema (so New(nil) must work).

func ConfigOnly

func ConfigOnly() map[string]source.Factory

ConfigOnly returns the connector types available via config (`type: <name>`) but not auto-instantiated, because they need params to construct (e.g. a Postgres DSN).

func DefaultOptions

func DefaultOptions() ([]engine.Option, error)

DefaultOptions returns engine options reproducing the stock dfetch setup: the default registry plus every builtin registered under its own schema name. Append further options (e.g. engine.WithConfig) to override or add.

func DefaultRegistry

func DefaultRegistry() *source.Registry

DefaultRegistry returns a registry with every default connector type (Builtins and ConfigOnly) registered.

func NewBuiltins

func NewBuiltins() (map[string]source.Connector, error)

NewBuiltins instantiates every builtin with nil params, keyed by its default schema name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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