metadata

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2020 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Input

func Input(input string) func(*Indexer) error

func WithConfiguration

func WithConfiguration(c conf.ElasticsearchConf) func(*Indexer) error

Types

type Indexer

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

func NewIndexer

func NewIndexer(opts ...func(*Indexer) error) (*Indexer, error)

func (*Indexer) Close

func (idxer *Indexer) Close() error

func (*Indexer) Dump

func (idxer *Indexer) Dump(ctx context.Context, writer io.Writer) error

func (*Indexer) Push

func (idxer *Indexer) Push(ctx context.Context, buffer *bytes.Buffer) 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