importer

package
v1.1.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: ISC Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewImporter

func NewImporter(appCtx context.Context, opts *connectors.Options, name string, config map[string]string) (importer.Importer, error)

Types

type Importer

type Importer struct {
	// contains filtered or unexported fields
}

func (*Importer) Close

func (p *Importer) Close(ctx context.Context) error

func (*Importer) Flags

func (p *Importer) Flags() location.Flags

Flags returns FLAG_STREAM to signal that Import produces a single streaming pass. Without it, the framework calls Import twice — once to enumerate records and once to read their contents — which would cause the manifest and the dump to be emitted twice.

func (*Importer) Import

func (p *Importer) Import(ctx context.Context, records chan<- *connectors.Record, results <-chan *connectors.Result) error

func (*Importer) Origin

func (p *Importer) Origin() string

func (*Importer) Ping

func (p *Importer) Ping(ctx context.Context) error

func (*Importer) Root

func (p *Importer) Root() string

func (*Importer) Type

func (p *Importer) Type() string

Jump to

Keyboard shortcuts

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