Documentation ¶
Index ¶
- Variables
- func BatchIndex(ctx context.Context, objs []ObjWithParent) error
- func BuildIndex(ctx context.Context, indexPaths, ignorePaths []string, maxDepth int, ...) error
- func Clear(ctx context.Context) error
- func Config(ctx context.Context) searcher.Config
- func Del(ctx context.Context, prefix string) error
- func Index(ctx context.Context, parent string, obj model.Obj) error
- func Init(mode string) error
- func Progress() (*model.IndexProgress, error)
- func Search(ctx context.Context, req model.SearchReq) ([]model.SearchNode, int64, error)
- func Update(parent string, objs []model.Obj)
- func WriteProgress(progress *model.IndexProgress)
- type ObjWithParent
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Running = atomic.Bool{} Quit chan struct{} )
Functions ¶
func BatchIndex ¶
func BatchIndex(ctx context.Context, objs []ObjWithParent) error
func BuildIndex ¶
func Progress ¶
func Progress() (*model.IndexProgress, error)
func WriteProgress ¶
func WriteProgress(progress *model.IndexProgress)
Types ¶
type ObjWithParent ¶
Click to show internal directories.
Click to hide internal directories.