Discover Packages
github.com/ahimgit/navidrome-alexa
pkg
server
api
model
package
Version:
v0.0.2
Opens a new window with list of versions in this module.
Published: Mar 8, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation Source Files Index Constants Variables Functions Types type DeviceVolume type DevicesResponse type PlayerDevice type Queue type Song type VolumeRequest type VolumeResponse NewQueue() (q) Current() (q) HasItems() (q) HasNext() (q) HasPrev() (q) Next() (q) PeekNext() (q) Prev()
Documentation
¶
type DeviceVolume struct {
DeviceSerialNumber string `json:"deviceSerialNumber"`
Muted bool `json:"muted"`
Volume int `json:"volume"`
}
type DevicesResponse struct {
Devices []PlayerDevice `json:"devices"`
}
type PlayerDevice struct {
Name string `json:"name,omitempty"`
DeviceOwnerCustomerId string `json:"deviceOwnerCustomerId"`
DeviceType string `json:"deviceType"`
SerialNumber string `json:"serialNumber"`
}
type Queue struct {
State string `json:"state"`
QueuePosition int `json:"queuePosition"`
TrackPosition int `json:"trackPosition"`
Songs []Song `json:"queue"`
Shuffle bool `json:"shuffle"`
Repeat bool `json:"repeat"`
}
type Song struct {
Id string `json:"id"`
Name string `json:"name"`
Album string `json:"album"`
Artist string `json:"artist"`
Duration int `json:"duration"`
Cover string `json:"cover"`
Stream string `json:"stream"`
}
type VolumeRequest struct {
Device PlayerDevice `json:"device"`
Volume int `json:"volume"`
}
type VolumeResponse struct {
Volumes []DeviceVolume `json:"volumes"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.