build

package
v0.0.0-...-389ba5e Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder interface {
	BuildPlaylist(userID, playlistID uuid.UUID)
	DeletePlaylist(userID, playlistID uuid.UUID)
	BuildScheduledPlaylists()
}

Builder provides methods for working with real Spotify playlists

type Service

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

Service manages building the actual spotify playlists

func New

func New(store store.Store, spotify *motify.Spotify, log *zap.SugaredLogger) *Service

New returns a pointer to a new BuildService

func (*Service) BuildPlaylist

func (s *Service) BuildPlaylist(userID, playlistID uuid.UUID)

BuildPlaylist uses the configuration from playlistID to build a spotify playlist for userID

func (*Service) BuildScheduledPlaylists

func (s *Service) BuildScheduledPlaylists()

BuildScheduledPlaylists builds all scheduled playlists whose deadlines have passed

func (*Service) DeletePlaylist

func (s *Service) DeletePlaylist(userID, playlistID uuid.UUID)

DeletePlaylist deletes both the actual spotify playlist and the configuration in the db

Jump to

Keyboard shortcuts

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