Documentation ¶
Index ¶
- type Artist
- type ArtistHandler
- type ArtistRepository
- func (ar *ArtistRepository) CreateArtist(newArtist *Artist) (*Artist, error)
- func (ar *ArtistRepository) DeleteArtist(artlistID string) error
- func (ar *ArtistRepository) GetArtist(artistID string) (*Artist, error)
- func (ar *ArtistRepository) GetArtists() ([]*Artist, error)
- func (ar *ArtistRepository) UpdateArtist(artistUpdate *Artist) (*Artist, error)
- type ArtistUsecase
- func (a *ArtistUsecase) CreateArtist() ([]string, string, error)
- func (a *ArtistUsecase) DeleteArtist() (string, error)
- func (a *ArtistUsecase) GetArtist() ([]string, string, error)
- func (a *ArtistUsecase) GetArtists() ([]string, string, error)
- func (a *ArtistUsecase) GetTrackOfArtist() string
- func (a *ArtistUsecase) GetTracksOfGenre() string
- func (a *ArtistUsecase) UpdateArtist() ([]string, string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArtistHandler ¶
type ArtistHandler struct {
// contains filtered or unexported fields
}
func NewArtistHandler ¶
func NewArtistHandler(uc ArtistUsecase, helper helpers.Helper, ch common.CommonHandler) *ArtistHandler
func (*ArtistHandler) CreateArtist ¶
func (u *ArtistHandler) CreateArtist()
func (*ArtistHandler) DeleteArtist ¶
func (u *ArtistHandler) DeleteArtist()
func (*ArtistHandler) GetArtist ¶
func (u *ArtistHandler) GetArtist()
func (*ArtistHandler) GetArtists ¶
func (u *ArtistHandler) GetArtists()
func (*ArtistHandler) UpdateArtist ¶
func (u *ArtistHandler) UpdateArtist()
type ArtistRepository ¶
type ArtistRepository struct{}
func NewArtistRepository ¶
func NewArtistRepository() *ArtistRepository
func (*ArtistRepository) CreateArtist ¶
func (ar *ArtistRepository) CreateArtist(newArtist *Artist) (*Artist, error)
func (*ArtistRepository) DeleteArtist ¶
func (ar *ArtistRepository) DeleteArtist(artlistID string) error
func (*ArtistRepository) GetArtist ¶
func (ar *ArtistRepository) GetArtist(artistID string) (*Artist, error)
func (*ArtistRepository) GetArtists ¶
func (ar *ArtistRepository) GetArtists() ([]*Artist, error)
func (*ArtistRepository) UpdateArtist ¶
func (ar *ArtistRepository) UpdateArtist(artistUpdate *Artist) (*Artist, error)
type ArtistUsecase ¶
type ArtistUsecase struct {
// contains filtered or unexported fields
}
func NewArtistUsecase ¶
func NewArtistUsecase(repo ArtistRepository, helper helpers.Helper) *ArtistUsecase
func (*ArtistUsecase) CreateArtist ¶
func (a *ArtistUsecase) CreateArtist() ([]string, string, error)
func (*ArtistUsecase) DeleteArtist ¶
func (a *ArtistUsecase) DeleteArtist() (string, error)
func (*ArtistUsecase) GetArtists ¶
func (a *ArtistUsecase) GetArtists() ([]string, string, error)
func (*ArtistUsecase) GetTrackOfArtist ¶
func (a *ArtistUsecase) GetTrackOfArtist() string
func (*ArtistUsecase) GetTracksOfGenre ¶
func (a *ArtistUsecase) GetTracksOfGenre() string
func (*ArtistUsecase) UpdateArtist ¶
func (a *ArtistUsecase) UpdateArtist() ([]string, string, error)
Click to show internal directories.
Click to hide internal directories.