importer

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildEntriesFromContent added in v1.3.8

func BuildEntriesFromContent(origin, content string, mode Mode, extract string, depth int, provider *vector.Provider) []store.AddEntry

Types

type Mode

type Mode string
const (
	ModeFiles         Mode = "files"
	ModeConversations Mode = "conversations"
)

type Options

type Options struct {
	SourceDir        string
	Mode             Mode
	Extract          string
	Depth            int
	Limit            int
	DryRun           bool
	SkipExisting     bool
	RespectGitignore bool
	IncludeIgnored   []string
	Provider         *vector.Provider
}

type Result

type Result struct {
	FilesProcessed int            `json:"files_processed"`
	FilesSkipped   int            `json:"files_skipped"`
	EntriesAdded   int            `json:"entries_added"`
	Tags           map[string]int `json:"tags"`
}

func Run

func Run(repo *store.Repository, options Options) (Result, error)

Jump to

Keyboard shortcuts

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