Documentation
¶
Index ¶
- type Service
- func (s Service) Create(playlist *playlist.Playlist) (string, *exception.InternalServerError)
- func (s Service) Delete(playlist *playlist.Playlist) *exception.InternalServerError
- func (s Service) FindAll(userId string) ([]playlist.FindAllPlaylistsResult, *exception.NotFoundError)
- func (s Service) VerifyPlaylistAccess(playlistId string, userId string) (playlist.Playlist, any)
- func (s Service) VerifyPlaylistOwner(playlistId string, userId string) (playlist.Playlist, any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func InitializeService ¶
func InitializeService() *Service
func NewService ¶
func NewService(repository *playlist.Repository, collabsService *collab.Service) *Service
func (Service) Delete ¶
func (s Service) Delete(playlist *playlist.Playlist) *exception.InternalServerError
func (Service) FindAll ¶
func (s Service) FindAll(userId string) ([]playlist.FindAllPlaylistsResult, *exception.NotFoundError)
func (Service) VerifyPlaylistAccess ¶
Click to show internal directories.
Click to hide internal directories.