controller

package
v0.0.0-...-19bcc6a Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlbumController

type AlbumController struct {
	Usecase usecase.AlbumUsecase
}

func NewAlbumController

func NewAlbumController(sqlHandler rdb.SqlHandler) *AlbumController

func (*AlbumController) GetAlbum

func (controller *AlbumController) GetAlbum() echo.HandlerFunc

func (*AlbumController) GetAlbumsByArtistId

func (controller *AlbumController) GetAlbumsByArtistId() echo.HandlerFunc

type ArtistController

type ArtistController struct {
	Usecase usecase.ArtistUsecase
}

func NewArtistController

func NewArtistController(sqlHandler rdb.SqlHandler) *ArtistController

func (*ArtistController) GetArtist

func (controller *ArtistController) GetArtist() echo.HandlerFunc

type Error

type Error struct {
	Message string
}

func APIError

func APIError(msg string) *Error

type SongController

type SongController struct {
	Usecase usecase.SongUsecase
}

func NewSongController

func NewSongController(sqlHandler rdb.SqlHandler) *SongController

func (*SongController) GetAttendedSongs

func (controller *SongController) GetAttendedSongs() echo.HandlerFunc

func (*SongController) GetSong

func (controller *SongController) GetSong() echo.HandlerFunc

func (*SongController) GetSongsInAlbum

func (controller *SongController) GetSongsInAlbum() echo.HandlerFunc

Jump to

Keyboard shortcuts

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