shards

package
v0.0.0-...-b199f39 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDirectorySearcher

func NewDirectorySearcher(dir string) (zoekt.Streamer, error)

NewDirectorySearcher returns a searcher instance that loads all shards corresponding to a glob into memory.

func NewDirectorySearcherFast

func NewDirectorySearcherFast(dir string) (zoekt.Streamer, error)

NewDirectorySearcherFast is like NewDirectorySearcher, but does not block on the initial loading of shards.

This exists since in the case of zoekt-webserver we are happy with having partial availability since that is better than no availability on large instances.

Types

type DirectoryWatcher

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

func (*DirectoryWatcher) Stop

func (sw *DirectoryWatcher) Stop()

func (*DirectoryWatcher) String

func (s *DirectoryWatcher) String() string

func (*DirectoryWatcher) WaitUntilReady

func (s *DirectoryWatcher) WaitUntilReady() error

Jump to

Keyboard shortcuts

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