file

package
v0.0.0-...-57b05bb Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2017 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByCreationTime

type ByCreationTime struct {
	Files
}

func (ByCreationTime) Less

func (s ByCreationTime) Less(i, j int) bool

type ByModificationTime

type ByModificationTime struct {
	Files
}

func (ByModificationTime) Less

func (s ByModificationTime) Less(i, j int) bool

type BySize

type BySize struct {
	Files
}

func (BySize) Less

func (s BySize) Less(i, j int) bool

type ChecksumResult

type ChecksumResult struct {
	Hash  string
	Total int64
}

type Files

type Files []Info

func (Files) Len

func (s Files) Len() int

func (Files) Swap

func (s Files) Swap(i, j int)

type Group

type Group struct {
	Files    []Info
	Checksum string
}

type Info

type Info struct {
	gorm.Model
	Path             string    `csv:"file path"`
	Hash             string    `gorm:"index" csv:"checksum"`
	Size             int64     `gorm:"index" csv:"size"`
	Type             string    `csv:"-"`
	CreationTime     time.Time `csv:"creation time"`
	ModificationTime time.Time `csv:"modification time"`
}

func (Info) TableName

func (Info) TableName() string

Jump to

Keyboard shortcuts

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