Documentation ¶
Index ¶
- type FileTreeCache
- func (d *FileTreeCache) AddEntry(entry protocol.FileInfo, peer protocol.DeviceID)
- func (d *FileTreeCache) GetChildren(path string) []string
- func (d *FileTreeCache) GetEntry(filepath string) (protocol.FileInfo, bool)
- func (d *FileTreeCache) GetEntryDevices(filepath string) ([]protocol.DeviceID, bool)
- func (d *FileTreeCache) GetPathsMatchingPrefix(pathPrefix string) []string
- func (d *FileTreeCache) RemoveEntry(filepath string)
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)
Click to show internal directories.
Click to hide internal directories.