cache

package
v0.0.0-...-2a546f5 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2015 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoCache = errors.New("directory cache not found")

Functions

This section is empty.

Types

type Cache

type Cache struct {
	Items []*CacheItem
	// contains filtered or unexported fields
}

Cache reflects contents of a remote location

func New

func New(config *Config) (cache *Cache, err error)

func (*Cache) Sync

func (c *Cache) Sync(update *poll.Update) error

type CacheItem

type CacheItem struct {
	Name      string    `json:"filename"`
	Timestamp time.Time `json:"time"`
}

type Config

type Config struct {
	Dir    string
	DryRun bool
}

Jump to

Keyboard shortcuts

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