Documentation
¶
Index ¶
- type ArtistReleasesRepository
- type ArtistReleasesService
- type ArtistRepository
- type ArtistService
- type LabelReleasesRepository
- type LabelReleasesService
- type LabelRepository
- type LabelService
- type MasterRepository
- type MasterService
- type MasterVersionsRepository
- type MasterVersionsService
- type ReleaseRatingRepository
- type ReleaseRatingService
- type ReleaseRepository
- type ReleaseService
- type SearchService
- type SearchServiceRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArtistReleasesRepository ¶
type ArtistReleasesRepository interface {
FindArtistReleasesByID(id int64, pagination models.PaginationRepository) (*models.ArtistReleases, error) // , pagination models.PaginationRepository
}
ArtistReleasesRepository represents the contract
func NewArtistReleasesService ¶
func NewArtistReleasesService(url, uri, useragent, token string) ArtistReleasesRepository
NewArtistReleasesService is a constructor
type ArtistReleasesService ¶
type ArtistReleasesService struct {
// contains filtered or unexported fields
}
ArtistReleasesService is a struct
func (*ArtistReleasesService) FindArtistReleasesByID ¶
func (rs *ArtistReleasesService) FindArtistReleasesByID(id int64, pagination models.PaginationRepository) (*models.ArtistReleases, error)
FindArtistReleasesByID is a method
type ArtistRepository ¶
ArtistRepository represents the contract between
func NewArtistService ¶
func NewArtistService(url, uri, useragent, token string) ArtistRepository
NewArtistService is a object
type ArtistService ¶
type ArtistService struct {
// contains filtered or unexported fields
}
ArtistService is a struct
func (*ArtistService) FindArtistByID ¶
func (rs *ArtistService) FindArtistByID(id int64) (*models.Artist, error)
FindArtistByID is a method
type LabelReleasesRepository ¶
type LabelReleasesRepository interface {
FindLabelReleasesByID(id int64, pagination models.PaginationRepository) (*models.LabelReleases, error)
}
LabelReleasesRepository represents the contract
func NewLabelReleasesService ¶
func NewLabelReleasesService(url, uri, useragent, token string) LabelReleasesRepository
NewLabelReleasesService is a constructor
type LabelReleasesService ¶
type LabelReleasesService struct {
// contains filtered or unexported fields
}
LabelReleasesService is a struct
func (*LabelReleasesService) FindLabelReleasesByID ¶
func (rs *LabelReleasesService) FindLabelReleasesByID(id int64, pagination models.PaginationRepository) (*models.LabelReleases, error)
FindLabelReleasesByID is a method
type LabelRepository ¶
LabelRepository represents the contract between
func NewLabelService ¶
func NewLabelService(url, uri, useragent, token string) LabelRepository
NewLabelService is a object
type LabelService ¶
type LabelService struct {
// contains filtered or unexported fields
}
LabelService is a struct
func (*LabelService) FindLabelByID ¶
func (rs *LabelService) FindLabelByID(id int64) (*models.Label, error)
FindLabelByID is a method
type MasterRepository ¶
MasterRepository represents the contract between
func NewMasterService ¶
func NewMasterService(url, uri, useragent, token string) MasterRepository
NewMasterService is a object
type MasterService ¶
type MasterService struct {
// contains filtered or unexported fields
}
MasterService is a struct
func (*MasterService) FindMasterByID ¶
func (rs *MasterService) FindMasterByID(id int64) (*models.Master, error)
FindMasterByID is a method
type MasterVersionsRepository ¶
type MasterVersionsRepository interface {
FindMasterVersionsByID(id int64, pagination models.PaginationRepository) (*models.MasterVersions, error)
}
MasterVersionsRepository represents the contract
func NewMasterVersionsService ¶
func NewMasterVersionsService(url, uri, useragent, token string) MasterVersionsRepository
NewMasterVersionsService is a constructor
type MasterVersionsService ¶
type MasterVersionsService struct {
// contains filtered or unexported fields
}
MasterVersionsService is a struct
func (*MasterVersionsService) FindMasterVersionsByID ¶
func (rs *MasterVersionsService) FindMasterVersionsByID(id int64, pagination models.PaginationRepository) (*models.MasterVersions, error)
FindMasterVersionsByID is a method
type ReleaseRatingRepository ¶
type ReleaseRatingRepository interface {
FindReleaseRatingByID(id int64) (*models.ReleaseRating, error)
}
ReleaseRatingRepository is a contract
func NewReleaseRatingService ¶
func NewReleaseRatingService(url, uri, useragent, token string) ReleaseRatingRepository
NewReleaseRatingService is a constructor
type ReleaseRatingService ¶
type ReleaseRatingService struct {
// contains filtered or unexported fields
}
ReleaseRatingService is a struct
func (*ReleaseRatingService) FindReleaseRatingByID ¶
func (rs *ReleaseRatingService) FindReleaseRatingByID(id int64) (*models.ReleaseRating, error)
FindReleaseRatingByID is a method
type ReleaseRepository ¶
ReleaseRepository represents the contract between
func NewReleaseService ¶
func NewReleaseService(url, uri, currency, useragent, token string) ReleaseRepository
NewReleaseService is a constructor
type ReleaseService ¶
type ReleaseService struct {
// contains filtered or unexported fields
}
ReleaseService is a struct
func (*ReleaseService) FindReleaseByID ¶
func (rs *ReleaseService) FindReleaseByID(id int64) (*models.Release, error)
FindReleaseByID is a method
type SearchService ¶
type SearchService struct {
// contains filtered or unexported fields
}
SearchService is a struct
func (*SearchService) Search ¶
func (rs *SearchService) Search(req models.SearchRequest) (*models.Search, error)
Search is a method
type SearchServiceRepository ¶
type SearchServiceRepository interface {
// Search makes search request to discogs.
// Issue a search query to database. This endpoint accepts pagination parameters.
// Authentication (as any user) is required.
// https://www.discogs.com/developers/#page:database,header:database-search
Search(req models.SearchRequest) (*models.Search, error)
}
SearchServiceRepository is a contract
func NewSearchService ¶
func NewSearchService(url string) SearchServiceRepository
NewSearchService is a constructor