Documentation ¶
Index ¶
- Constants
- type Localization
- type RYMAlbumGenerator
- type RateYourMusic
- func (rym RateYourMusic) ConvertRateYourMusicAlbums(rawAlbums []RawRateYourMusicRating) (meta.RateYourMusicAlbumConversionMap, error)
- func (rym RateYourMusic) CountRatings(settings *model.RatingsSettings) (int, error)
- func (rym RateYourMusic) GetArtist(keywords string) (*db.RateYourMusicAlbum, error)
- func (rym RateYourMusic) GetRatings(settings *model.RatingsSettings) ([]db.Rating, error)
- func (rym RateYourMusic) ParseRYMSExport(csvString string) ([]RawRateYourMusicRating, error)
- func (rym RateYourMusic) ResetRatings(user db.User)
- func (rym RateYourMusic) SaveRatings(ratings []RawRateYourMusicRating, ...) ([]db.Rating, error)
- type RateYourMusicAlbumToUpdate
- type RawRateYourMusicRating
Constants ¶
View Source
const ( RYMID = 0 FirstName = 1 LastName = 2 FirstNameLocalized = 3 LastNameLocalized = 4 Title = 5 ReleaseYear = 6 Rating = 7 )
RYM Album, First Name,Last Name,First Name localized, Last Name localized,Title,Release_Date,Rating,Ownership,Purchase Date,Media Type,Review
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Localization ¶
type RYMAlbumGenerator ¶
type RYMAlbumGenerator struct {
// contains filtered or unexported fields
}
func CreateAlbumGenerator ¶
func CreateAlbumGenerator() *RYMAlbumGenerator
func (*RYMAlbumGenerator) AddAlbumToEnsureExists ¶
func (ag *RYMAlbumGenerator) AddAlbumToEnsureExists(artistName, albumName string)
func (*RYMAlbumGenerator) EnsureAlbumsExist ¶
func (ag *RYMAlbumGenerator) EnsureAlbumsExist()
type RateYourMusic ¶
type RateYourMusic struct {
// contains filtered or unexported fields
}
RateYourMusic holds methods for interacting with the cached rateyourmusic data
func CreateService ¶
func CreateService() *RateYourMusic
CreateService creates an instance of the indexing service object
func (RateYourMusic) ConvertRateYourMusicAlbums ¶
func (rym RateYourMusic) ConvertRateYourMusicAlbums(rawAlbums []RawRateYourMusicRating) (meta.RateYourMusicAlbumConversionMap, error)
func (RateYourMusic) CountRatings ¶
func (rym RateYourMusic) CountRatings(settings *model.RatingsSettings) (int, error)
func (RateYourMusic) GetArtist ¶
func (rym RateYourMusic) GetArtist(keywords string) (*db.RateYourMusicAlbum, error)
func (RateYourMusic) GetRatings ¶
func (rym RateYourMusic) GetRatings(settings *model.RatingsSettings) ([]db.Rating, error)
func (RateYourMusic) ParseRYMSExport ¶
func (rym RateYourMusic) ParseRYMSExport(csvString string) ([]RawRateYourMusicRating, error)
func (RateYourMusic) ResetRatings ¶
func (rym RateYourMusic) ResetRatings(user db.User)
func (RateYourMusic) SaveRatings ¶
func (rym RateYourMusic) SaveRatings(ratings []RawRateYourMusicRating, rymsAlbumsMap meta.RateYourMusicAlbumConversionMap, user db.User) ([]db.Rating, error)
type RateYourMusicAlbumToUpdate ¶
type RateYourMusicAlbumToUpdate struct {
// contains filtered or unexported fields
}
type RawRateYourMusicRating ¶
Click to show internal directories.
Click to hide internal directories.