Documentation ¶
Index ¶
- func ConvertToArtwork(ctx context.Context, artworkModel *model.ArtworkModel, opts ...*AdapterOption) (*types.Artwork, error)
- func ConvertToArtworks(ctx context.Context, artworkModels []*model.ArtworkModel, ...) ([]*types.Artwork, error)
- func ConvertToFeedItems(ctx context.Context, artworks []*types.Artwork) []*feeds.Item
- func GetArtworkModelIndexPicture(ctx context.Context, artworkModel *model.ArtworkModel) (*types.Picture, error)
- func GetArtworkModelPictures(ctx context.Context, artworkModel *model.ArtworkModel) ([]*types.Picture, error)
- func GetArtworkModelTags(ctx context.Context, artworkModel *model.ArtworkModel) ([]string, error)
- type AdapterOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToArtwork ¶
func ConvertToArtwork(ctx context.Context, artworkModel *model.ArtworkModel, opts ...*AdapterOption) (*types.Artwork, error)
func ConvertToArtworks ¶
func ConvertToArtworks(ctx context.Context, artworkModels []*model.ArtworkModel, opts ...*AdapterOption) ([]*types.Artwork, error)
func ConvertToFeedItems ¶
func GetArtworkModelPictures ¶
func GetArtworkModelTags ¶
Types ¶
type AdapterOption ¶
func LoadAll ¶
func LoadAll() *AdapterOption
func LoadNone ¶
func LoadNone() *AdapterOption
func MergeOptions ¶
func MergeOptions(opts ...*AdapterOption) *AdapterOption
func OnlyLoadArtist ¶
func OnlyLoadArtist() *AdapterOption
func OnlyLoadPicture ¶
func OnlyLoadPicture() *AdapterOption
func OnlyLoadTag ¶
func OnlyLoadTag() *AdapterOption
func (*AdapterOption) WithLoadArtist ¶
func (o *AdapterOption) WithLoadArtist() *AdapterOption
func (*AdapterOption) WithLoadPicture ¶
func (o *AdapterOption) WithLoadPicture() *AdapterOption
func (*AdapterOption) WithLoadTag ¶
func (o *AdapterOption) WithLoadTag() *AdapterOption
func (*AdapterOption) WithOnlyIndexPicture ¶
func (o *AdapterOption) WithOnlyIndexPicture() *AdapterOption
Click to show internal directories.
Click to hide internal directories.