indexer

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_FAILURES = 1

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultIndexWriter

type DefaultIndexWriter struct{}

func (*DefaultIndexWriter) Write

type IndexParams

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

type Indexer

type Indexer struct {
	IndexDir           string
	ProjectID          uint32
	CorrelationID      string
	GitalyAddress      string
	GitalyToken        string
	GitalyStorageName  string
	GitalyRelativePath string

	LimitFileSize      int
	TargetSHA          string
	ForceReindex       bool
	Writer             indexWriter
	OnRetryableFailure func(*Indexer, context.Context, error) (*IndexingResult, error)
	NumFailures        int
	Initialized        bool
	// contains filtered or unexported fields
}

func (*Indexer) CurrentSHA

func (i *Indexer) CurrentSHA() (string, bool, error)

func (*Indexer) IndexRepository

func (i *Indexer) IndexRepository(ctx context.Context) (*IndexingResult, error)

type IndexingResult

type IndexingResult struct {
	ModifiedFilesCount uint
	DeletedFilesCount  uint
}

func IndexingFailureFallback

func IndexingFailureFallback(ix *Indexer, ctx context.Context, err error) (*IndexingResult, error)

Jump to

Keyboard shortcuts

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