search

package
v0.0.0-...-422c157 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

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

func NewEngine

func NewEngine(opts ...Option) (se *Engine)

func (*Engine) InitialScanFinished

func (se *Engine) InitialScanFinished() bool

InitialScanFinished returns true if all directories have been scanned at least once.

func (*Engine) Query

func (se *Engine) Query(query string) ([]*internal.QueryResult, error)

func (*Engine) Serve

func (se *Engine) Serve(ctx context.Context)

func (*Engine) WaitForInitialScanFinished

func (se *Engine) WaitForInitialScanFinished(ctx context.Context)

WaitForInitialScanFinished blocks until all directories have been scanned at least once.

type Option

type Option func(*Engine)

func ShouldMigratesDB

func ShouldMigratesDB(f bool) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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