indexer

package
v0.9.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileFS

type FileFS struct {
	FileSystem *fs.FS
	Path       string
	Name       string
	Location   string
	FullName   string
}

type IndexerConfig

type IndexerConfig struct {
	ExcludeDirFilter  []string
	ExcludeFileFilter []string

	IgnoreHiddenItems bool
	IgnoreSystemItems bool
	// contains filtered or unexported fields
}

func New

func New() *IndexerConfig

func NewConfigured

func NewConfigured(excludeDirFilter []string, excludeFileFilter []string, ignoreHiddenItems bool, ignoreSystemItems bool) *IndexerConfig

func (*IndexerConfig) WalkDirectory

func (config *IndexerConfig) WalkDirectory(f fs.FS, root string, options WalkConfig, files chan *FileFS) error

type Kind added in v0.9.2

type Kind int
const (
	Local Kind = iota
)

type LocationFS added in v0.9.2

type LocationFS struct {
	fs.FS        // embed the original fs.FS type
	Name  string // add a new field
	Kind  Kind
}

func NewLocationFS added in v0.9.2

func NewLocationFS(kind Kind, name string, fsys fs.FS) *LocationFS

type WalkConfig added in v0.9.0

type WalkConfig struct {
	Recurse bool
}

Jump to

Keyboard shortcuts

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