metadata

package
v0.0.0-...-3fa8bca Latest Latest
Warning

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

Go to latest
Published: May 7, 2018 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPhoto

func NewPhoto(fi mirror.FileInfo, meta *Metadata, jpegReaderProvider func() (io.ReadCloser, error)) mirror.LocalPhoto

Types

type Extractor

type Extractor struct {
	// contains filtered or unexported fields
}

func NewExtractor

func NewExtractor(rd mirror.StorageReader) *Extractor

func (Extractor) Extract

func (s Extractor) Extract(ctx context.Context, logctx log.Interface, photos []mirror.FileInfo) []mirror.LocalPhoto

type Metadata

type Metadata struct {
	CreatedAt time.Time
	Thumbnail []byte
}

type Photo

type Photo struct {
	mirror.FileInfo
	*Metadata
	// contains filtered or unexported fields
}

func (*Photo) CreatedAt

func (ph *Photo) CreatedAt() time.Time

func (*Photo) Dir

func (p *Photo) Dir() string

func (*Photo) FilePath

func (ph *Photo) FilePath() string

func (*Photo) NewJpgReader

func (ph *Photo) NewJpgReader() (io.ReadCloser, error)

func (*Photo) SetCreatedAt

func (ph *Photo) SetCreatedAt(t time.Time)

func (*Photo) ThumbID

func (p *Photo) ThumbID() string

func (*Photo) Thumbnail

func (ph *Photo) Thumbnail() []byte

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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