indexer

package
v0.0.0-...-5379d26 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: MIT Imports: 2 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 {
	DbName         string
	IndexDirectory string
}

Config ...

type Handler

type Handler interface {
	Record(string) Record
	Search(string, int, int) []Record
	Index(Record)
}

Handler ...

type Record

type Record interface {
	io.Writer
	Path() string
	FullPath() string
	SetFullPath(string)
	Title() string
	SetTitle(string)
	Body() []byte
	SetBody([]byte)
	SetModified(time.Time)
	Modified() time.Time
	Load() bool
	Ignore()
	Ignored() bool
	Indexed() time.Time
	MimeType() string
	SetMimeType(string)
}

Record ...

Directories

Path Synopsis
sego
Go中文分词
Go中文分词

Jump to

Keyboard shortcuts

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