Documentation ¶
Index ¶
- type Collector
- type ExtractTask
- type Indexer
- func (idxer *Indexer) Close() error
- func (idxer *Indexer) ExtractAndPushFolder(ctx context.Context, root string) error
- func (idxer *Indexer) ExtractAndPushTasks(ctx context.Context, tasks <-chan ExtractTask) error
- func (idxer *Indexer) ExtractFolder(ctx context.Context, root string) error
- func (idxer *Indexer) ExtractTasks(ctx context.Context, tasks <-chan ExtractTask) error
- type Model
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 Indexer ¶
type Indexer struct {
// contains filtered or unexported fields
}
func NewIndexer ¶
func NewIndexer(c conf.ElasticsearchConf) (*Indexer, error)
func (*Indexer) ExtractAndPushFolder ¶ added in v1.1.0
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 (*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"` }
Click to show internal directories.
Click to hide internal directories.