index

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChunkMetadata added in v0.3.0

type ChunkMetadata struct {
	Type     string // chunk type (src, docs, etc)
	Path     string // hierarchical path: Class::method
	ParsedAt int64  // when chunk was parsed
}

type Index

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

func New

func New(ctx context.Context, workspaceRoot string) (*Index, error)

func (*Index) FindSimilarChunks added in v0.3.0

func (idx *Index) FindSimilarChunks(ctx context.Context, chunkID string) ([]string, error)

func (*Index) GetChunk

func (idx *Index) GetChunk(ctx context.Context, id string) (*parser.Chunk, error)

func (*Index) Index

func (idx *Index) Index(ctx context.Context, file *parser.File) error

func (*Index) IsStale added in v0.2.0

func (idx *Index) IsStale(filePath string) bool

func (*Index) Remove

func (idx *Index) Remove(ctx context.Context, filePath string) error

func (*Index) Search

func (idx *Index) Search(ctx context.Context, query string, fileTypes []string) ([]string, error)