Documentation
¶
Index ¶
- func LoadConfig() error
- func SaveConfig() error
- func SubsonicAddToPlaylist(songID string, playlistID string)
- func SubsonicCoverArt(id string) ([]byte, error)
- func SubsonicCoverArtUrl(id string, size int) string
- func SubsonicCreateShare(ID string) (string, error)
- func SubsonicLoginCheck() error
- func SubsonicSaveQueue(ids []string, currentID string)
- func SubsonicScrobble(id string, submission bool)
- func SubsonicStar(id string)
- func SubsonicStream(id string) string
- func SubsonicUnstar(id string)
- type Album
- type Artist
- type Config
- type PlayQueue
- type Playlist
- type SearchResult3
- type Song
- type SubsonicError
- type SubsonicResponse
- type SubsonicUser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶
func LoadConfig() error
func SaveConfig ¶
func SaveConfig() error
func SubsonicAddToPlaylist ¶ added in v1.6.0
func SubsonicCoverArt ¶
func SubsonicCoverArtUrl ¶ added in v1.3.0
func SubsonicCreateShare ¶ added in v1.7.0
func SubsonicLoginCheck ¶ added in v1.4.0
func SubsonicLoginCheck() error
func SubsonicSaveQueue ¶ added in v1.2.0
func SubsonicScrobble ¶
func SubsonicStar ¶
func SubsonicStar(id string)
func SubsonicStream ¶
func SubsonicUnstar ¶
func SubsonicUnstar(id string)
Types ¶
type Album ¶
type Album struct {
ID string `json:"id"`
Name string `json:"name"`
Artist string `json:"artist"`
Duration int64 `json:"duration"`
}
func SubsonicGetAlbumList ¶ added in v1.1.0
func SubsonicGetArtist ¶
type Config ¶
type Config struct {
Username string `yaml:"username"`
Password string `yaml:"password"`
URL string `yaml:"URL"`
}
var AppConfig Config
type PlayQueue ¶ added in v1.2.0
func SubsonicGetQueue ¶ added in v1.2.0
type Playlist ¶
func SubsonicGetPlaylists ¶
type SearchResult3 ¶
type SearchResult3 struct {
Artists []Artist `json:"artist"`
Albums []Album `json:"album"`
Songs []Song `json:"song"`
}
func SubsonicGetStarred ¶
func SubsonicGetStarred() (*SearchResult3, error)
type Song ¶
type Song struct {
ID string `json:"id"`
Title string `json:"title"`
Artist string `json:"artist"`
ArtistID string `json:"artistId"`
Album string `json:"album"`
AlbumID string `json:"albumId"`
Duration int `json:"duration"`
}
func SubsonicGetAlbum ¶
type SubsonicError ¶ added in v1.4.0
type SubsonicResponse ¶
type SubsonicResponse struct {
Response struct {
Status string `json:"status"`
User *SubsonicUser `json:"user,omitempty"`
Error *SubsonicError `json:"error,omitempty"`
SearchResult SearchResult3 `json:"searchResult3"`
PlaylistContainer struct {
Playlists []Playlist `json:"playlist"`
} `json:"playlists"`
PlaylistDetail struct {
Entries []Song `json:"entry"`
} `json:"playlist"`
Album struct {
Songs []Song `json:"song"`
} `json:"album"`
AlbumList struct {
Albums []Album `json:"album"`
} `json:"albumList"`
Artist struct {
Albums []Album `json:"album"`
} `json:"artist"`
Starred2 struct {
Artist []Artist `json:"artist"`
Album []Album `json:"album"`
Song []Song `json:"song"`
} `json:"starred2"`
PlayQueue PlayQueue `json:"playQueue"`
Shares struct {
ShareList []struct {
URL string `json:"url"`
} `json:"share"`
} `json:"shares"`
} `json:"subsonic-response"`
}
type SubsonicUser ¶ added in v1.4.0
Click to show internal directories.
Click to hide internal directories.