spotify

package
v0.0.0-...-88a287f Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSpotifyTokenNotSet = errors.New("spotify token is not set")

Functions

This section is empty.

Types

type Service

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

Service Service to communicate with spotify

func New

func New(config *config.Config, spotifyClient *spotify.Client) *Service

New create a new instance of Service TODO: replace client with client interface

func (*Service) AllLikedSongs

func (s *Service) AllLikedSongs(ctx context.Context) (map[string]string, error)

AllLikedSongs to get all liked songs from spotify Me list return a map of string and string, the key is the song name and the value is the artists name

Jump to

Keyboard shortcuts

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