metadata

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2020 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector added in v1.1.0

type Collector func(ctx context.Context, cancel context.CancelFunc, collectChan chan printTask) error

type ExtractTask added in v1.1.0

type ExtractTask struct {
	Path string
	Info os.FileInfo
}

type Indexer

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

func NewIndexer

func NewIndexer(c conf.ElasticsearchConf) (*Indexer, error)

func (*Indexer) Close

func (idxer *Indexer) Close() error

func (*Indexer) ExtractAndPushFolder added in v1.1.0

func (idxer *Indexer) ExtractAndPushFolder(ctx context.Context, root string) error

func (*Indexer) ExtractAndPushTasks added in v1.1.0

func (idxer *Indexer) ExtractAndPushTasks(ctx context.Context, tasks <-chan ExtractTask) error

func (*Indexer) ExtractFolder added in v1.1.0

func (idxer *Indexer) ExtractFolder(ctx context.Context, root string) error

func (*Indexer) ExtractTasks added in v1.1.0

func (idxer *Indexer) ExtractTasks(ctx context.Context, tasks <-chan ExtractTask) error

type Model

type Model struct {
	FileName     string
	Folder       string
	ImportID     string
	FileSize     uint64
	ISO          *uint64    `json:",omitempty"`
	Aperture     *float64   `json:",omitempty"`
	ShutterSpeed *string    `json:",omitempty"`
	Keywords     []string   `json:",omitempty"`
	CameraModel  *string    `json:",omitempty"`
	LensModel    *string    `json:",omitempty"`
	MimeType     *string    `json:",omitempty"`
	Height       *uint64    `json:",omitempty"`
	Width        *uint64    `json:",omitempty"`
	Date         *uint64    `json:",omitempty"`
	ParsedDate   *time.Time `json:"-"`
	GPS          *string    `json:",omitempty"`
}

Jump to

Keyboard shortcuts

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