Documentation
¶
Index ¶
- type AlbumCacheInsertBulkNullableParams
- type AlbumCacheInsertBulkParams
- type AlbumCacheInsertOneParams
- type AlbumCacheUpdateOneParams
- type AlbumData
- type ArtistCacheInsertBulkParams
- type ArtistCacheInsertOneParams
- type ArtistCacheUpdateOneParams
- type ArtistData
- type DBService
- type DBTX
- type GetSpotifyTokensByRoomCodeRow
- type HistoryGetAlbumStreamCountByYearParams
- type HistoryGetAlbumStreamCountByYearRow
- type HistoryGetAllParams
- type HistoryGetAllRow
- type HistoryGetArtistStreamCountByYearParams
- type HistoryGetArtistStreamCountByYearRow
- type HistoryGetByAlbumURIParams
- type HistoryGetByAlbumURIRow
- type HistoryGetByArtistURIParams
- type HistoryGetByArtistURIRow
- type HistoryGetByTrackURIParams
- type HistoryGetByTrackURIRow
- type HistoryGetNewArtistsParams
- type HistoryGetNewArtistsRow
- type HistoryGetRecentArtistStreamsParams
- type HistoryGetRecentArtistStreamsRow
- type HistoryGetTimestampRangeRow
- type HistoryGetTopAlbumsByReleaseParams
- type HistoryGetTopAlbumsByReleaseRow
- type HistoryGetTopAlbumsInTimeframeParams
- type HistoryGetTopAlbumsInTimeframeRow
- type HistoryGetTopAlbumsNotInCacheRow
- type HistoryGetTopArtistsInTimeframeParams
- type HistoryGetTopArtistsInTimeframeRow
- type HistoryGetTopTracksInTimeframeDedupParams
- type HistoryGetTopTracksInTimeframeDedupRow
- type HistoryGetTopTracksInTimeframeParams
- type HistoryGetTopTracksInTimeframeRow
- type HistoryGetTopTracksNotInCacheRow
- type HistoryGetTopTracksWithoutURIsRow
- type HistoryGetTrackStreamCountByYearParams
- type HistoryGetTrackStreamCountByYearRow
- type HistoryGetTrackURIForAlbumParams
- type HistoryInsertBulkNullableParams
- type HistoryInsertBulkParams
- type HistoryInsertOneParams
- type HistorySetURIsForTrackParams
- type MissingArtistURIsRow
- type MissingISRCNumbersRow
- type Queries
- func (q *Queries) AlbumCacheGetByID(ctx context.Context, albumIds []string) ([]*AlbumData, error)
- func (q *Queries) AlbumCacheInsertBulk(ctx context.Context, arg AlbumCacheInsertBulkParams) error
- func (q *Queries) AlbumCacheInsertBulkNullable(ctx context.Context, arg AlbumCacheInsertBulkNullableParams) error
- func (q *Queries) AlbumCacheInsertOne(ctx context.Context, arg AlbumCacheInsertOneParams) error
- func (q *Queries) AlbumCacheUpdateOne(ctx context.Context, arg AlbumCacheUpdateOneParams) error
- func (q *Queries) ArtistCacheGetByID(ctx context.Context, artistIds []string) ([]*ArtistData, error)
- func (q *Queries) ArtistCacheGetPresentIDs(ctx context.Context, artistIds []string) ([]string, error)
- func (q *Queries) ArtistCacheInsertBulk(ctx context.Context, arg []ArtistCacheInsertBulkParams) (int64, error)
- func (q *Queries) ArtistCacheInsertOne(ctx context.Context, arg ArtistCacheInsertOneParams) error
- func (q *Queries) ArtistCacheUpdateOne(ctx context.Context, arg ArtistCacheUpdateOneParams) error
- func (q *Queries) GetSpotifyTokensByRoomCode(ctx context.Context, code string) (*GetSpotifyTokensByRoomCodeRow, error)
- func (q *Queries) HistoryGetAlbumStreamCountByYear(ctx context.Context, arg HistoryGetAlbumStreamCountByYearParams) ([]*HistoryGetAlbumStreamCountByYearRow, error)
- func (q *Queries) HistoryGetAll(ctx context.Context, arg HistoryGetAllParams) ([]*HistoryGetAllRow, error)
- func (q *Queries) HistoryGetArtistStreamCountByYear(ctx context.Context, arg HistoryGetArtistStreamCountByYearParams) ([]*HistoryGetArtistStreamCountByYearRow, error)
- func (q *Queries) HistoryGetByAlbumURI(ctx context.Context, arg HistoryGetByAlbumURIParams) ([]*HistoryGetByAlbumURIRow, error)
- func (q *Queries) HistoryGetByArtistURI(ctx context.Context, arg HistoryGetByArtistURIParams) ([]*HistoryGetByArtistURIRow, error)
- func (q *Queries) HistoryGetByTrackURI(ctx context.Context, arg HistoryGetByTrackURIParams) ([]*HistoryGetByTrackURIRow, error)
- func (q *Queries) HistoryGetNewArtists(ctx context.Context, arg HistoryGetNewArtistsParams) ([]*HistoryGetNewArtistsRow, error)
- func (q *Queries) HistoryGetRecentArtistStreams(ctx context.Context, arg HistoryGetRecentArtistStreamsParams) ([]*HistoryGetRecentArtistStreamsRow, error)
- func (q *Queries) HistoryGetTimestampRange(ctx context.Context, userID uuid.UUID) (*HistoryGetTimestampRangeRow, error)
- func (q *Queries) HistoryGetTopAlbumsByRelease(ctx context.Context, arg HistoryGetTopAlbumsByReleaseParams) ([]*HistoryGetTopAlbumsByReleaseRow, error)
- func (q *Queries) HistoryGetTopAlbumsInTimeframe(ctx context.Context, arg HistoryGetTopAlbumsInTimeframeParams) ([]*HistoryGetTopAlbumsInTimeframeRow, error)
- func (q *Queries) HistoryGetTopAlbumsNotInCache(ctx context.Context) ([]*HistoryGetTopAlbumsNotInCacheRow, error)
- func (q *Queries) HistoryGetTopArtistsInTimeframe(ctx context.Context, arg HistoryGetTopArtistsInTimeframeParams) ([]*HistoryGetTopArtistsInTimeframeRow, error)
- func (q *Queries) HistoryGetTopTracksInTimeframe(ctx context.Context, arg HistoryGetTopTracksInTimeframeParams) ([]*HistoryGetTopTracksInTimeframeRow, error)
- func (q *Queries) HistoryGetTopTracksInTimeframeDedup(ctx context.Context, arg HistoryGetTopTracksInTimeframeDedupParams) ([]*HistoryGetTopTracksInTimeframeDedupRow, error)
- func (q *Queries) HistoryGetTopTracksNotInCache(ctx context.Context) ([]*HistoryGetTopTracksNotInCacheRow, error)
- func (q *Queries) HistoryGetTopTracksWithoutURIs(ctx context.Context) ([]*HistoryGetTopTracksWithoutURIsRow, error)
- func (q *Queries) HistoryGetTrackStreamCountByYear(ctx context.Context, arg HistoryGetTrackStreamCountByYearParams) ([]*HistoryGetTrackStreamCountByYearRow, error)
- func (q *Queries) HistoryGetTrackURIForAlbum(ctx context.Context, arg HistoryGetTrackURIForAlbumParams) (string, error)
- func (q *Queries) HistoryInsertBulk(ctx context.Context, arg HistoryInsertBulkParams) error
- func (q *Queries) HistoryInsertBulkNullable(ctx context.Context, arg HistoryInsertBulkNullableParams) error
- func (q *Queries) HistoryInsertOne(ctx context.Context, arg HistoryInsertOneParams) error
- func (q *Queries) HistorySetURIsForTrack(ctx context.Context, arg HistorySetURIsForTrackParams) error
- func (q *Queries) MissingArtistURIs(ctx context.Context) ([]*MissingArtistURIsRow, error)
- func (q *Queries) MissingISRCNumbers(ctx context.Context) ([]*MissingISRCNumbersRow, error)
- func (q *Queries) RoomAddMember(ctx context.Context, arg RoomAddMemberParams) error
- func (q *Queries) RoomAddMemberByUsername(ctx context.Context, arg RoomAddMemberByUsernameParams) (uuid.UUID, error)
- func (q *Queries) RoomDeleteByID(ctx context.Context, code string) error
- func (q *Queries) RoomGetAllGuests(ctx context.Context, roomID uuid.UUID) ([]*RoomGetAllGuestsRow, error)
- func (q *Queries) RoomGetAllMembers(ctx context.Context, roomID uuid.UUID) ([]*RoomGetAllMembersRow, error)
- func (q *Queries) RoomGetByCode(ctx context.Context, code string) (*RoomGetByCodeRow, error)
- func (q *Queries) RoomGetHostID(ctx context.Context, code string) (uuid.UUID, error)
- func (q *Queries) RoomGetIDByCode(ctx context.Context, code string) (uuid.UUID, error)
- func (q *Queries) RoomGetQueueTracks(ctx context.Context, roomID uuid.UUID) ([]*RoomGetQueueTracksRow, error)
- func (q *Queries) RoomGuestGetName(ctx context.Context, arg RoomGuestGetNameParams) (string, error)
- func (q *Queries) RoomGuestInsert(ctx context.Context, arg RoomGuestInsertParams) (*RoomGuestInsertRow, error)
- func (q *Queries) RoomGuestInsertWithID(ctx context.Context, arg RoomGuestInsertWithIDParams) (*RoomGuestInsertWithIDRow, error)
- func (q *Queries) RoomInsertWithPassword(ctx context.Context, arg RoomInsertWithPasswordParams) (*RoomInsertWithPasswordRow, error)
- func (q *Queries) RoomMarkTracksAsPlayed(ctx context.Context, arg RoomMarkTracksAsPlayedParams) error
- func (q *Queries) RoomRemoveMember(ctx context.Context, arg RoomRemoveMemberParams) error
- func (q *Queries) RoomSetGuestQueueTrack(ctx context.Context, arg RoomSetGuestQueueTrackParams) error
- func (q *Queries) RoomSetIsOpen(ctx context.Context, arg RoomSetIsOpenParams) error
- func (q *Queries) RoomSetMemberQueueTrack(ctx context.Context, arg RoomSetMemberQueueTrackParams) error
- func (q *Queries) RoomSetModerator(ctx context.Context, arg RoomSetModeratorParams) error
- func (q *Queries) RoomUpdatePassword(ctx context.Context, arg RoomUpdatePasswordParams) error
- func (q *Queries) RoomUpdateSpotifyTokens(ctx context.Context, arg RoomUpdateSpotifyTokensParams) error
- func (q *Queries) RoomUserIsMember(ctx context.Context, arg RoomUserIsMemberParams) (bool, error)
- func (q *Queries) RoomValidatePassword(ctx context.Context, arg RoomValidatePasswordParams) (bool, error)
- func (q *Queries) TableSizesAndRows(ctx context.Context) ([]*TableSizesAndRowsRow, error)
- func (q *Queries) TrackCacheGetByID(ctx context.Context, trackIds []string) ([]*TrackData, error)
- func (q *Queries) TrackCacheInsertBulk(ctx context.Context, arg TrackCacheInsertBulkParams) error
- func (q *Queries) TrackCacheInsertBulkNullable(ctx context.Context, arg TrackCacheInsertBulkNullableParams) error
- func (q *Queries) TracksGetPrimaryURIs(ctx context.Context, uris []string) ([]*TracksGetPrimaryURIsRow, error)
- func (q *Queries) UncachedTracks(ctx context.Context) ([]*UncachedTracksRow, error)
- func (q *Queries) UserDeleteFriendRequest(ctx context.Context, arg UserDeleteFriendRequestParams) error
- func (q *Queries) UserDeleteSpotifyInfo(ctx context.Context, id uuid.UUID) error
- func (q *Queries) UserDeleteSpotifyToken(ctx context.Context, userID uuid.UUID) error
- func (q *Queries) UserGetAllWithSpotify(ctx context.Context) ([]*User, error)
- func (q *Queries) UserGetByID(ctx context.Context, id uuid.UUID) (*UserGetByIDRow, error)
- func (q *Queries) UserGetByUsername(ctx context.Context, username string) (*UserGetByUsernameRow, error)
- func (q *Queries) UserGetFriendRequestExists(ctx context.Context, arg UserGetFriendRequestExistsParams) (bool, error)
- func (q *Queries) UserGetFriendSuggestions(ctx context.Context, userID uuid.UUID) ([]*UserGetFriendSuggestionsRow, error)
- func (q *Queries) UserGetFriends(ctx context.Context, userID uuid.UUID) ([]*User, error)
- func (q *Queries) UserGetHostedRooms(ctx context.Context, arg UserGetHostedRoomsParams) ([]*UserGetHostedRoomsRow, error)
- func (q *Queries) UserGetJoinedRooms(ctx context.Context, arg UserGetJoinedRoomsParams) ([]*UserGetJoinedRoomsRow, error)
- func (q *Queries) UserGetReceivedFriendRequests(ctx context.Context, userID uuid.UUID) ([]*UserGetReceivedFriendRequestsRow, error)
- func (q *Queries) UserGetSentFriendRequests(ctx context.Context, userID uuid.UUID) ([]*UserGetSentFriendRequestsRow, error)
- func (q *Queries) UserGetSpotifyTokens(ctx context.Context, userID uuid.UUID) (*UserGetSpotifyTokensRow, error)
- func (q *Queries) UserHasSpotifyHistory(ctx context.Context, userID uuid.UUID) (bool, error)
- func (q *Queries) UserInsertFriend(ctx context.Context, arg UserInsertFriendParams) error
- func (q *Queries) UserInsertWithPassword(ctx context.Context, arg UserInsertWithPasswordParams) (uuid.UUID, error)
- func (q *Queries) UserIsFriends(ctx context.Context, arg UserIsFriendsParams) (bool, error)
- func (q *Queries) UserSendFriendRequest(ctx context.Context, arg UserSendFriendRequestParams) error
- func (q *Queries) UserUpdatePassword(ctx context.Context, arg UserUpdatePasswordParams) error
- func (q *Queries) UserUpdateSpotifyInfo(ctx context.Context, arg UserUpdateSpotifyInfoParams) error
- func (q *Queries) UserUpdateSpotifyTokens(ctx context.Context, arg UserUpdateSpotifyTokensParams) error
- func (q *Queries) UserValidatePassword(ctx context.Context, arg UserValidatePasswordParams) (bool, error)
- func (q *Queries) UsersToFetchHistory(ctx context.Context) ([]*User, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type Room
- type RoomAddMemberByUsernameParams
- type RoomAddMemberParams
- type RoomGetAllGuestsRow
- type RoomGetAllMembersRow
- type RoomGetByCodeRow
- type RoomGetQueueTracksRow
- type RoomGuest
- type RoomGuestGetNameParams
- type RoomGuestInsertParams
- type RoomGuestInsertRow
- type RoomGuestInsertWithIDParams
- type RoomGuestInsertWithIDRow
- type RoomInsertWithPasswordParams
- type RoomInsertWithPasswordRow
- type RoomMarkTracksAsPlayedParams
- type RoomMember
- type RoomPassword
- type RoomQueueTrack
- type RoomRemoveMemberParams
- type RoomSetGuestQueueTrackParams
- type RoomSetIsOpenParams
- type RoomSetMemberQueueTrackParams
- type RoomSetModeratorParams
- type RoomUpdatePasswordParams
- type RoomUpdateSpotifyTokensParams
- type RoomUserIsMemberParams
- type RoomValidatePasswordParams
- type SchemaMigration
- type SpotifyHistory
- type SpotifyPermissionsVersion
- type SpotifyToken
- type TableSizesAndRowsRow
- type TrackArtist
- type TrackArtists
- type TrackCacheInsertBulkNullableParams
- type TrackCacheInsertBulkParams
- type TrackData
- type TrackExternalIDs
- type TracksGetPrimaryURIsRow
- type UncachedTracksRow
- type User
- type UserDeleteFriendRequestParams
- type UserFriend
- type UserFriendRequest
- type UserGetByIDRow
- type UserGetByUsernameRow
- type UserGetFriendRequestExistsParams
- type UserGetFriendSuggestionsRow
- type UserGetHostedRoomsParams
- type UserGetHostedRoomsRow
- type UserGetJoinedRoomsParams
- type UserGetJoinedRoomsRow
- type UserGetReceivedFriendRequestsRow
- type UserGetSentFriendRequestsRow
- type UserGetSpotifyTokensRow
- type UserInsertFriendParams
- type UserInsertWithPasswordParams
- type UserIsFriendsParams
- type UserPassword
- type UserSendFriendRequestParams
- type UserUpdatePasswordParams
- type UserUpdateSpotifyInfoParams
- type UserUpdateSpotifyTokensParams
- type UserValidatePasswordParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlbumCacheInsertBulkNullableParams ¶
type AlbumCacheInsertBulkNullableParams struct {
ID []string `json:"id"`
Uri []string `json:"uri"`
Name []string `json:"name"`
ArtistID []string `json:"artist_id"`
ArtistUri []string `json:"artist_uri"`
ArtistName []string `json:"artist_name"`
AlbumGroup []*string `json:"album_group"`
AlbumType []*string `json:"album_type"`
ImageUrl []*string `json:"image_url"`
ReleaseDate []time.Time `json:"release_date"`
ReleaseDatePrecision []*string `json:"release_date_precision"`
Genres []*string `json:"genres"`
Popularity []int32 `json:"popularity"`
}
type AlbumCacheInsertBulkParams ¶
type AlbumCacheInsertBulkParams struct {
ID []string `json:"id"`
URI []string `json:"uri"`
Name []string `json:"name"`
ArtistID []string `json:"artist_id"`
ArtistURI []string `json:"artist_uri"`
ArtistName []string `json:"artist_name"`
AlbumGroup []string `json:"album_group"`
AlbumType []string `json:"album_type"`
ImageUrl []string `json:"image_url"`
ReleaseDate []pgtype.Date `json:"release_date"`
ReleaseDatePrecision []string `json:"release_date_precision"`
Genres [][]byte `json:"genres"`
Popularity []int32 `json:"popularity"`
}
type AlbumCacheInsertOneParams ¶
type AlbumCacheInsertOneParams struct {
ID string `json:"id"`
URI string `json:"uri"`
Name string `json:"name"`
ArtistID string `json:"artist_id"`
ArtistURI string `json:"artist_uri"`
ArtistName string `json:"artist_name"`
AlbumGroup *string `json:"album_group"`
AlbumType *string `json:"album_type"`
ImageUrl *string `json:"image_url"`
ReleaseDate *time.Time `json:"release_date"`
ReleaseDatePrecision *string `json:"release_date_precision"`
Genres []string `json:"genres"`
Popularity *int32 `json:"popularity"`
Upc *string `json:"upc"`
SpotifyTrackIds []string `json:"spotify_track_ids"`
TrackIsrcs []string `json:"track_isrcs"`
}
type AlbumCacheUpdateOneParams ¶
type AlbumCacheUpdateOneParams struct {
Name string `json:"name"`
ImageUrl *string `json:"image_url"`
Genres []string `json:"genres"`
Popularity *int32 `json:"popularity"`
Upc *string `json:"upc"`
SpotifyTrackIds []string `json:"spotify_track_ids"`
TrackIsrcs []string `json:"track_isrcs"`
ID string `json:"id"`
}
type AlbumData ¶
type AlbumData struct {
ID string `json:"id"`
URI string `json:"uri"`
Name string `json:"name"`
ArtistID string `json:"artist_id"`
ArtistURI string `json:"artist_uri"`
ArtistName string `json:"artist_name"`
AlbumGroup *string `json:"album_group"`
AlbumType *string `json:"album_type"`
ImageUrl *string `json:"image_url"`
ReleaseDate *time.Time `json:"release_date"`
ReleaseDatePrecision *string `json:"release_date_precision"`
Genres []string `json:"genres"`
Popularity *int32 `json:"popularity"`
Upc *string `json:"upc"`
SpotifyTrackIds []string `json:"spotify_track_ids"`
TrackIsrcs []string `json:"track_isrcs"`
}
type ArtistData ¶
type DBService ¶
func (*DBService) Initialize ¶
type DBTX ¶
type DBTX interface {
Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error)
Query(context.Context, string, ...interface{}) (pgx.Rows, error)
QueryRow(context.Context, string, ...interface{}) pgx.Row
CopyFrom(ctx context.Context, tableName pgx.Identifier, columnNames []string, rowSrc pgx.CopyFromSource) (int64, error)
}
type HistoryGetAllParams ¶
type HistoryGetAllRow ¶
type HistoryGetAllRow struct {
Timestamp time.Time `json:"timestamp"`
TrackName string `json:"track_name"`
ArtistName string `json:"artist_name"`
AlbumName string `json:"album_name"`
MsPlayed int32 `json:"ms_played"`
SpotifyTrackUri string `json:"spotify_track_uri"`
SpotifyAlbumUri *string `json:"spotify_album_uri"`
SpotifyArtistUri *string `json:"spotify_artist_uri"`
ImageUrl *string `json:"image_url"`
OtherArtists TrackArtists `json:"other_artists"`
Isrc *string `json:"isrc"`
}
type HistoryGetByAlbumURIRow ¶
type HistoryGetByAlbumURIRow struct {
Timestamp time.Time `json:"timestamp"`
TrackName string `json:"track_name"`
ArtistName string `json:"artist_name"`
AlbumName string `json:"album_name"`
MsPlayed int32 `json:"ms_played"`
SpotifyTrackUri string `json:"spotify_track_uri"`
SpotifyArtistUri *string `json:"spotify_artist_uri"`
SpotifyAlbumUri *string `json:"spotify_album_uri"`
}
type HistoryGetByArtistURIRow ¶
type HistoryGetByArtistURIRow struct {
Timestamp time.Time `json:"timestamp"`
TrackName string `json:"track_name"`
AlbumName string `json:"album_name"`
MsPlayed int32 `json:"ms_played"`
SpotifyTrackUri string `json:"spotify_track_uri"`
SpotifyAlbumUri *string `json:"spotify_album_uri"`
Isrc *string `json:"isrc"`
}
type HistoryGetByTrackURIRow ¶
type HistoryGetByTrackURIRow struct {
Timestamp time.Time `json:"timestamp"`
TrackName string `json:"track_name"`
ArtistName string `json:"artist_name"`
AlbumName string `json:"album_name"`
MsPlayed int32 `json:"ms_played"`
SpotifyTrackUri string `json:"spotify_track_uri"`
SpotifyArtistUri *string `json:"spotify_artist_uri"`
SpotifyAlbumUri *string `json:"spotify_album_uri"`
Isrc *string `json:"isrc"`
}
type HistoryGetNewArtistsRow ¶
type HistoryGetTopTracksInTimeframeDedupParams ¶
type HistoryGetTopTracksInTimeframeDedupParams struct {
UserID uuid.UUID `json:"user_id"`
MinMsPlayed int32 `json:"min_ms_played"`
StartDate time.Time `json:"start_date"`
EndDate time.Time `json:"end_date"`
ArtistUris []string `json:"artist_uris"`
AlbumURI *string `json:"album_uri"`
MaxTracks int32 `json:"max_tracks"`
}
type HistoryGetTopTracksInTimeframeParams ¶
type HistoryGetTopTracksInTimeframeParams struct {
UserID uuid.UUID `json:"user_id"`
MinMsPlayed int32 `json:"min_ms_played"`
StartDate time.Time `json:"start_date"`
EndDate time.Time `json:"end_date"`
ArtistUris []string `json:"artist_uris"`
AlbumURI *string `json:"album_uri"`
MaxTracks int32 `json:"max_tracks"`
}
type HistoryInsertBulkNullableParams ¶
type HistoryInsertBulkNullableParams struct {
UserIds []uuid.UUID `json:"user_ids"`
Timestamp []time.Time `json:"timestamp"`
Platform []string `json:"platform"`
MsPlayed []int32 `json:"ms_played"`
ConnCountry []string `json:"conn_country"`
IpAddr []*string `json:"ip_addr"`
UserAgent []*string `json:"user_agent"`
TrackName []string `json:"track_name"`
ArtistName []string `json:"artist_name"`
AlbumName []string `json:"album_name"`
SpotifyTrackUri []string `json:"spotify_track_uri"`
SpotifyArtistUri []*string `json:"spotify_artist_uri"`
SpotifyAlbumUri []*string `json:"spotify_album_uri"`
ReasonStart []*string `json:"reason_start"`
ReasonEnd []*string `json:"reason_end"`
Shuffle []bool `json:"shuffle"`
Skipped []*bool `json:"skipped"`
Offline []bool `json:"offline"`
IncognitoMode []bool `json:"incognito_mode"`
FromHistory []bool `json:"from_history"`
ISRC []*string `json:"isrc"`
}
type HistoryInsertBulkParams ¶
type HistoryInsertBulkParams struct {
UserIds []uuid.UUID `json:"user_ids"`
Timestamp []time.Time `json:"timestamp"`
Platform []string `json:"platform"`
MsPlayed []int32 `json:"ms_played"`
ConnCountry []string `json:"conn_country"`
IpAddr []string `json:"ip_addr"`
UserAgent []string `json:"user_agent"`
TrackName []string `json:"track_name"`
ArtistName []string `json:"artist_name"`
AlbumName []string `json:"album_name"`
SpotifyTrackUri []string `json:"spotify_track_uri"`
SpotifyArtistUri []string `json:"spotify_artist_uri"`
SpotifyAlbumUri []string `json:"spotify_album_uri"`
ReasonStart []string `json:"reason_start"`
ReasonEnd []string `json:"reason_end"`
Shuffle []bool `json:"shuffle"`
Skipped []bool `json:"skipped"`
Offline []bool `json:"offline"`
IncognitoMode []bool `json:"incognito_mode"`
FromHistory []bool `json:"from_history"`
Isrc []string `json:"isrc"`
}
type HistoryInsertOneParams ¶
type HistoryInsertOneParams struct {
UserID uuid.UUID `json:"user_id"`
Timestamp time.Time `json:"timestamp"`
Platform string `json:"platform"`
MsPlayed int32 `json:"ms_played"`
ConnCountry string `json:"conn_country"`
IpAddr *string `json:"ip_addr"`
UserAgent *string `json:"user_agent"`
TrackName string `json:"track_name"`
ArtistName string `json:"artist_name"`
AlbumName string `json:"album_name"`
SpotifyTrackUri string `json:"spotify_track_uri"`
SpotifyArtistUri *string `json:"spotify_artist_uri"`
SpotifyAlbumUri *string `json:"spotify_album_uri"`
ReasonStart *string `json:"reason_start"`
ReasonEnd *string `json:"reason_end"`
Shuffle bool `json:"shuffle"`
Skipped *bool `json:"skipped"`
Offline bool `json:"offline"`
OfflineTimestamp *time.Time `json:"offline_timestamp"`
IncognitoMode bool `json:"incognito_mode"`
FromHistory bool `json:"from_history"`
Isrc *string `json:"isrc"`
}
type MissingArtistURIsRow ¶
type MissingISRCNumbersRow ¶
type MissingISRCNumbersRow struct {
UserID uuid.UUID `json:"user_id"`
Timestamp time.Time `json:"timestamp"`
Platform string `json:"platform"`
MsPlayed int32 `json:"ms_played"`
ConnCountry string `json:"conn_country"`
IpAddr *string `json:"ip_addr"`
UserAgent *string `json:"user_agent"`
TrackName string `json:"track_name"`
ArtistName string `json:"artist_name"`
AlbumName string `json:"album_name"`
SpotifyTrackUri string `json:"spotify_track_uri"`
ReasonStart *string `json:"reason_start"`
ReasonEnd *string `json:"reason_end"`
Shuffle bool `json:"shuffle"`
Skipped *bool `json:"skipped"`
Offline bool `json:"offline"`
OfflineTimestamp *time.Time `json:"offline_timestamp"`
IncognitoMode bool `json:"incognito_mode"`
SpotifyArtistUri *string `json:"spotify_artist_uri"`
SpotifyAlbumUri *string `json:"spotify_album_uri"`
FromHistory bool `json:"from_history"`
Isrc *string `json:"isrc"`
Isrc_2 *string `json:"isrc_2"`
}
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AlbumCacheGetByID ¶
func (*Queries) AlbumCacheInsertBulk ¶
func (q *Queries) AlbumCacheInsertBulk(ctx context.Context, arg AlbumCacheInsertBulkParams) error
func (*Queries) AlbumCacheInsertBulkNullable ¶
func (q *Queries) AlbumCacheInsertBulkNullable(ctx context.Context, arg AlbumCacheInsertBulkNullableParams) error
func (*Queries) AlbumCacheInsertOne ¶
func (q *Queries) AlbumCacheInsertOne(ctx context.Context, arg AlbumCacheInsertOneParams) error
func (*Queries) AlbumCacheUpdateOne ¶
func (q *Queries) AlbumCacheUpdateOne(ctx context.Context, arg AlbumCacheUpdateOneParams) error
func (*Queries) ArtistCacheGetByID ¶
func (*Queries) ArtistCacheGetPresentIDs ¶
func (*Queries) ArtistCacheInsertBulk ¶
func (*Queries) ArtistCacheInsertOne ¶
func (q *Queries) ArtistCacheInsertOne(ctx context.Context, arg ArtistCacheInsertOneParams) error
func (*Queries) ArtistCacheUpdateOne ¶
func (q *Queries) ArtistCacheUpdateOne(ctx context.Context, arg ArtistCacheUpdateOneParams) error
func (*Queries) GetSpotifyTokensByRoomCode ¶
func (*Queries) HistoryGetAlbumStreamCountByYear ¶
func (q *Queries) HistoryGetAlbumStreamCountByYear(ctx context.Context, arg HistoryGetAlbumStreamCountByYearParams) ([]*HistoryGetAlbumStreamCountByYearRow, error)
func (*Queries) HistoryGetAll ¶
func (q *Queries) HistoryGetAll(ctx context.Context, arg HistoryGetAllParams) ([]*HistoryGetAllRow, error)
func (*Queries) HistoryGetArtistStreamCountByYear ¶
func (q *Queries) HistoryGetArtistStreamCountByYear(ctx context.Context, arg HistoryGetArtistStreamCountByYearParams) ([]*HistoryGetArtistStreamCountByYearRow, error)
func (*Queries) HistoryGetByAlbumURI ¶
func (q *Queries) HistoryGetByAlbumURI(ctx context.Context, arg HistoryGetByAlbumURIParams) ([]*HistoryGetByAlbumURIRow, error)
func (*Queries) HistoryGetByArtistURI ¶
func (q *Queries) HistoryGetByArtistURI(ctx context.Context, arg HistoryGetByArtistURIParams) ([]*HistoryGetByArtistURIRow, error)
func (*Queries) HistoryGetByTrackURI ¶
func (q *Queries) HistoryGetByTrackURI(ctx context.Context, arg HistoryGetByTrackURIParams) ([]*HistoryGetByTrackURIRow, error)
func (*Queries) HistoryGetNewArtists ¶
func (q *Queries) HistoryGetNewArtists(ctx context.Context, arg HistoryGetNewArtistsParams) ([]*HistoryGetNewArtistsRow, error)
func (*Queries) HistoryGetRecentArtistStreams ¶
func (q *Queries) HistoryGetRecentArtistStreams(ctx context.Context, arg HistoryGetRecentArtistStreamsParams) ([]*HistoryGetRecentArtistStreamsRow, error)
func (*Queries) HistoryGetTimestampRange ¶
func (*Queries) HistoryGetTopAlbumsByRelease ¶
func (q *Queries) HistoryGetTopAlbumsByRelease(ctx context.Context, arg HistoryGetTopAlbumsByReleaseParams) ([]*HistoryGetTopAlbumsByReleaseRow, error)
func (*Queries) HistoryGetTopAlbumsInTimeframe ¶
func (q *Queries) HistoryGetTopAlbumsInTimeframe(ctx context.Context, arg HistoryGetTopAlbumsInTimeframeParams) ([]*HistoryGetTopAlbumsInTimeframeRow, error)
func (*Queries) HistoryGetTopAlbumsNotInCache ¶
func (q *Queries) HistoryGetTopAlbumsNotInCache(ctx context.Context) ([]*HistoryGetTopAlbumsNotInCacheRow, error)
func (*Queries) HistoryGetTopArtistsInTimeframe ¶
func (q *Queries) HistoryGetTopArtistsInTimeframe(ctx context.Context, arg HistoryGetTopArtistsInTimeframeParams) ([]*HistoryGetTopArtistsInTimeframeRow, error)
func (*Queries) HistoryGetTopTracksInTimeframe ¶
func (q *Queries) HistoryGetTopTracksInTimeframe(ctx context.Context, arg HistoryGetTopTracksInTimeframeParams) ([]*HistoryGetTopTracksInTimeframeRow, error)
func (*Queries) HistoryGetTopTracksInTimeframeDedup ¶
func (q *Queries) HistoryGetTopTracksInTimeframeDedup(ctx context.Context, arg HistoryGetTopTracksInTimeframeDedupParams) ([]*HistoryGetTopTracksInTimeframeDedupRow, error)
func (*Queries) HistoryGetTopTracksNotInCache ¶
func (q *Queries) HistoryGetTopTracksNotInCache(ctx context.Context) ([]*HistoryGetTopTracksNotInCacheRow, error)
func (*Queries) HistoryGetTopTracksWithoutURIs ¶
func (q *Queries) HistoryGetTopTracksWithoutURIs(ctx context.Context) ([]*HistoryGetTopTracksWithoutURIsRow, error)
func (*Queries) HistoryGetTrackStreamCountByYear ¶
func (q *Queries) HistoryGetTrackStreamCountByYear(ctx context.Context, arg HistoryGetTrackStreamCountByYearParams) ([]*HistoryGetTrackStreamCountByYearRow, error)
func (*Queries) HistoryGetTrackURIForAlbum ¶
func (*Queries) HistoryInsertBulk ¶
func (q *Queries) HistoryInsertBulk(ctx context.Context, arg HistoryInsertBulkParams) error
func (*Queries) HistoryInsertBulkNullable ¶
func (q *Queries) HistoryInsertBulkNullable(ctx context.Context, arg HistoryInsertBulkNullableParams) error
func (*Queries) HistoryInsertOne ¶
func (q *Queries) HistoryInsertOne(ctx context.Context, arg HistoryInsertOneParams) error
func (*Queries) HistorySetURIsForTrack ¶
func (q *Queries) HistorySetURIsForTrack(ctx context.Context, arg HistorySetURIsForTrackParams) error
func (*Queries) MissingArtistURIs ¶
func (q *Queries) MissingArtistURIs(ctx context.Context) ([]*MissingArtistURIsRow, error)
func (*Queries) MissingISRCNumbers ¶
func (q *Queries) MissingISRCNumbers(ctx context.Context) ([]*MissingISRCNumbersRow, error)
func (*Queries) RoomAddMember ¶
func (q *Queries) RoomAddMember(ctx context.Context, arg RoomAddMemberParams) error
func (*Queries) RoomAddMemberByUsername ¶
func (*Queries) RoomDeleteByID ¶
func (*Queries) RoomGetAllGuests ¶
func (*Queries) RoomGetAllMembers ¶
func (*Queries) RoomGetByCode ¶
func (*Queries) RoomGetHostID ¶
func (*Queries) RoomGetIDByCode ¶
func (*Queries) RoomGetQueueTracks ¶
func (*Queries) RoomGuestGetName ¶
func (*Queries) RoomGuestInsert ¶
func (q *Queries) RoomGuestInsert(ctx context.Context, arg RoomGuestInsertParams) (*RoomGuestInsertRow, error)
func (*Queries) RoomGuestInsertWithID ¶
func (q *Queries) RoomGuestInsertWithID(ctx context.Context, arg RoomGuestInsertWithIDParams) (*RoomGuestInsertWithIDRow, error)
func (*Queries) RoomInsertWithPassword ¶
func (q *Queries) RoomInsertWithPassword(ctx context.Context, arg RoomInsertWithPasswordParams) (*RoomInsertWithPasswordRow, error)
func (*Queries) RoomMarkTracksAsPlayed ¶
func (q *Queries) RoomMarkTracksAsPlayed(ctx context.Context, arg RoomMarkTracksAsPlayedParams) error
func (*Queries) RoomRemoveMember ¶
func (q *Queries) RoomRemoveMember(ctx context.Context, arg RoomRemoveMemberParams) error
func (*Queries) RoomSetGuestQueueTrack ¶
func (q *Queries) RoomSetGuestQueueTrack(ctx context.Context, arg RoomSetGuestQueueTrackParams) error
func (*Queries) RoomSetIsOpen ¶
func (q *Queries) RoomSetIsOpen(ctx context.Context, arg RoomSetIsOpenParams) error
func (*Queries) RoomSetMemberQueueTrack ¶
func (q *Queries) RoomSetMemberQueueTrack(ctx context.Context, arg RoomSetMemberQueueTrackParams) error
func (*Queries) RoomSetModerator ¶
func (q *Queries) RoomSetModerator(ctx context.Context, arg RoomSetModeratorParams) error
func (*Queries) RoomUpdatePassword ¶
func (q *Queries) RoomUpdatePassword(ctx context.Context, arg RoomUpdatePasswordParams) error
func (*Queries) RoomUpdateSpotifyTokens ¶
func (q *Queries) RoomUpdateSpotifyTokens(ctx context.Context, arg RoomUpdateSpotifyTokensParams) error
func (*Queries) RoomUserIsMember ¶
func (*Queries) RoomValidatePassword ¶
func (*Queries) TableSizesAndRows ¶
func (q *Queries) TableSizesAndRows(ctx context.Context) ([]*TableSizesAndRowsRow, error)
func (*Queries) TrackCacheGetByID ¶
func (*Queries) TrackCacheInsertBulk ¶
func (q *Queries) TrackCacheInsertBulk(ctx context.Context, arg TrackCacheInsertBulkParams) error
func (*Queries) TrackCacheInsertBulkNullable ¶
func (q *Queries) TrackCacheInsertBulkNullable(ctx context.Context, arg TrackCacheInsertBulkNullableParams) error
func (*Queries) TracksGetPrimaryURIs ¶
func (*Queries) UncachedTracks ¶
func (q *Queries) UncachedTracks(ctx context.Context) ([]*UncachedTracksRow, error)
func (*Queries) UserDeleteFriendRequest ¶
func (q *Queries) UserDeleteFriendRequest(ctx context.Context, arg UserDeleteFriendRequestParams) error
func (*Queries) UserDeleteSpotifyInfo ¶
func (*Queries) UserDeleteSpotifyToken ¶
func (*Queries) UserGetAllWithSpotify ¶
func (*Queries) UserGetByID ¶
func (*Queries) UserGetByUsername ¶
func (*Queries) UserGetFriendRequestExists ¶
func (*Queries) UserGetFriendSuggestions ¶
func (*Queries) UserGetFriends ¶
func (*Queries) UserGetHostedRooms ¶
func (q *Queries) UserGetHostedRooms(ctx context.Context, arg UserGetHostedRoomsParams) ([]*UserGetHostedRoomsRow, error)
func (*Queries) UserGetJoinedRooms ¶
func (q *Queries) UserGetJoinedRooms(ctx context.Context, arg UserGetJoinedRoomsParams) ([]*UserGetJoinedRoomsRow, error)
func (*Queries) UserGetReceivedFriendRequests ¶
func (*Queries) UserGetSentFriendRequests ¶
func (*Queries) UserGetSpotifyTokens ¶
func (*Queries) UserHasSpotifyHistory ¶
func (*Queries) UserInsertFriend ¶
func (q *Queries) UserInsertFriend(ctx context.Context, arg UserInsertFriendParams) error
func (*Queries) UserInsertWithPassword ¶
func (*Queries) UserIsFriends ¶
func (*Queries) UserSendFriendRequest ¶
func (q *Queries) UserSendFriendRequest(ctx context.Context, arg UserSendFriendRequestParams) error
func (*Queries) UserUpdatePassword ¶
func (q *Queries) UserUpdatePassword(ctx context.Context, arg UserUpdatePasswordParams) error
func (*Queries) UserUpdateSpotifyInfo ¶
func (q *Queries) UserUpdateSpotifyInfo(ctx context.Context, arg UserUpdateSpotifyInfoParams) error
func (*Queries) UserUpdateSpotifyTokens ¶
func (q *Queries) UserUpdateSpotifyTokens(ctx context.Context, arg UserUpdateSpotifyTokensParams) error
func (*Queries) UserValidatePassword ¶
func (*Queries) UsersToFetchHistory ¶
type RoomAddMemberParams ¶
type RoomGetAllGuestsRow ¶
type RoomGetAllMembersRow ¶
type RoomGetAllMembersRow struct {
UserID uuid.UUID `json:"user_id"`
Username string `json:"username"`
DisplayName string `json:"display_name"`
SpotifyName *string `json:"spotify_name"`
SpotifyImageUrl *string `json:"spotify_image_url"`
IsModerator bool `json:"is_moderator"`
QueuedTracks int32 `json:"queued_tracks"`
}
type RoomGetByCodeRow ¶
type RoomGetByCodeRow struct {
ID uuid.UUID `json:"id"`
Name string `json:"name"`
HostID uuid.UUID `json:"host_id"`
HostUsername string `json:"host_username"`
HostDisplay string `json:"host_display"`
HostSpotifyName *string `json:"host_spotify_name"`
HostImage *string `json:"host_image"`
Code string `json:"code"`
Created time.Time `json:"created"`
}
type RoomGetQueueTracksRow ¶
type RoomGuestGetNameParams ¶
type RoomGuestInsertParams ¶
type RoomGuestInsertRow ¶
type RoomMember ¶
type RoomPassword ¶
type RoomQueueTrack ¶
type RoomRemoveMemberParams ¶
type RoomSetIsOpenParams ¶
type RoomSetModeratorParams ¶
type RoomUserIsMemberParams ¶
type SchemaMigration ¶
type SpotifyHistory ¶
type SpotifyHistory struct {
UserID uuid.UUID `json:"user_id"`
Timestamp time.Time `json:"timestamp"`
Platform string `json:"platform"`
MsPlayed int32 `json:"ms_played"`
ConnCountry string `json:"conn_country"`
IpAddr *string `json:"ip_addr"`
UserAgent *string `json:"user_agent"`
TrackName string `json:"track_name"`
ArtistName string `json:"artist_name"`
AlbumName string `json:"album_name"`
SpotifyTrackUri string `json:"spotify_track_uri"`
ReasonStart *string `json:"reason_start"`
ReasonEnd *string `json:"reason_end"`
Shuffle bool `json:"shuffle"`
Skipped *bool `json:"skipped"`
Offline bool `json:"offline"`
OfflineTimestamp *time.Time `json:"offline_timestamp"`
IncognitoMode bool `json:"incognito_mode"`
SpotifyArtistUri *string `json:"spotify_artist_uri"`
SpotifyAlbumUri *string `json:"spotify_album_uri"`
FromHistory bool `json:"from_history"`
Isrc *string `json:"isrc"`
}
type SpotifyToken ¶
type SpotifyToken struct {
ID uuid.UUID `json:"id"`
UserID uuid.UUID `json:"user_id"`
EncryptedAccessToken []byte `json:"encrypted_access_token"`
AccessTokenExpiry time.Time `json:"access_token_expiry"`
EncryptedRefreshToken []byte `json:"encrypted_refresh_token"`
PermissionsVersion int64 `json:"permissions_version"`
}
type TableSizesAndRowsRow ¶
type TrackArtist ¶
type TrackArtists ¶
type TrackArtists []TrackArtist
func (*TrackArtists) Scan ¶
func (a *TrackArtists) Scan(src interface{}) (err error)
type TrackCacheInsertBulkNullableParams ¶
type TrackCacheInsertBulkNullableParams struct {
ID []string `json:"id"`
Uri []string `json:"uri"`
Name []string `json:"name"`
AlbumID []string `json:"album_id"`
AlbumUri []string `json:"album_uri"`
AlbumName []string `json:"album_name"`
ArtistID []string `json:"artist_id"`
ArtistUri []string `json:"artist_uri"`
ArtistName []string `json:"artist_name"`
ImageUrl []*string `json:"image_url"`
OtherArtists []*string `json:"other_artists"`
DurationMs []int32 `json:"duration_ms"`
Popularity []int32 `json:"popularity"`
Explicit []bool `json:"explicit"`
PreviewUrl []string `json:"preview_url"`
DiscNumber []int32 `json:"disc_number"`
TrackNumber []int32 `json:"track_number"`
Type []string `json:"type"`
ExternalIds []*string `json:"external_ids"`
Isrc []*string `json:"isrc"`
}
type TrackCacheInsertBulkParams ¶
type TrackCacheInsertBulkParams struct {
ID []string `json:"id"`
URI []string `json:"uri"`
Name []string `json:"name"`
AlbumID []string `json:"album_id"`
AlbumURI []string `json:"album_uri"`
AlbumName []string `json:"album_name"`
ArtistID []string `json:"artist_id"`
ArtistURI []string `json:"artist_uri"`
ArtistName []string `json:"artist_name"`
ImageUrl []string `json:"image_url"`
OtherArtists [][]byte `json:"other_artists"`
DurationMs []int32 `json:"duration_ms"`
Popularity []int32 `json:"popularity"`
Explicit []bool `json:"explicit"`
PreviewUrl []string `json:"preview_url"`
DiscNumber []int32 `json:"disc_number"`
TrackNumber []int32 `json:"track_number"`
Type []string `json:"type"`
ExternalIds [][]byte `json:"external_ids"`
Isrc []string `json:"isrc"`
}
type TrackData ¶
type TrackData struct {
ID string `json:"id"`
URI string `json:"uri"`
Name string `json:"name"`
AlbumID string `json:"album_id"`
AlbumURI string `json:"album_uri"`
AlbumName string `json:"album_name"`
ArtistID string `json:"artist_id"`
ArtistURI string `json:"artist_uri"`
ArtistName string `json:"artist_name"`
ImageUrl *string `json:"image_url"`
OtherArtists TrackArtists `json:"other_artists"`
DurationMs int32 `json:"duration_ms"`
Popularity int32 `json:"popularity"`
Explicit bool `json:"explicit"`
PreviewUrl string `json:"preview_url"`
DiscNumber int32 `json:"disc_number"`
TrackNumber int32 `json:"track_number"`
Type string `json:"type"`
ExternalIds TrackExternalIDs `json:"external_ids"`
Isrc *string `json:"isrc"`
}
type TrackExternalIDs ¶
func (*TrackExternalIDs) Scan ¶
func (ids *TrackExternalIDs) Scan(src interface{}) (err error)
type TracksGetPrimaryURIsRow ¶
type UncachedTracksRow ¶
type UserFriend ¶
type UserFriendRequest ¶
type UserGetByIDRow ¶
type UserGetByUsernameRow ¶
type UserGetHostedRoomsRow ¶
type UserGetHostedRoomsRow struct {
ID uuid.UUID `json:"id"`
Name string `json:"name"`
Code string `json:"code"`
Created time.Time `json:"created"`
HostID uuid.UUID `json:"host_id"`
HostUsername string `json:"host_username"`
HostDisplayName string `json:"host_display_name"`
HostSpotifyImageUrl *string `json:"host_spotify_image_url"`
}
type UserGetJoinedRoomsRow ¶
type UserGetJoinedRoomsRow struct {
ID uuid.UUID `json:"id"`
Name string `json:"name"`
Code string `json:"code"`
Created time.Time `json:"created"`
HostID uuid.UUID `json:"host_id"`
HostUsername string `json:"host_username"`
HostDisplayName string `json:"host_display_name"`
HostSpotifyImageUrl *string `json:"host_spotify_image_url"`
}
type UserGetSpotifyTokensRow ¶
type UserInsertFriendParams ¶
type UserIsFriendsParams ¶
type UserPassword ¶
Click to show internal directories.
Click to hide internal directories.