Documentation
¶
Index ¶
- type Actions
- func (a *Actions) CreateLyrics(l models.Lyrics) (models.Lyrics, error)
- func (a *Actions) GetLyricsById(id uint) (models.Lyrics, error)
- func (a *Actions) GetLyricsBySongTitle(title string) ([]models.Lyrics, error)
- func (a *Actions) GetLyricsBySongTitleAndAlbumTitle(title, albumTitle string) ([]models.Lyrics, error)
- func (a *Actions) GetLyricsBySongTitleAndArtistName(title, artistName string) ([]models.Lyrics, error)
- func (a *Actions) GetLyricsBySongTitleArtistNameAndAlbumTitle(title, artistName, albumTitle string) ([]models.Lyrics, error)
- type Repository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Actions ¶
type Actions struct {
// contains filtered or unexported fields
}
func New ¶
func New(repo Repository) *Actions
func (*Actions) CreateLyrics ¶
func (*Actions) GetLyricsBySongTitle ¶
func (*Actions) GetLyricsBySongTitleAndAlbumTitle ¶
func (*Actions) GetLyricsBySongTitleAndArtistName ¶
type Repository ¶
type Repository interface {
CreateLyrics(l models.Lyrics) (models.Lyrics, error)
GetLyricsById(id uint) (models.Lyrics, error)
GetLyricsBySongTitle(Title string) ([]models.Lyrics, error)
GetLyricsBySongTitleAndArtistName(songTitle, artistName string) ([]models.Lyrics, error)
GetLyricsBySongAndAlbumTitle(songTitle, albumTitle string) ([]models.Lyrics, error)
GetLyricsBySongTitleArtistNameAndAlbumTitle(songTitle, artistName, albumTitle string) ([]models.Lyrics, error)
}
Click to show internal directories.
Click to hide internal directories.