indexer

package
v0.0.0-...-19de6b0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Index

type Index struct {
	FilesByPath map[string]*fp.File
	FilesByHash map[string][]*fp.File
}

type Indexer

type Indexer struct {
	Index *Index
}

func NewIndexer

func NewIndexer() Indexer

func (*Indexer) AddFile

func (i *Indexer) AddFile(w io.Writer, path string) error

func (*Indexer) AddFileNoIndex

func (i *Indexer) AddFileNoIndex(w io.Writer, f *fp.File) error

func (*Indexer) Load

func (i *Indexer) Load(r io.Reader)

func (*Indexer) WriteAll

func (i *Indexer) WriteAll(w io.Writer)

Jump to

Keyboard shortcuts

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