Documentation ¶
Index ¶
- func AddOrUpdatePlaylistMetadata(playlist spotify.FullPlaylist) model.PlaylistMetadata
- func AddOrUpdateTrackMetadataInTransaction(spotifyTrack spotify.FullTrack, tx *gorm.DB) (trackMetadata model.TrackMetadata, err error)
- func ChangeFallbackPlaylist(session model.SimpleListeningSession, user model.SimpleUser, playlistId string) *SpotifeteError
- func Client(session model.FullListeningSession) *spotify.Client
- func CloseSession(user model.SimpleUser, joinId string) *SpotifeteError
- func DeleteRequestFromQueue(session model.SimpleListeningSession, spotifyTrackId string) *SpotifeteError
- func FindFullListeningSession(filter model.SimpleListeningSession) *model.FullListeningSession
- func FindFullListeningSessions(filter model.SimpleListeningSession) []model.FullListeningSession
- func FindSimpleListeningSession(filter model.SimpleListeningSession) *model.SimpleListeningSession
- func FindSimpleListeningSessions(filter model.SimpleListeningSession) []model.SimpleListeningSession
- func FindSongRequest(filter interface{}) (*model.SongRequest, error)
- func FindSongRequestCount(filter interface{}) (int64, error)
- func FindSongRequestCountInTransaction(filter interface{}, tx *gorm.DB) (int64, error)
- func FindSongRequests(query *gorm.DB) ([]model.SongRequest, error)
- func GetActiveSessionCount() uint
- func GetDistinctRequestedTracks(session model.SimpleListeningSession) (trackIds []spotify.ID)
- func GetFullQueue(session model.SimpleListeningSession) ([]model.SongRequest, error)
- func GetFullQueueInTransaction(session model.SimpleListeningSession, tx *gorm.DB) ([]model.SongRequest, error)
- func GetLimitedQueue(session model.SimpleListeningSession, limit int) ([]model.SongRequest, error)
- func GetLimitedQueueInTransaction(session model.SimpleListeningSession, limit int, tx *gorm.DB) ([]model.SongRequest, error)
- func GetPlaylistMetadataBySpotifyPlaylistId(playlistId string) *model.PlaylistMetadata
- func GetQueueLastUpdated(session model.SimpleListeningSession) time.Time
- func GetTotalSessionCount() uint
- func GetTrackMetadataBySpotifyTrackIdInTransaction(trackId string, tx *gorm.DB) *model.TrackMetadata
- func NewQueuePlaylist(session model.FullListeningSession) *SpotifeteError
- func NewSession(user model.SimpleUser, title string) (*model.SimpleListeningSession, *SpotifeteError)
- func QrCode(joinId string, disableBorder bool) (qrcode.QRCode, *SpotifeteError)
- func QrCodeAsJpeg(joinId string, disableBorder bool, size int) (*bytes.Buffer, *SpotifeteError)
- func QrCodeAsPng(joinId string, disableBorder bool, size int) (*bytes.Buffer, *SpotifeteError)
- func RefollowQueuePlaylist(session model.FullListeningSession) *SpotifeteError
- func RemoveFallbackPlaylist(session model.SimpleListeningSession, user model.SimpleUser) *SpotifeteError
- func RequestSong(session model.FullListeningSession, trackId string, username string) (createdRequest model.SongRequest, spotifeteError *SpotifeteError)
- func SearchPlaylist(listeningSession model.FullListeningSession, query string, limit int) ([]model.PlaylistMetadata, *SpotifeteError)
- func SearchTrack(listeningSession model.FullListeningSession, query string, limit int) ([]model.TrackMetadata, *SpotifeteError)
- func SetFallbackPlaylistShuffle(session model.SimpleListeningSession, user model.SimpleUser, shuffle bool) *SpotifeteError
- func StartPollSessionsLoop()
- func UpdateSessionIfNecessary(session model.FullListeningSession) *SpotifeteError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddOrUpdatePlaylistMetadata ¶
func AddOrUpdatePlaylistMetadata(playlist spotify.FullPlaylist) model.PlaylistMetadata
func AddOrUpdateTrackMetadataInTransaction ¶ added in v0.3.0
func ChangeFallbackPlaylist ¶
func ChangeFallbackPlaylist(session model.SimpleListeningSession, user model.SimpleUser, playlistId string) *SpotifeteError
func CloseSession ¶
func CloseSession(user model.SimpleUser, joinId string) *SpotifeteError
func DeleteRequestFromQueue ¶
func DeleteRequestFromQueue(session model.SimpleListeningSession, spotifyTrackId string) *SpotifeteError
func FindFullListeningSession ¶
func FindFullListeningSession(filter model.SimpleListeningSession) *model.FullListeningSession
func FindFullListeningSessions ¶
func FindFullListeningSessions(filter model.SimpleListeningSession) []model.FullListeningSession
func FindSimpleListeningSession ¶
func FindSimpleListeningSession(filter model.SimpleListeningSession) *model.SimpleListeningSession
func FindSimpleListeningSessions ¶
func FindSimpleListeningSessions(filter model.SimpleListeningSession) []model.SimpleListeningSession
func FindSongRequest ¶
func FindSongRequest(filter interface{}) (*model.SongRequest, error)
func FindSongRequestCount ¶ added in v0.3.0
func FindSongRequestCountInTransaction ¶ added in v0.3.0
func FindSongRequests ¶
func FindSongRequests(query *gorm.DB) ([]model.SongRequest, error)
func GetActiveSessionCount ¶
func GetActiveSessionCount() uint
func GetDistinctRequestedTracks ¶
func GetDistinctRequestedTracks(session model.SimpleListeningSession) (trackIds []spotify.ID)
func GetFullQueue ¶ added in v0.3.0
func GetFullQueue(session model.SimpleListeningSession) ([]model.SongRequest, error)
func GetFullQueueInTransaction ¶ added in v0.4.4
func GetFullQueueInTransaction(session model.SimpleListeningSession, tx *gorm.DB) ([]model.SongRequest, error)
func GetLimitedQueue ¶ added in v0.3.0
func GetLimitedQueue(session model.SimpleListeningSession, limit int) ([]model.SongRequest, error)
func GetLimitedQueueInTransaction ¶ added in v0.4.4
func GetLimitedQueueInTransaction(session model.SimpleListeningSession, limit int, tx *gorm.DB) ([]model.SongRequest, error)
func GetPlaylistMetadataBySpotifyPlaylistId ¶
func GetPlaylistMetadataBySpotifyPlaylistId(playlistId string) *model.PlaylistMetadata
func GetQueueLastUpdated ¶
func GetQueueLastUpdated(session model.SimpleListeningSession) time.Time
func GetTotalSessionCount ¶
func GetTotalSessionCount() uint
func GetTrackMetadataBySpotifyTrackIdInTransaction ¶ added in v0.3.0
func GetTrackMetadataBySpotifyTrackIdInTransaction(trackId string, tx *gorm.DB) *model.TrackMetadata
func NewQueuePlaylist ¶
func NewQueuePlaylist(session model.FullListeningSession) *SpotifeteError
func NewSession ¶
func NewSession(user model.SimpleUser, title string) (*model.SimpleListeningSession, *SpotifeteError)
func QrCodeAsJpeg ¶
func QrCodeAsPng ¶
func RefollowQueuePlaylist ¶
func RefollowQueuePlaylist(session model.FullListeningSession) *SpotifeteError
func RemoveFallbackPlaylist ¶
func RemoveFallbackPlaylist(session model.SimpleListeningSession, user model.SimpleUser) *SpotifeteError
func RequestSong ¶
func RequestSong(session model.FullListeningSession, trackId string, username string) (createdRequest model.SongRequest, spotifeteError *SpotifeteError)
func SearchPlaylist ¶
func SearchPlaylist(listeningSession model.FullListeningSession, query string, limit int) ([]model.PlaylistMetadata, *SpotifeteError)
func SearchTrack ¶
func SearchTrack(listeningSession model.FullListeningSession, query string, limit int) ([]model.TrackMetadata, *SpotifeteError)
func SetFallbackPlaylistShuffle ¶
func SetFallbackPlaylistShuffle(session model.SimpleListeningSession, user model.SimpleUser, shuffle bool) *SpotifeteError
func StartPollSessionsLoop ¶
func StartPollSessionsLoop()
func UpdateSessionIfNecessary ¶
func UpdateSessionIfNecessary(session model.FullListeningSession) *SpotifeteError
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.