Versions in this module Expand all Collapse all v0 v0.14.0 Dec 18, 2024 Changes in this version + type Database interface + func NewMediaAPIDatasource(conMan *sqlutil.Connections, dbProperties *config.DatabaseOptions) (Database, error) + func NewMediaAPIDatasource(conMan sqlutil.Connections, dbProperties *config.DatabaseOptions) (Database, error) + type MediaRepository interface + GetMediaMetadata func(ctx context.Context, mediaID types.MediaID, mediaOrigin spec.ServerName) (*types.MediaMetadata, error) + GetMediaMetadataByHash func(ctx context.Context, mediaHash types.Base64Hash, mediaOrigin spec.ServerName) (*types.MediaMetadata, error) + StoreMediaMetadata func(ctx context.Context, mediaMetadata *types.MediaMetadata) error + type Thumbnails interface + GetThumbnail func(ctx context.Context, mediaID types.MediaID, mediaOrigin spec.ServerName, ...) (*types.ThumbnailMetadata, error) + GetThumbnails func(ctx context.Context, mediaID types.MediaID, mediaOrigin spec.ServerName) ([]*types.ThumbnailMetadata, error) + StoreThumbnail func(ctx context.Context, thumbnailMetadata *types.ThumbnailMetadata) error