api

package
v0.0.0-...-9cca4bc Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigDefinitions

type ConfigDefinitions struct {
	Globs map[string][]string `yaml:"Globs"`
}

type Definition

type Definition struct {
	Name                string      `yaml:"Name"`
	Author              string      `yaml:"Author"`
	Description         string      `yaml:"Description"`
	Email               string      `yaml:"Email"`
	Reference           string      `yaml:"Reference"`
	Categories          []string    `yaml:"Categories"`
	SQLiteIdentifyQuery string      `yaml:"SQLiteIdentifyQuery"`
	SQLiteIdentifyValue interface{} `yaml:"SQLiteIdentifyValue"`
	Globs               []string    `yaml:"Globs"`
	FilenameRegex       string      `yaml:"FilenameRegex"`
	Sources             []Source    `yaml:"Sources"`
}

type GlobSpec

type GlobSpec struct {
	Glob     string   `json:"glob"`
	Tags     []string `json:"tags"`
	Filename string   `json:"name"`
}

type Source

type Source struct {
	Name string `yaml:"name"`
	// Specialized VQL to post process the rows. Default is a
	// passthrough `SELECT * FROM Rows`
	VQL                 string      `yaml:"VQL"`
	SQL                 string      `yaml:"SQL"`
	SQLiteIdentifyQuery string      `json:"id_query"`
	SQLiteIdentifyValue interface{} `json:"id_value"`
	Filename            string      `json:"filename"`
}

type Spec

type Spec struct {
	Globs []GlobSpec `json:"globs"`

	// map[string]Source
	Sources *ordereddict.Dict `json:"sources"`
}

This is the main data structure that will be used by the application.

Jump to

Keyboard shortcuts

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