Gateway

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CastAlbumToDtoWithoutArtistNameAndTracks

func CastAlbumToDtoWithoutArtistNameAndTracks(album *albumProto.Album, albumAgent domain.AlbumAgent, userId int64) (*albumProto.AlbumDataTransfer, error)

--------------------------------------

func CastTrackToDto

func CastTrackToDto(track *trackProto.Track, artist *artistProto.Artist, trackAgent domain.TrackAgent, userId int64) (*trackProto.TrackDataTransfer, error)

--------------------------------------

func CastTrackToDtoWithoutArtistName

func CastTrackToDtoWithoutArtistName(track *trackProto.Track, trackAgent domain.TrackAgent, userId int64) (*trackProto.TrackDataTransfer, error)

--------------------------------------

func CastTracksByArtistToDto

func CastTracksByArtistToDto(userId int64, trackAgent domain.TrackAgent, tracks []*trackProto.Track, artist *artistProto.Artist) ([]*trackProto.TrackDataTransfer, error)

--------------------------------------

func Check

func Check[V CheckConstraint](object V) error

--------------------------------------

func GetFullAlbumByArtist

func GetFullAlbumByArtist(userId int64, trackAgent domain.TrackAgent, albumAgent domain.AlbumAgent, album *albumProto.Album, artist *artistProto.Artist) (*albumProto.AlbumDataTransfer, error)

--------------------------------------

func PathToAlbumCover

func PathToAlbumCover(album *albumProto.Album, fileFormat string) (string, error)

--------------------------------------

func PathToArtistCover

func PathToArtistCover(artist *artistProto.Artist, fileFormat string) (string, error)

--------------------------------------

func PathToTrackFile

func PathToTrackFile(track *trackProto.Track, fileFormat string) (string, error)

--------------------------------------

func PathToTrackFileByAlbumId

func PathToTrackFileByAlbumId(fileFormat string, albumId int64) (string, error)

--------------------------------------

Types

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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