actions

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

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 (a *Actions) CreateLyrics(l models.Lyrics) (models.Lyrics, error)

func (*Actions) GetLyricsById

func (a *Actions) GetLyricsById(id uint) (models.Lyrics, error)

func (*Actions) GetLyricsBySongTitle

func (a *Actions) GetLyricsBySongTitle(title string) ([]models.Lyrics, error)

func (*Actions) GetLyricsBySongTitleAndAlbumTitle

func (a *Actions) GetLyricsBySongTitleAndAlbumTitle(title, albumTitle string) ([]models.Lyrics, error)

func (*Actions) GetLyricsBySongTitleAndArtistName

func (a *Actions) GetLyricsBySongTitleAndArtistName(title, artistName string) ([]models.Lyrics, error)

func (*Actions) GetLyricsBySongTitleArtistNameAndAlbumTitle

func (a *Actions) GetLyricsBySongTitleArtistNameAndAlbumTitle(title, artistName, albumTitle string) ([]models.Lyrics, error)

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)
}

Jump to

Keyboard shortcuts

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