find

package
v0.0.0-...-80327fb Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Start  []*core.NodeTriple
	Target []byte

	Workers int

	MaxBacklogSize   int
	MaxReturn        int
	MaxUniqueHistory int

	Query func(x *core.NodeTriple) []*core.NodeTriple
}

Config is used to confgure how elements are located.

type Finder

type Finder struct {
	// Done is used to send the finder results, or nil if nothing was found.
	Done <-chan []*core.NodeTriple
	// contains filtered or unexported fields
}

Finder finds values.

func Find

func Find(cfg *Config) (*Finder, error)

Find values.

func (*Finder) Close

func (f *Finder) Close() error

Close does not block: receive from Finder.Done to block until the finder finishes.

Jump to

Keyboard shortcuts

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