sources

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2020 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Sources map[string]Source = make(map[string]Source)

Sources contains all available sources

Functions

func MakeSQLSource

func MakeSQLSource(key string, conf SourceConfig)

MakeSQLSource creates an input and returns that interface

Types

type Row

type Row map[string]interface{}

Row is one row

type Source

type Source interface {
	Execute(query string, params ...interface{}) ([]string, []Row, error)
}

Source is the generic input interface

type SourceConfig

type SourceConfig struct {
	Type     string
	Host     string
	Port     string
	Database string
	Username string
	Password string
}

SourceConfig defines a source

Jump to

Keyboard shortcuts

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