Documentation ¶
Index ¶
- type FileTreeIndex
- func (idx *FileTreeIndex) AddPath(pathname string) error
- func (idx *FileTreeIndex) DelPath(pathname string) error
- func (idx *FileTreeIndex) MovePath(pathname, dstParentPath string) error
- func (idx *FileTreeIndex) ReadFrom(pathname string) error
- func (idx *FileTreeIndex) RenamePath(pathname, newName string) error
- func (idx *FileTreeIndex) Reset() error
- func (idx *FileTreeIndex) Search(keyword string) ([]string, error)
- func (idx *FileTreeIndex) String() string
- func (idx *FileTreeIndex) WriteTo(pathname string) error
- type IFileIndex
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileTreeIndex ¶
type FileTreeIndex struct {
// contains filtered or unexported fields
}
func NewFileTreeIndex ¶
func NewFileTreeIndex(fs fs.ISimpleFS, pathSeparator string, maxResultSize int) *FileTreeIndex
func (*FileTreeIndex) AddPath ¶
func (idx *FileTreeIndex) AddPath(pathname string) error
func (*FileTreeIndex) DelPath ¶
func (idx *FileTreeIndex) DelPath(pathname string) error
func (*FileTreeIndex) MovePath ¶
func (idx *FileTreeIndex) MovePath(pathname, dstParentPath string) error
func (*FileTreeIndex) ReadFrom ¶
func (idx *FileTreeIndex) ReadFrom(pathname string) error
func (*FileTreeIndex) RenamePath ¶
func (idx *FileTreeIndex) RenamePath(pathname, newName string) error
func (*FileTreeIndex) Reset ¶ added in v0.9.1
func (idx *FileTreeIndex) Reset() error
func (*FileTreeIndex) String ¶ added in v0.9.1
func (idx *FileTreeIndex) String() string
func (*FileTreeIndex) WriteTo ¶
func (idx *FileTreeIndex) WriteTo(pathname string) error
type IFileIndex ¶ added in v0.9.1
type IFileIndex interface { Search(keyword string) ([]string, error) AddPath(pathname string) error DelPath(pathname string) error RenamePath(pathname, newName string) error MovePath(pathname, dstParentPath string) error WriteTo(pathname string) error ReadFrom(pathname string) error Reset() error String() string }
Click to show internal directories.
Click to hide internal directories.