Documentation ¶
Overview ¶
Package contentdirectory is a generated ContentDirectory package.
Index ¶
- Constants
- type BrowseArgs
- type BrowseResponse
- type Browseable
- type ContainerUpdateIDs
- type CreateObjectArgs
- type CreateObjectResponse
- type DestroyObjectArgs
- type DestroyObjectResponse
- type FavoritePresetsUpdateID
- type FavoritesUpdateID
- type FindPrefixArgs
- type FindPrefixResponse
- type GetAlbumArtistDisplayOptionArgs
- type GetAlbumArtistDisplayOptionResponse
- type GetAllPrefixLocationsArgs
- type GetAllPrefixLocationsResponse
- type GetBrowseableArgs
- type GetBrowseableResponse
- type GetLastIndexChangeArgs
- type GetLastIndexChangeResponse
- type GetSearchCapabilitiesArgs
- type GetSearchCapabilitiesResponse
- type GetShareIndexInProgressArgs
- type GetShareIndexInProgressResponse
- type GetSortCapabilitiesArgs
- type GetSortCapabilitiesResponse
- type GetSystemUpdateIDArgs
- type GetSystemUpdateIDResponse
- type Property
- type RadioFavoritesUpdateID
- type RadioLocationUpdateID
- type RecentlyPlayedUpdateID
- type RefreshShareIndexArgs
- type RefreshShareIndexResponse
- type RequestResortArgs
- type RequestResortResponse
- type SavedQueuesUpdateID
- type Service
- func (s *Service) Browse(args *BrowseArgs) (*BrowseResponse, error)
- func (s *Service) Client() *http.Client
- func (s *Service) ControlEndpoint() *url.URL
- func (s *Service) CreateObject(args *CreateObjectArgs) (*CreateObjectResponse, error)
- func (s *Service) DestroyObject(args *DestroyObjectArgs) (*DestroyObjectResponse, error)
- func (s *Service) EventEndpoint() *url.URL
- func (s *Service) FindPrefix(args *FindPrefixArgs) (*FindPrefixResponse, error)
- func (s *Service) GetAlbumArtistDisplayOption(args *GetAlbumArtistDisplayOptionArgs) (*GetAlbumArtistDisplayOptionResponse, error)
- func (s *Service) GetAllPrefixLocations(args *GetAllPrefixLocationsArgs) (*GetAllPrefixLocationsResponse, error)
- func (s *Service) GetBrowseable(args *GetBrowseableArgs) (*GetBrowseableResponse, error)
- func (s *Service) GetLastIndexChange(args *GetLastIndexChangeArgs) (*GetLastIndexChangeResponse, error)
- func (s *Service) GetSearchCapabilities(args *GetSearchCapabilitiesArgs) (*GetSearchCapabilitiesResponse, error)
- func (s *Service) GetShareIndexInProgress(args *GetShareIndexInProgressArgs) (*GetShareIndexInProgressResponse, error)
- func (s *Service) GetSortCapabilities(args *GetSortCapabilitiesArgs) (*GetSortCapabilitiesResponse, error)
- func (s *Service) GetSystemUpdateID(args *GetSystemUpdateIDArgs) (*GetSystemUpdateIDResponse, error)
- func (s *Service) Location() *url.URL
- func (zp *Service) ParseEvent(body []byte) []interface{}
- func (s *Service) RefreshShareIndex(args *RefreshShareIndexArgs) (*RefreshShareIndexResponse, error)
- func (s *Service) RequestResort(args *RequestResortArgs) (*RequestResortResponse, error)
- func (s *Service) SetBrowseable(args *SetBrowseableArgs) (*SetBrowseableResponse, error)
- func (s *Service) UpdateObject(args *UpdateObjectArgs) (*UpdateObjectResponse, error)
- type ServiceOption
- type SetBrowseableArgs
- type SetBrowseableResponse
- type ShareIndexInProgress
- type ShareIndexLastError
- type ShareListUpdateID
- type SystemUpdateID
- type UpdateObjectArgs
- type UpdateObjectResponse
- type UpnpEvent
- type UserRadioUpdateID
Constants ¶
View Source
const ( ServiceURN = "urn:schemas-upnp-org:service:ContentDirectory:1" EncodingSchema = "http://schemas.xmlsoap.org/soap/encoding/" EnvelopeSchema = "http://schemas.xmlsoap.org/soap/envelope/" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BrowseArgs ¶
type BrowseArgs struct { Xmlns string `xml:"xmlns:u,attr"` ObjectID string `xml:"ObjectID"` // Allowed Value: BrowseMetadata // Allowed Value: BrowseDirectChildren BrowseFlag string `xml:"BrowseFlag"` Filter string `xml:"Filter"` StartingIndex uint32 `xml:"StartingIndex"` RequestedCount uint32 `xml:"RequestedCount"` SortCriteria string `xml:"SortCriteria"` }
type BrowseResponse ¶
type Browseable ¶
type Browseable bool
type ContainerUpdateIDs ¶
type ContainerUpdateIDs string
type CreateObjectArgs ¶
type CreateObjectResponse ¶
type DestroyObjectArgs ¶
type DestroyObjectResponse ¶
type DestroyObjectResponse struct { }
type FavoritePresetsUpdateID ¶
type FavoritePresetsUpdateID string
type FavoritesUpdateID ¶
type FavoritesUpdateID string
type FindPrefixArgs ¶
type FindPrefixResponse ¶
type GetAlbumArtistDisplayOptionArgs ¶
type GetAlbumArtistDisplayOptionArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
}
type GetAlbumArtistDisplayOptionResponse ¶
type GetAlbumArtistDisplayOptionResponse struct {
AlbumArtistDisplayOption string `xml:"AlbumArtistDisplayOption"`
}
type GetBrowseableArgs ¶
type GetBrowseableArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
}
type GetBrowseableResponse ¶
type GetBrowseableResponse struct {
IsBrowseable bool `xml:"IsBrowseable"`
}
type GetLastIndexChangeArgs ¶
type GetLastIndexChangeArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
}
type GetLastIndexChangeResponse ¶
type GetLastIndexChangeResponse struct {
LastIndexChange string `xml:"LastIndexChange"`
}
type GetSearchCapabilitiesArgs ¶
type GetSearchCapabilitiesArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
}
type GetSearchCapabilitiesResponse ¶
type GetSearchCapabilitiesResponse struct {
SearchCaps string `xml:"SearchCaps"`
}
type GetShareIndexInProgressArgs ¶
type GetShareIndexInProgressArgs struct {
}type GetShareIndexInProgressResponse ¶
type GetShareIndexInProgressResponse struct {
}type GetSortCapabilitiesArgs ¶
type GetSortCapabilitiesArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
}
type GetSortCapabilitiesResponse ¶
type GetSortCapabilitiesResponse struct {
SortCaps string `xml:"SortCaps"`
}
type GetSystemUpdateIDArgs ¶
type GetSystemUpdateIDArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
}
type GetSystemUpdateIDResponse ¶
type GetSystemUpdateIDResponse struct {
Id uint32 `xml:"Id"`
}
type Property ¶
type Property struct { XMLName xml.Name `xml:"property"` SystemUpdateID *SystemUpdateID `xml:"SystemUpdateID"` ContainerUpdateIDs *ContainerUpdateIDs `xml:"ContainerUpdateIDs"` UserRadioUpdateID *UserRadioUpdateID `xml:"UserRadioUpdateID"` SavedQueuesUpdateID *SavedQueuesUpdateID `xml:"SavedQueuesUpdateID"` RecentlyPlayedUpdateID *RecentlyPlayedUpdateID `xml:"RecentlyPlayedUpdateID"` Browseable *Browseable `xml:"Browseable"` RadioFavoritesUpdateID *RadioFavoritesUpdateID `xml:"RadioFavoritesUpdateID"` RadioLocationUpdateID *RadioLocationUpdateID `xml:"RadioLocationUpdateID"` FavoritesUpdateID *FavoritesUpdateID `xml:"FavoritesUpdateID"` FavoritePresetsUpdateID *FavoritePresetsUpdateID `xml:"FavoritePresetsUpdateID"` }
type RadioFavoritesUpdateID ¶
type RadioFavoritesUpdateID uint32
type RadioLocationUpdateID ¶
type RadioLocationUpdateID uint32
type RecentlyPlayedUpdateID ¶
type RecentlyPlayedUpdateID string
type RefreshShareIndexArgs ¶
type RefreshShareIndexArgs struct {}
type RefreshShareIndexResponse ¶
type RefreshShareIndexResponse struct { }
type RequestResortArgs ¶
type RequestResortResponse ¶
type RequestResortResponse struct { }
type SavedQueuesUpdateID ¶
type SavedQueuesUpdateID string
type Service ¶
type Service struct { SystemUpdateID *SystemUpdateID ContainerUpdateIDs *ContainerUpdateIDs UserRadioUpdateID *UserRadioUpdateID SavedQueuesUpdateID *SavedQueuesUpdateID RecentlyPlayedUpdateID *RecentlyPlayedUpdateID Browseable *Browseable RadioFavoritesUpdateID *RadioFavoritesUpdateID RadioLocationUpdateID *RadioLocationUpdateID FavoritesUpdateID *FavoritesUpdateID FavoritePresetsUpdateID *FavoritePresetsUpdateID // contains filtered or unexported fields }
func NewService ¶
func NewService(opts ...ServiceOption) *Service
func (*Service) Browse ¶
func (s *Service) Browse(args *BrowseArgs) (*BrowseResponse, error)
func (*Service) ControlEndpoint ¶
func (*Service) CreateObject ¶
func (s *Service) CreateObject(args *CreateObjectArgs) (*CreateObjectResponse, error)
func (*Service) DestroyObject ¶
func (s *Service) DestroyObject(args *DestroyObjectArgs) (*DestroyObjectResponse, error)
func (*Service) EventEndpoint ¶
func (*Service) FindPrefix ¶
func (s *Service) FindPrefix(args *FindPrefixArgs) (*FindPrefixResponse, error)
func (*Service) GetAlbumArtistDisplayOption ¶
func (s *Service) GetAlbumArtistDisplayOption(args *GetAlbumArtistDisplayOptionArgs) (*GetAlbumArtistDisplayOptionResponse, error)
func (*Service) GetAllPrefixLocations ¶
func (s *Service) GetAllPrefixLocations(args *GetAllPrefixLocationsArgs) (*GetAllPrefixLocationsResponse, error)
func (*Service) GetBrowseable ¶
func (s *Service) GetBrowseable(args *GetBrowseableArgs) (*GetBrowseableResponse, error)
func (*Service) GetLastIndexChange ¶
func (s *Service) GetLastIndexChange(args *GetLastIndexChangeArgs) (*GetLastIndexChangeResponse, error)
func (*Service) GetSearchCapabilities ¶
func (s *Service) GetSearchCapabilities(args *GetSearchCapabilitiesArgs) (*GetSearchCapabilitiesResponse, error)
func (*Service) GetShareIndexInProgress ¶
func (s *Service) GetShareIndexInProgress(args *GetShareIndexInProgressArgs) (*GetShareIndexInProgressResponse, error)
func (*Service) GetSortCapabilities ¶
func (s *Service) GetSortCapabilities(args *GetSortCapabilitiesArgs) (*GetSortCapabilitiesResponse, error)
func (*Service) GetSystemUpdateID ¶
func (s *Service) GetSystemUpdateID(args *GetSystemUpdateIDArgs) (*GetSystemUpdateIDResponse, error)
func (*Service) ParseEvent ¶
func (*Service) RefreshShareIndex ¶
func (s *Service) RefreshShareIndex(args *RefreshShareIndexArgs) (*RefreshShareIndexResponse, error)
func (*Service) RequestResort ¶
func (s *Service) RequestResort(args *RequestResortArgs) (*RequestResortResponse, error)
func (*Service) SetBrowseable ¶
func (s *Service) SetBrowseable(args *SetBrowseableArgs) (*SetBrowseableResponse, error)
func (*Service) UpdateObject ¶
func (s *Service) UpdateObject(args *UpdateObjectArgs) (*UpdateObjectResponse, error)
type ServiceOption ¶
type ServiceOption func(*Service)
func WithClient ¶
func WithClient(c *http.Client) ServiceOption
func WithLocation ¶
func WithLocation(u *url.URL) ServiceOption
type SetBrowseableArgs ¶
type SetBrowseableResponse ¶
type SetBrowseableResponse struct { }
type ShareIndexInProgress ¶
type ShareIndexInProgress bool
type ShareIndexLastError ¶
type ShareIndexLastError string
type ShareListUpdateID ¶
type ShareListUpdateID string
type SystemUpdateID ¶
type SystemUpdateID uint32
type UpdateObjectArgs ¶
type UpdateObjectResponse ¶
type UpdateObjectResponse struct { }
type UserRadioUpdateID ¶
type UserRadioUpdateID string
Click to show internal directories.
Click to hide internal directories.