Documentation ¶
Index ¶
- type HistoryItem
- type ListenListOptions
- type SpotifyHistoryBackend
- func (b *SpotifyHistoryBackend) ExportListens(oldestTimestamp time.Time, results chan models.ListensResult, ...)
- func (b *SpotifyHistoryBackend) FromConfig(config *config.ServiceConfig) models.Backend
- func (b *SpotifyHistoryBackend) Name() string
- func (b *SpotifyHistoryBackend) Options() []models.BackendOption
- type StreamingHistory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HistoryItem ¶
type HistoryItem struct { Timestamp time.Time `json:"ts"` UserName string `json:"username"` Platform string `json:"platform"` MillisecondsPlayed int `json:"ms_played"` ConnCountry string `json:"conn_country"` IpAddrDecrypted string `json:"ip_addr_decrypted"` UserAgentDecrypted string `json:"user_agent_decrypted"` MasterMetadataTrackName string `json:"master_metadata_track_name"` MasterMetadataAlbumArtistName string `json:"master_metadata_album_artist_name"` MasterMetadataAlbumName string `json:"master_metadata_album_album_name"` SpotifyTrackUri string `json:"spotify_track_uri"` EpisodeName string `json:"episode_name"` EpisodeShowName string `json:"episode_show_name"` SpotifyEpisodeUri string `json:"spotify_episode_uri"` ReasonStart string `json:"reason_start"` ReasonEnd string `json:"reason_end"` Shuffle bool `json:"shuffle"` Skipped bool `json:"skipped"` Offline bool `json:"offline"` OfflineTimestamp int `json:"offline_timestamp"` IncognitoMode bool `json:"incognito_mode"` }
func (HistoryItem) AsListen ¶
func (i HistoryItem) AsListen() models.Listen
type ListenListOptions ¶
type SpotifyHistoryBackend ¶
type SpotifyHistoryBackend struct {
// contains filtered or unexported fields
}
func (*SpotifyHistoryBackend) ExportListens ¶
func (b *SpotifyHistoryBackend) ExportListens(oldestTimestamp time.Time, results chan models.ListensResult, progress chan models.Progress)
func (*SpotifyHistoryBackend) FromConfig ¶
func (b *SpotifyHistoryBackend) FromConfig(config *config.ServiceConfig) models.Backend
func (*SpotifyHistoryBackend) Name ¶
func (b *SpotifyHistoryBackend) Name() string
func (*SpotifyHistoryBackend) Options ¶
func (b *SpotifyHistoryBackend) Options() []models.BackendOption
type StreamingHistory ¶
type StreamingHistory []HistoryItem
func (*StreamingHistory) AsListenList ¶
func (h *StreamingHistory) AsListenList(opt ListenListOptions) models.ListensList
Click to show internal directories.
Click to hide internal directories.