files

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2014 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package files provides a set type to track local/remote files with newness checks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Set

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

func NewSet

func NewSet(repo string, db *leveldb.DB) *Set

func (*Set) Availability added in v0.7.0

func (s *Set) Availability(file string) []protocol.NodeID

func (*Set) Get added in v0.7.0

func (s *Set) Get(node protocol.NodeID, file string) protocol.FileInfo

func (*Set) GetGlobal added in v0.7.0

func (s *Set) GetGlobal(file string) protocol.FileInfo

func (*Set) LocalVersion added in v0.9.0

func (s *Set) LocalVersion(node protocol.NodeID) uint64

func (*Set) Replace added in v0.7.0

func (s *Set) Replace(node protocol.NodeID, fs []protocol.FileInfo)

func (*Set) ReplaceWithDelete added in v0.7.0

func (s *Set) ReplaceWithDelete(node protocol.NodeID, fs []protocol.FileInfo)

func (*Set) Update added in v0.7.0

func (s *Set) Update(node protocol.NodeID, fs []protocol.FileInfo)

func (*Set) WithGlobal added in v0.9.0

func (s *Set) WithGlobal(fn fileIterator)

func (*Set) WithGlobalTruncated added in v0.9.3

func (s *Set) WithGlobalTruncated(fn fileIterator)

func (*Set) WithHave added in v0.9.0

func (s *Set) WithHave(node protocol.NodeID, fn fileIterator)

func (*Set) WithHaveTruncated added in v0.9.3

func (s *Set) WithHaveTruncated(node protocol.NodeID, fn fileIterator)

func (*Set) WithNeed added in v0.9.0

func (s *Set) WithNeed(node protocol.NodeID, fn fileIterator)

func (*Set) WithNeedTruncated added in v0.9.3

func (s *Set) WithNeedTruncated(node protocol.NodeID, fn fileIterator)

Jump to

Keyboard shortcuts

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