Documentation
¶
Index ¶
- type EntLibraryService
- func (s *EntLibraryService) AddSong(ctx context.Context) (*ent.Song, error)
- func (s *EntLibraryService) CreateSong(ctx context.Context, path string, hash string) (*ent.Song, error)
- func (s *EntLibraryService) GetSong(ctx context.Context, id int64) (*ent.Song, error)
- func (s *EntLibraryService) GetSongs(ctx context.Context) ([]*ent.Song, error)
- func (s *EntLibraryService) ImportSong(ctx context.Context, path string) (*ent.Song, error)
- func (s *EntLibraryService) RemoveSong(ctx context.Context, id int64) error
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntLibraryService ¶
type EntLibraryService struct {
// contains filtered or unexported fields
}
func New ¶
func New(client *ent.Client) *EntLibraryService
func (*EntLibraryService) CreateSong ¶
func (*EntLibraryService) ImportSong ¶
func (*EntLibraryService) RemoveSong ¶
func (s *EntLibraryService) RemoveSong(ctx context.Context, id int64) error
type Service ¶
type Service interface { ImportSong(ctx context.Context, path string) (*ent.Song, error) CreateSong(ctx context.Context, path string, hash string) (*ent.Song, error) GetSong(ctx context.Context, id int64) (*ent.Song, error) GetSongs(ctx context.Context) ([]*ent.Song, error) RemoveSong(ctx context.Context, id int64) error }
Click to show internal directories.
Click to hide internal directories.