metadata

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2023 License: MIT Imports: 26 Imported by: 0

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 App

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

func New

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

func (App) AMQPHandler added in v0.25.0

func (a App) AMQPHandler(ctx context.Context, message amqp.Delivery) error

func (App) CanHaveExif added in v0.25.0

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

func (App) EventConsumer added in v0.25.0

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

func (App) GetAggregateFor added in v0.25.0

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

func (App) GetAllAggregateFor added in v0.25.0

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

func (App) GetAllMetadataFor added in v0.25.0

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

func (App) GetMetadataFor added in v0.25.0

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

func (App) ListDir added in v0.25.0

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

func (App) Rename added in v0.25.0

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

func (App) SaveAggregateFor added in v0.25.0

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

func (App) Update added in v0.25.0

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

type Config

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

func Flags

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

Jump to

Keyboard shortcuts

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