filetreecache

package
v0.2.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2016 License: MPL-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 FileTreeCache

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

func NewFileTreeCache

func NewFileTreeCache(fldrCfg config.FolderConfiguration, db *bolt.DB, folder string) *FileTreeCache

func (*FileTreeCache) AddEntry

func (d *FileTreeCache) AddEntry(entry protocol.FileInfo, peer protocol.DeviceID)

func (*FileTreeCache) GetChildren

func (d *FileTreeCache) GetChildren(path string) []string

func (*FileTreeCache) GetEntry

func (d *FileTreeCache) GetEntry(filepath string) (protocol.FileInfo, bool)

func (*FileTreeCache) GetEntryDevices

func (d *FileTreeCache) GetEntryDevices(filepath string) ([]protocol.DeviceID, bool)

func (*FileTreeCache) GetPathsMatchingPrefix

func (d *FileTreeCache) GetPathsMatchingPrefix(pathPrefix string) []string

func (*FileTreeCache) RemoveEntry

func (d *FileTreeCache) RemoveEntry(filepath string)

Jump to

Keyboard shortcuts

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