Documentation ¶
Overview ¶
Package files provides a set type to track local/remote files with newness checks.
Index ¶
- type Set
- func (s *Set) Availability(file string) []protocol.NodeID
- func (s *Set) Get(node protocol.NodeID, file string) protocol.FileInfo
- func (s *Set) GetGlobal(file string) protocol.FileInfo
- func (s *Set) LocalVersion(node protocol.NodeID) uint64
- func (s *Set) Replace(node protocol.NodeID, fs []protocol.FileInfo)
- func (s *Set) ReplaceWithDelete(node protocol.NodeID, fs []protocol.FileInfo)
- func (s *Set) Update(node protocol.NodeID, fs []protocol.FileInfo)
- func (s *Set) WithGlobal(fn fileIterator)
- func (s *Set) WithHave(node protocol.NodeID, fn fileIterator)
- func (s *Set) WithNeed(node protocol.NodeID, fn fileIterator)
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 (*Set) Availability ¶ added in v0.7.0
func (*Set) ReplaceWithDelete ¶ added in v0.7.0
func (*Set) WithGlobal ¶ added in v0.9.0
func (s *Set) WithGlobal(fn fileIterator)
Click to show internal directories.
Click to hide internal directories.