fsind

package
v0.0.0-...-c0ffe4d Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Doc

type Doc struct {
	Content string
	Num     int
	Path    string
	Name    string
	Type    string
}

type FsIndexer

type FsIndexer struct {
	Source             string
	ChunkSize          int
	ElasticsearchIndex string
	Context            context.Context
	// contains filtered or unexported fields
}

func NewFsIndexer

func NewFsIndexer(source, includeFile, excludeFile, includeDir, excludeDir, includePath, excludePath,
	esURL, esUser, esPassword, esIndex string,
	chunkSize int, context context.Context) (ret *FsIndexer, err error)

func (*FsIndexer) Index

func (o *FsIndexer) Index(done func(label string), nop bool) (err error)

Jump to

Keyboard shortcuts

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