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 SubsonicRate(ID string, rating int)
- 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 App
- type Artist
- type Config
- type FavoriteKeybinds
- type GlobalKeybinds
- type Keybinds
- type LibraryKeybinds
- type MediaKeybinds
- type NavigationKeybinds
- type OtherKeybinds
- type PlayQueue
- type Playlist
- type QueueKeybinds
- type SearchKeybinds
- type SearchResult3
- type Server
- type ServerConfig
- type Song
- type SubsonicError
- type SubsonicResponse
- type SubsonicUser
- type Theme
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶
func LoadConfig() error
func SaveConfig ¶
func SaveConfig() error
func SubsonicAddToPlaylist ¶
func SubsonicCoverArt ¶
func SubsonicCoverArtUrl ¶
func SubsonicCreateShare ¶
func SubsonicLoginCheck ¶
func SubsonicLoginCheck() error
func SubsonicRate ¶
func SubsonicSaveQueue ¶
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"`
ArtistID string `json:"artistId"`
Duration int64 `json:"duration"`
}
func SubsonicGetAlbumList ¶
func SubsonicGetArtist ¶
type Config ¶
type Config struct {
App App `toml:"app"`
Theme Theme `toml:"theme"`
Keybinds Keybinds `toml:"keybinds"`
}
var AppConfig Config
type FavoriteKeybinds ¶
type GlobalKeybinds ¶
type Keybinds ¶
type Keybinds struct {
Global GlobalKeybinds `toml:"global"`
Search SearchKeybinds `toml:"search"`
Library LibraryKeybinds `toml:"library"`
Media MediaKeybinds `toml:"media"`
Queue QueueKeybinds `toml:"queue"`
Favorites FavoriteKeybinds `toml:"favorites"`
Other OtherKeybinds `toml:"other"`
}
type LibraryKeybinds ¶
type MediaKeybinds ¶
type MediaKeybinds struct {
PlayPause []string `toml:"play_pause"`
Next []string `toml:"next"`
Prev []string `toml:"prev"`
Shuffle []string `toml:"shuffle"`
Loop []string `toml:"loop"`
Restart []string `toml:"restart"`
Rewind []string `toml:"rewind"`
Forward []string `toml:"forward"`
VolumeUp []string `toml:"volume_up"`
VolumeDown []string `toml:"volume_down"`
}
type NavigationKeybinds ¶
type NavigationKeybinds struct {
}
type OtherKeybinds ¶
type OtherKeybinds struct {
ToggleNotifications []string `toml:"toggle_notifications"`
}
type PlayQueue ¶
func SubsonicGetQueue ¶
type Playlist ¶
func SubsonicGetPlaylists ¶
type QueueKeybinds ¶
type QueueKeybinds struct {
ToggleQueueView []string `toml:"toggle_queue_view"`
QueueNext []string `toml:"queue_next"`
QueueLast []string `toml:"queue_last"`
RemoveFromQueue []string `toml:"remove_from_queue"`
ClearQueue []string `toml:"clear_queue"`
MoveUp []string `toml:"move_up"`
MoveDown []string `toml:"move_down"`
}
type SearchKeybinds ¶
type SearchResult3 ¶
type SearchResult3 struct {
Artists []Artist `json:"artist"`
Albums []Album `json:"album"`
Songs []Song `json:"song"`
}
func SubsonicGetStarred ¶
func SubsonicGetStarred() (*SearchResult3, error)
type ServerConfig ¶ added in v2.3.0
type ServerConfig struct {
Server Server `toml:"server"`
}
var AppServerConfig ServerConfig
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"`
Rating int `json:"userRating"`
}
func SubsonicGetAlbum ¶
type SubsonicError ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.