file

package
v1.0.1-0...-4a73120 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package file providers a file caching dependency.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDependency

func NewDependency(path string) caching.Dependency

NewDependency returns a new file dependency.

Types

type Dependency

type Dependency struct {
	Path             string
	LastModifiedTime time.Time
}

Dependency represents a file dependency.

func (*Dependency) HasChanged

func (d *Dependency) HasChanged() bool

HasChanged reports whether the file has changed.

Jump to

Keyboard shortcuts

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