filepath_summary

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: May 9, 2016 License: MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DirSummary

type DirSummary struct {
	FlattenedFileSummaries []*FileSummary
}

DirSummary holds the summary used for synchronizing across

type FileSummary

type FileSummary struct {
	FullPath string
	ModTime  time.Time
	Checksum *checksums.ChecksumResult
}

FileSummary holds the info for a single file

func NewFileSummary

func NewFileSummary(fullPath string, modTime time.Time, checksum *checksums.ChecksumResult) *FileSummary

NewFileSummary will create a new instance of FileSummary

func (*FileSummary) HaveSamePath

func (f *FileSummary) HaveSamePath(other *FileSummary) bool

HaveSamePath compares it to the path of another

type Service

type Service interface {
	GetFileSummary(filePath string) (*FileSummary, error)
	GetDirSummary(dirPath string) (*DirSummary, error)
}

Service is the filepath summary service

func New

func New(checksumsSvc checksums.Service) Service

New creates a new service instance

Jump to

Keyboard shortcuts

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