gatewayDeliveryHttp

package
v0.0.0-...-704a905 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

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 (Handler) Search

func (h Handler) Search(ctx echo.Context) error

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"`
}

Jump to

Keyboard shortcuts

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