lookup

package
v0.4.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Library

type Library interface {
	GetAlbumFull(ctx context.Context, id uuid.UUID) (library.AlbumFull, error)
	GetStreamingAlbumFull(ctx context.Context, id string) (library.AlbumFull, error)

	GetStreamingArtistFull(ctx context.Context, id string) (library.ArtistFull, error)
	GetArtistFull(ctx context.Context, id uuid.UUID) (library.ArtistFull, error)

	GetPlaylistFull(ctx context.Context, id uuid.UUID) (library.PlaylistFull, error)

	GetAlbumImage(ctx context.Context, id uuid.UUID) ([]byte, error)
	GetArtistImage(ctx context.Context, id uuid.UUID) ([]byte, error)
	GetPlaylistImage(ctx context.Context, id uuid.UUID) ([]byte, error)
	GetPlayedAlbumImage(ctx context.Context, id uuid.UUID) ([]byte, error)
	GetRadioImage(ctx context.Context, id uuid.UUID) ([]byte, error)
}

type Service

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

func InitService

func InitService(logger *slog.Logger, lib Library, streaming *streaming.Client) *Service

func (*Service) Album

func (*Service) AlbumImage added in v0.4.1

func (s *Service) AlbumImage(ctx context.Context, id unification.ImageID) ([]byte, error)

func (*Service) Artist

func (*Service) ArtistImage added in v0.4.1

func (s *Service) ArtistImage(ctx context.Context, id unification.ImageID) ([]byte, error)

func (*Service) PlayedAlbumImage added in v0.4.1

func (s *Service) PlayedAlbumImage(ctx context.Context, id unification.ImageID) ([]byte, error)

func (*Service) Playlist

func (*Service) PlaylistImage added in v0.4.1

func (s *Service) PlaylistImage(ctx context.Context, id unification.ImageID) ([]byte, error)

func (*Service) RadioImage added in v0.4.5

func (s *Service) RadioImage(ctx context.Context, id unification.ImageID) ([]byte, error)

Jump to

Keyboard shortcuts

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