artists

package
v0.0.0-...-f42dca5 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artist

type Artist struct {
	ID        string `json:"id"`
	Username  string `json:"username"`
	FullName  string `json:"full_name"`
	Bio       string `json:"bio"`
	AvatarUrl string `json:"avatar_url"`
	DebutAt   string `json:"debut_at"`
}

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

func (a *ArtistUsecase) GetArtist() ([]string, 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)

Jump to

Keyboard shortcuts

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