metadata

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 License: MIT Imports: 26 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Path added in v0.25.0

func Path(item absto.Item) string

Types

type Config

type Config struct {
	ExifURL  string
	ExifUser string
	ExifPass string

	AmqpExchange   string
	AmqpRoutingKey string

	MaxSize      int64
	DirectAccess bool
}

func Flags

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

type Service added in v0.26.0

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

func New

func New(ctx context.Context, config *Config, storageService absto.Storage, meterProvider metric.MeterProvider, traceProvider trace.TracerProvider, amqpClient *amqpclient.Client, redisClient redis.Client, exclusiveService exclusive.Service) (Service, error)

func (Service) AMQPHandler added in v0.26.0

func (s Service) AMQPHandler(ctx context.Context, message amqp.Delivery) error

func (Service) CanHaveExif added in v0.26.0

func (s Service) CanHaveExif(item absto.Item) bool

func (Service) EventConsumer added in v0.26.0

func (s Service) EventConsumer(ctx context.Context, e provider.Event)

func (Service) GetAggregateFor added in v0.26.0

func (s Service) GetAggregateFor(ctx context.Context, item absto.Item) (aggregate provider.Aggregate, err error)

func (Service) GetAllAggregateFor added in v0.26.0

func (s Service) GetAllAggregateFor(ctx context.Context, items ...absto.Item) (map[string]provider.Aggregate, error)

func (Service) GetAllMetadataFor added in v0.26.0

func (s Service) GetAllMetadataFor(ctx context.Context, items ...absto.Item) (map[string]provider.Metadata, error)

func (Service) GetMetadataFor added in v0.26.0

func (s Service) GetMetadataFor(ctx context.Context, item absto.Item) (metadata provider.Metadata, err error)

func (Service) ListDir added in v0.26.0

func (s Service) ListDir(ctx context.Context, item absto.Item) ([]absto.Item, error)

func (Service) Rename added in v0.26.0

func (s Service) Rename(ctx context.Context, old, new absto.Item) error

func (Service) SaveAggregateFor added in v0.26.0

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

func (Service) Update added in v0.26.0

func (s Service) Update(ctx context.Context, item absto.Item, opts ...provider.MetadataAction) (provider.Metadata, error)

Jump to

Keyboard shortcuts

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