fileset

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2014 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package fileset 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 File

type File struct {
	Key      Key
	Modified int64
	Flags    uint32
	Data     interface{}
}

type Key

type Key struct {
	Name    string
	Version uint32
}

type Set

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

func NewSet

func NewSet() *Set

func (*Set) AddLocal

func (m *Set) AddLocal(fs []File)

func (*Set) AddRemote

func (m *Set) AddRemote(cid uint, fs []File)

func (*Set) Need

func (m *Set) Need(cid uint) []File

func (*Set) SetLocal

func (m *Set) SetLocal(fs []File)

func (*Set) SetRemote

func (m *Set) SetRemote(cid uint, fs []File)

Jump to

Keyboard shortcuts

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