Documentation
¶
Overview ¶
Package service is the business logic connects the api with the internal mechanisms
Index ¶
- type Directory
- type Link
- type Playlist
- func (p *Playlist) GetByUser(ctx context.Context, userID int) ([]dto.Playlist, error)
- func (p *Playlist) GetCover(ctx context.Context, playlistID int) ([]byte, error)
- func (p *Playlist) GetDuplicates(ctx context.Context, userID int) ([]dto.PlaylistDuplicate, error)
- func (p *Playlist) GetUnplayables(ctx context.Context, userID int) ([]dto.PlaylistUnplayable, error)
- func (p *Playlist) RemoveDuplicates(ctx context.Context, userID int) error
- type Service
- type Task
- type Track
- type User
- func (u *User) Create(ctx context.Context, userSave dto.User) (dto.User, error)
- func (u *User) GetByID(ctx context.Context, id int) (dto.User, error)
- func (u *User) GetByUID(ctx context.Context, uid string) (dto.User, error)
- func (u *User) Update(ctx context.Context, userSave dto.User) (dto.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Directory ¶
type Directory struct {
// contains filtered or unexported fields
}
type Link ¶
type Link struct {
// contains filtered or unexported fields
}
func (*Link) GetAllByUser ¶
type Playlist ¶
type Playlist struct {
// contains filtered or unexported fields
}
func (*Playlist) GetDuplicates ¶
func (*Playlist) GetUnplayables ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func New ¶
func New(repo repository.Repository) *Service
func (*Service) NewDirectory ¶
func (*Service) NewPlaylist ¶
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
func (*Task) GetHistory ¶
func (t *Task) GetHistory(ctx context.Context, filter dto.TaskFilter) ([]dto.TaskHistory, error)
type Track ¶
type Track struct {
// contains filtered or unexported fields
}
func (*Track) GetAdded ¶
func (t *Track) GetAdded(ctx context.Context, filter dto.TrackFilter) ([]dto.TrackAdded, error)
func (*Track) GetDeleted ¶
func (t *Track) GetDeleted(ctx context.Context, filter dto.TrackFilter) ([]dto.TrackDeleted, error)
func (*Track) GetHistory ¶
Click to show internal directories.
Click to hide internal directories.