exif

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2022 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Path added in v0.18.0

func Path(item absto.Item) string

Path computes exif path for a a given item

Types

type App

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

App of package

func New

func New(config Config, storageApp absto.Storage, prometheusRegisterer prometheus.Registerer, tracerApp tracer.App, amqpClient *amqpclient.Client, redisClient redis.App) (App, error)

New creates new App from Config

func (App) AmqpHandler added in v0.10.0

func (a App) AmqpHandler(message amqp.Delivery) error

AmqpHandler handle exif message

func (App) CanHaveExif added in v0.9.0

func (a App) CanHaveExif(item absto.Item) bool

CanHaveExif determine if exif can be extracted for given pathname

func (App) EventConsumer

func (a App) EventConsumer(ctx context.Context, e provider.Event)

EventConsumer handle event pushed to the event bus

func (App) GetAggregateFor

func (a App) GetAggregateFor(ctx context.Context, item absto.Item) (provider.Aggregate, error)

GetAggregateFor return aggregated value for a given directory

func (App) GetExifFor added in v0.11.0

func (a App) GetExifFor(ctx context.Context, item absto.Item) (exas.Exif, error)

GetExifFor return exif value for a given item

func (App) ListDir added in v0.18.0

func (a App) ListDir(ctx context.Context, item absto.Item) ([]absto.Item, error)

ListDir return all exifs for a given directory

func (App) Rename added in v0.18.0

func (a App) Rename(ctx context.Context, old, new absto.Item) error

Rename exif of an item

func (App) SaveAggregateFor added in v0.21.1

func (a App) SaveAggregateFor(ctx context.Context, item absto.Item, aggregate provider.Aggregate) error

SaveAggregateFor saves given aggregate for given item

func (App) SaveExifFor added in v0.16.0

func (a App) SaveExifFor(ctx context.Context, item absto.Item, exif exas.Exif) error

SaveExifFor saves given exif for given item

type Config

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

Config of package

func Flags

func Flags(fs *flag.FlagSet, prefix string) Config

Flags adds flags for configuring package

Jump to

Keyboard shortcuts

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