adapter

package
v0.72.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToArtwork

func ConvertToArtwork(ctx context.Context, artworkModel *types.ArtworkModel, opts ...*types.AdapterOption) (*types.Artwork, error)

func ConvertToArtworks

func ConvertToArtworks(ctx context.Context, artworkModels []*types.ArtworkModel, opts ...*types.AdapterOption) ([]*types.Artwork, error)

func ConvertToFeedItems

func ConvertToFeedItems(ctx context.Context, artworks []*types.Artwork) []*feeds.Item

func ConvertToSearchDoc added in v0.72.0

func ConvertToSearchDoc(ctx context.Context, artworkModel *types.ArtworkModel) (*types.ArtworkSearchDocument, error)

func GetArtworkModelIndexPicture

func GetArtworkModelIndexPicture(ctx context.Context, artworkModel *types.ArtworkModel) (*types.Picture, error)

func GetArtworkModelPictures

func GetArtworkModelPictures(ctx context.Context, artworkModel *types.ArtworkModel) ([]*types.Picture, error)

func GetArtworkModelTags

func GetArtworkModelTags(ctx context.Context, artworkModel *types.ArtworkModel) ([]string, error)

func LoadAll

func LoadAll() *types.AdapterOption

func LoadNone

func LoadNone() *types.AdapterOption

func MergeOptions

func MergeOptions(opts ...*types.AdapterOption) *types.AdapterOption

func OnlyLoadArtist

func OnlyLoadArtist() *types.AdapterOption

func OnlyLoadPicture

func OnlyLoadPicture() *types.AdapterOption

func OnlyLoadTag

func OnlyLoadTag() *types.AdapterOption

Types

This section is empty.

Jump to

Keyboard shortcuts

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