cmdinstance

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadProject

func LoadProject(baseDir string, lib string) (project.Project, error)

func NewEmbeddingsCache

func NewEmbeddingsCache(projectDir project.ProjectDir) (types.DBCollectionInterface[string], error)

func NewEmbeddingsCollection

func NewEmbeddingsCollection(projectDir project.ProjectDir) (types.DBCollectionInterface[types.Vector], error)

func NewFilestampCache

func NewFilestampCache(projectDir project.ProjectDir) (types.DBCollectionInterface[int64], error)

func NewLocalLibProject

func NewLocalLibProject(baseDir string, name project.ProjectName) (project.Project, error)

func NewLocalProject

func NewLocalProject(baseDir string) (project.Project, error)

func NewLocalZipProject

func NewLocalZipProject(name, relativeDirInZip, url string) (project.Project, error)

Types

type LibProject

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

func (*LibProject) CanIndex

func (l *LibProject) CanIndex() bool

func (*LibProject) GetEmbeddingCollection

func (l *LibProject) GetEmbeddingCollection() types.DBCollectionInterface[types.Vector]

func (*LibProject) GetEmbeddingsCache

func (*LibProject) GetEmbeddingsCache() types.DBCollectionInterface[string]

GetEmbeddingsCache implements project.Project

func (*LibProject) GetFiles

func (*LibProject) GetFiles() ([]types.FileReader, error)

GetFiles implements project.Project

func (*LibProject) GetProjectName

func (l *LibProject) GetProjectName() project.ProjectName

GetProjectName implements project.Project

func (*LibProject) GetTimestampCache

func (*LibProject) GetTimestampCache() types.DBCollectionInterface[int64]

GetTimestampCache implements project.Project

type LocalProject

type LocalProject struct {
	*localwalker.LocalWalker //GetFiles() @TODO: Refactor to FS interface?
	// contains filtered or unexported fields
}

func (*LocalProject) CanIndex

func (l *LocalProject) CanIndex() bool

func (*LocalProject) GetEmbeddingCollection

func (l *LocalProject) GetEmbeddingCollection() types.DBCollectionInterface[types.Vector]

GetEmbedding implements project.Project

func (*LocalProject) GetEmbeddingsCache

func (l *LocalProject) GetEmbeddingsCache() types.DBCollectionInterface[string]

func (*LocalProject) GetProjectName

func (l *LocalProject) GetProjectName() project.ProjectName

GetProjectName implements project.Project

func (*LocalProject) GetTimestampCache

func (l *LocalProject) GetTimestampCache() types.DBCollectionInterface[int64]

type ZipProject

type ZipProject struct {
	*zipwalker.ZipWalker //GetFiles() @TODO: Refactor to FS interface?
	// contains filtered or unexported fields
}

func (*ZipProject) CanIndex

func (l *ZipProject) CanIndex() bool

func (*ZipProject) GetEmbeddingCollection

func (l *ZipProject) GetEmbeddingCollection() types.DBCollectionInterface[types.Vector]

GetEmbedding implements project.Project

func (*ZipProject) GetEmbeddingsCache

func (l *ZipProject) GetEmbeddingsCache() types.DBCollectionInterface[string]

GetEmbeddingsCache implements project.Project

func (*ZipProject) GetProjectName

func (l *ZipProject) GetProjectName() project.ProjectName

GetProjectName implements project.Project

func (*ZipProject) GetTimestampCache

func (l *ZipProject) GetTimestampCache() types.DBCollectionInterface[int64]

GetTimestampCache implements project.Project

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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