Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct { ArtistUseCase ArtistUseCase.ArtistUseCase AlbumUseCase AlbumUseCase.AlbumUseCase TrackUseCase TrackUseCase.TrackUseCase UserUseCase user_domain.UserUseCase }
func MakeHandler ¶
func MakeHandler(album AlbumUseCase.AlbumUseCase, artist ArtistUseCase.ArtistUseCase, track TrackUseCase.TrackUseCase, user user_domain.UserUseCase) Handler
func (Handler) Search ¶
Search godoc @Summary Search @Description general search @Tags gateway @Accept application/json @Produce application/json @Param toFind path string true "string for search" @Success 200 {object} webUtils.Success @Failure 400 {object} webUtils.Error "Data is invalid" @Failure 405 {object} webUtils.Error "Method is not allowed" @Router /api/v1/search/{toFind} [get]
type SearchResult ¶
type SearchResult struct { Albums []*albumProto.AlbumDataTransfer `json:"MatchedAlbums"` Artists []*artistProto.ArtistDataTransfer `json:"MatchedArtists"` Tracks []*trackProto.TrackDataTransfer `json:"MatchedTracks"` }
Click to show internal directories.
Click to hide internal directories.