Documentation
¶
Index ¶
- type Album
- type AlbumAddOptions
- type AlbumRelease
- type Artist
- type ArtistAddOptions
- type BadRequestResponse
- type Client
- func (c *Client) GetAlbums(ctx context.Context, mbID int64) ([]Album, error)
- func (c *Client) GetArtistByID(ctx context.Context, artistID int64) (*Artist, error)
- func (c *Client) Push(ctx context.Context, release Release) ([]string, error)
- func (c *Client) Test(ctx context.Context) (*SystemStatusResponse, error)
- type ClientInterface
- type Config
- type Media
- type PushResponse
- type Release
- type Statistics
- type SystemStatusResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Album ¶
type Album struct { ID int64 `json:"id,omitempty"` Title string `json:"title"` Disambiguation string `json:"disambiguation"` Overview string `json:"overview"` ArtistID int64 `json:"artistId"` ForeignAlbumID string `json:"foreignAlbumId"` ProfileID int64 `json:"profileId"` Duration int `json:"duration"` AlbumType string `json:"albumType"` SecondaryTypes []interface{} `json:"secondaryTypes"` MediumCount int `json:"mediumCount"` Ratings *arr.Ratings `json:"ratings"` ReleaseDate time.Time `json:"releaseDate"` Releases []*AlbumRelease `json:"releases"` Genres []interface{} `json:"genres"` Media []*Media `json:"media"` Artist *Artist `json:"artist"` Links []*arr.Link `json:"links"` Images []*arr.Image `json:"images"` Statistics *Statistics `json:"statistics"` RemoteCover string `json:"remoteCover,omitempty"` AddOptions *AlbumAddOptions `json:"addOptions,omitempty"` Monitored bool `json:"monitored"` AnyReleaseOk bool `json:"anyReleaseOk"` Grabbed bool `json:"grabbed"` }
type AlbumAddOptions ¶
type AlbumAddOptions struct {
SearchForNewAlbum bool `json:"searchForNewAlbum,omitempty"`
}
type AlbumRelease ¶
type AlbumRelease struct { ID int64 `json:"id"` AlbumID int64 `json:"albumId"` ForeignReleaseID string `json:"foreignReleaseId"` Title string `json:"title"` Status string `json:"status"` Duration int `json:"duration"` TrackCount int `json:"trackCount"` Media []*Media `json:"media"` MediumCount int `json:"mediumCount"` Disambiguation string `json:"disambiguation"` Country []string `json:"country"` Label []string `json:"label"` Format string `json:"format"` Monitored bool `json:"monitored"` }
Release is part of an Album.
type Artist ¶
type Artist struct { ID int64 `json:"id"` Status string `json:"status,omitempty"` LastInfoSync time.Time `json:"lastInfoSync,omitempty"` ArtistName string `json:"artistName,omitempty"` ForeignArtistID string `json:"foreignArtistId,omitempty"` TadbID int64 `json:"tadbId,omitempty"` DiscogsID int64 `json:"discogsId,omitempty"` QualityProfileID int64 `json:"qualityProfileId,omitempty"` MetadataProfileID int64 `json:"metadataProfileId,omitempty"` Overview string `json:"overview,omitempty"` ArtistType string `json:"artistType,omitempty"` Disambiguation string `json:"disambiguation,omitempty"` RootFolderPath string `json:"rootFolderPath,omitempty"` Path string `json:"path,omitempty"` CleanName string `json:"cleanName,omitempty"` SortName string `json:"sortName,omitempty"` Links []*arr.Link `json:"links,omitempty"` Images []*arr.Image `json:"images,omitempty"` Genres []string `json:"genres,omitempty"` Tags []int `json:"tags,omitempty"` Added time.Time `json:"added,omitempty"` Ratings *arr.Ratings `json:"ratings,omitempty"` Statistics *Statistics `json:"statistics,omitempty"` LastAlbum *Album `json:"lastAlbum,omitempty"` NextAlbum *Album `json:"nextAlbum,omitempty"` AddOptions *ArtistAddOptions `json:"addOptions,omitempty"` AlbumFolder bool `json:"albumFolder,omitempty"` Monitored bool `json:"monitored"` Ended bool `json:"ended,omitempty"` }
type ArtistAddOptions ¶
type ArtistAddOptions struct { Monitor string `json:"monitor,omitempty"` Monitored bool `json:"monitored,omitempty"` SearchForMissingAlbums bool `json:"searchForMissingAlbums,omitempty"` }
ArtistAddOptions is part of an artist and an album.
type BadRequestResponse ¶
type BadRequestResponse struct { PropertyName string `json:"propertyName"` ErrorMessage string `json:"errorMessage"` ErrorCode string `json:"errorCode"` AttemptedValue string `json:"attemptedValue"` Severity string `json:"severity"` }
func (BadRequestResponse) String ¶
func (r BadRequestResponse) String() string
type ClientInterface ¶
type Media ¶
type Media struct { MediumNumber int64 `json:"mediumNumber"` MediumName string `json:"mediumName"` MediumFormat string `json:"mediumFormat"` }
Media is part of an Album.
type PushResponse ¶
type Release ¶
type Release struct { Title string `json:"title"` InfoUrl string `json:"infoUrl,omitempty"` DownloadUrl string `json:"downloadUrl,omitempty"` MagnetUrl string `json:"magnetUrl,omitempty"` Size uint64 `json:"size"` Indexer string `json:"indexer"` DownloadProtocol string `json:"downloadProtocol"` Protocol string `json:"protocol"` PublishDate string `json:"publishDate"` DownloadClientId int `json:"downloadClientId,omitempty"` DownloadClient string `json:"downloadClient,omitempty"` }
type Statistics ¶
type SystemStatusResponse ¶
type SystemStatusResponse struct {
Version string `json:"version"`
}
Click to show internal directories.
Click to hide internal directories.