data

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EachFile

func EachFile(libdirs []string, cb func(name string, path string) (br bool))

EachFile calls cb with a path to every found data DDL, stops looking when br is true

Types

type DDL

type DDL struct {
	Schema   string                        `json:"$schema"`
	Metadata *agents.Metadata              `json:"metadata"`
	Query    *common.InputItem             `json:"query"`
	Output   map[string]*common.OutputItem `json:"output"`

	SourceLocation string `json:"-"`

	sync.Mutex
}

func Find

func Find(plugin string, libdirs []string) (ddl *DDL, err error)

func New

func New(file string) (*DDL, error)

New creates a new DDL from a JSON file

func (*DDL) Timeout

func (d *DDL) Timeout() time.Duration

Timeout is the timeout for this data plugin

Jump to

Keyboard shortcuts

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