importer

package
v0.0.0-...-05b7d1b Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Importer

type Importer interface {
	Run(string, chan Result) error
	ResolveRefs(storage.Result) (*Result, error)
}

Importer represents an importer for a given data source

func ImporterOfType

func ImporterOfType(imType string, config map[string]string) Importer

ImporterOfType provides an importer for the given type

type Result

type Result struct {
	Ref       string   `json:"ref"`
	Chunks    []string `json:"chunks"`
	Documents []string `json:"documents"`
	Batch     string   `json:"batch"`
}

Result is the result of an importer

Jump to

Keyboard shortcuts

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