search

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiffTrees added in v0.8.0

func DiffTrees(
	_ context.Context,
	fromTree, toTree domain.Tree,
) ([]*domain.Source, int, error)
func Search(
	ctx context.Context,
	algorithmName string,
	queries []*domain.Source,
	searchTree domain.Tree,
	c *Config,
) ([]*domain.CloneSet, error)

Types

type AlgorithmFunc added in v0.7.1

type AlgorithmFunc = func(
	ctx context.Context,
	sourceTree domain.Searcher,
	sources []*domain.Source,
	searchTree domain.Searcher,
	c *Config,
) ([]*domain.Clone, error)

type Config added in v0.8.1

type Config struct {
	Matcher     *domain.MatcherRules
	DetectMicro bool
	AlgoParams  map[string]string
}

Jump to

Keyboard shortcuts

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