picture

package
v0.0.0-...-7ad7084 Latest Latest
Warning

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

Go to latest
Published: May 12, 2017 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Video = "video"
	Image = "image"
)

Variables

This section is empty.

Functions

func MimeIs

func MimeIs(mimeType string, pictureType ...string) bool

MimeIs return true if mime type is one of the provided array

Types

type Index

type Index struct {
	MD5      string
	MimeType string
	Path     string
	FileTime time.Time
	Taken    time.Time
	Lat      float64
	Long     float64
	Location string `json:"location"`
	Album    string `json:"album"`
	Objects  string `json:"objects"`
	Faces    string `json:"faces"`
	Exif     map[string]string
}

func NewIndex

func NewIndex(path string, info os.FileInfo) (*Index, error)

func (*Index) ExifString

func (i *Index) ExifString() string

func (*Index) Name

func (i *Index) Name() string

func (*Index) Walk

func (i *Index) Walk(name exif.FieldName, tag *tiff.Tag) error

type Processor

type Processor interface {
	Process(image *Index) error
}

type Queue

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

func NewQueue

func NewQueue() *Queue

func (*Queue) Items

func (q *Queue) Items() []*Index

func (*Queue) Keys

func (q *Queue) Keys() []string

func (*Queue) Length

func (q *Queue) Length() int

func (*Queue) Pop

func (q *Queue) Pop() (int, *Index)

func (*Queue) PushBack

func (q *Queue) PushBack(p *Index)

Jump to

Keyboard shortcuts

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