Documentation ¶
Index ¶
- Constants
- Variables
- type Document
- type HeapDoc
- type SearchHint
- func (this SearchHint) Cat(ctx *App, path string) error
- func (this SearchHint) Ls(ctx *App, path string) error
- func (this SearchHint) Mkdir(ctx *App, path string) error
- func (this SearchHint) Mv(ctx *App, from string, to string) error
- func (this SearchHint) Rm(ctx *App, path string) error
- func (this SearchHint) Save(ctx *App, path string) error
- func (this SearchHint) Touch(ctx *App, path string) error
- type SearchIndexer
- type SearchProcess
- type SqliteSearch
Constants ¶
View Source
const ( PHASE_EXPLORE = "PHASE_EXPLORE" PHASE_INDEXING = "PHASE_INDEXING" PHASE_MAINTAIN = "PHASE_MAINTAIN" PHASE_PAUSE = "PHASE_PAUSE" )
View Source
const MAX_HEAP_SIZE = 100000
Variables ¶
View Source
var ( SEARCH_ENABLE func() bool SEARCH_PROCESS_MAX func() int SEARCH_PROCESS_PAR func() int SEARCH_REINDEX func() int CYCLE_TIME func() int INDEXING_EXT func() string MAX_INDEXING_FSIZE func() int INDEXING_EXCLUSION = []string{ "/node_modules/", "/bower_components/", "/.cache/", "/.npm/", "/.git/", } )
Functions ¶
This section is empty.
Types ¶
type SearchHint ¶
type SearchHint struct{}
func (SearchHint) Cat ¶
func (this SearchHint) Cat(ctx *App, path string) error
func (SearchHint) Ls ¶
func (this SearchHint) Ls(ctx *App, path string) error
func (SearchHint) Mkdir ¶
func (this SearchHint) Mkdir(ctx *App, path string) error
func (SearchHint) Rm ¶
func (this SearchHint) Rm(ctx *App, path string) error
func (SearchHint) Save ¶
func (this SearchHint) Save(ctx *App, path string) error
func (SearchHint) Touch ¶
func (this SearchHint) Touch(ctx *App, path string) error
type SearchIndexer ¶
type SearchIndexer struct { Id string FoldersUnknown HeapDoc CurrentPhase string Backend IBackend DBPath string DB *sql.DB // contains filtered or unexported fields }
func NewSearchIndexer ¶
func NewSearchIndexer(id string, b IBackend) SearchIndexer
func (*SearchIndexer) Consolidate ¶
func (this *SearchIndexer) Consolidate(tx *sql.Tx) bool
func (*SearchIndexer) Execute ¶
func (this *SearchIndexer) Execute()
type SearchProcess ¶
type SearchProcess struct {
// contains filtered or unexported fields
}
var SProc SearchProcess = SearchProcess{ // contains filtered or unexported fields }
func (*SearchProcess) HintFile ¶
func (this *SearchProcess) HintFile(app *App, path string)
func (*SearchProcess) HintLs ¶
func (this *SearchProcess) HintLs(app *App, path string) *SearchIndexer
func (*SearchProcess) HintRm ¶
func (this *SearchProcess) HintRm(app *App, path string)
func (*SearchProcess) Peek ¶
func (this *SearchProcess) Peek() *SearchIndexer
func (*SearchProcess) Reset ¶
func (this *SearchProcess) Reset()
type SqliteSearch ¶
type SqliteSearch struct {
Hint *SearchHint
}
Click to show internal directories.
Click to hide internal directories.