connectors

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConnectors

func LoadConnectors(cfg *types.Config, connectorConfig string) (map[string]Connector, error)

Types

type Config

type Config struct {
	Connectors []ConnectorConfig `json:"connectors"`
}

type Connector

type Connector interface {
	GetData(args map[string]interface{}) (interface{}, error)
}

func NewConnector

func NewConnector(cfg *types.Config, config ConnectorConfig) (Connector, error)

type ConnectorConfig

type ConnectorConfig struct {
	Field         string                 `json:"field"`
	Adapter       string                 `json:"adapter"`
	AdapterConfig map[string]interface{} `json:"adapterConfig"`
	KeyPattern    string                 `json:"keyPattern"`
}

Jump to

Keyboard shortcuts

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