Documentation ¶
Index ¶
- Variables
- type Index
- func (idx *Index) Add(fullPath string)
- func (idx *Index) Directory() string
- func (idx *Index) Get(fullPath string) *Medium
- func (idx *Index) GetMediaBySize() map[int64]Media
- func (idx *Index) LoadMeta() error
- func (idx *Index) Same(medium *Medium) *Medium
- func (idx *Index) Size() int
- func (idx *Index) Walk(dir string, ignored map[string]bool) error
- type Media
- type Medium
- type Meta
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotDirectory = errors.New("file is not directory")
)
Functions ¶
This section is empty.
Types ¶
type Index ¶
type Index struct {
// contains filtered or unexported fields
}
func NewEmptyIndex ¶
func NewEmptyIndex() *Index
func (*Index) GetMediaBySize ¶
type Medium ¶
type Medium struct { // //ShootingTime time.Time //ShootingTimeUnix int64 Adler32 uint32 SHA256 []byte FullPath string os.FileInfo // contains filtered or unexported fields }
func (*Medium) ShootingTime ¶
func (*Medium) SumAdler32 ¶
func (m *Medium) SumAdler32()
type Meta ¶
type Meta struct { SourceFile string `json:SourceFile` //Directory string `json:"File:Directory"` FileModifyDate int64 `json:"File:FileModifyDate"` // third FileCreateDate int64 `json:"File:FileCreateDate"` // third //FileName string `json:"File:FileName"` FileType string `json:"File:FileType"` ImageHeight int64 `json:"File:ImageHeight"` ImageWidth int64 `json:"File:ImageWidth"` MIMEType string `json:"File:MIMEType"` EXIFCreateDate int64 `json:"EXIF:CreateDate"` // second EXIFModifyDate int64 `json:"EXIF:ModifyDate"` DateTimeOriginal int64 `json:"EXIF:DateTimeOriginal"` // first Model string `json:"EXIF:Model"` // camera model H264DateTimeOriginal int64 `json:"H264:DateTimeOriginal"` // DateTime for h264 QTDateTime int64 `json:"QuickTime:MediaCreateDate"` // DateTime for QuickTime XMPPhotoId string `json:"XMP:PhotoId"` GPSLatitude string `json:"Composite:GPSLatitude"` GPSLongitude string `json:"Composite:GPSLongitude"` // ExifTool Error ExifToolError string `json:"ExifTool:Error"` ExifToolWarning string `json:"ExifTool:Warning"` }
Click to show internal directories.
Click to hide internal directories.