api

package
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	XMLName  xml.Name `xml:"Connection"`
	Protocol string   `xml:"protocol,attr"`
	Address  string   `xml:"address,attr"`
	Port     int      `xml:"port,attr"`
	URI      string   `xml:"uri,attr"`
	Local    bool     `xml:"local,attr"`
}

type Device

type Device struct {
	XMLName     xml.Name     `xml:"Device"`
	Roles       string       `xml:"provides,attr"`
	AccessToken string       `xml:"accessToken,attr"`
	Owned       bool         `xml:"owned,attr"`
	Connections []Connection `xml:"Connection"`
}

type DeviceList

type DeviceList struct {
	XMLName xml.Name `xml:"MediaContainer"`
	Devices []Device `xml:"Device"`
}

type Library

type Library struct {
	Size     int       `json:"size"`
	Sections []Section `json:"Directory"`
}

type LibraryResponse

type LibraryResponse struct {
	Library `json:"MediaContainer"`
}

type Section

type Section struct {
	ID   string `json:"key"`
	Name string `json:"title"`
	Type string `json:"type"`
}

type SectionDetail

type SectionDetail struct {
	TotalSize int `json:"totalSize"`
}

type SectionResponse

type SectionResponse struct {
	SectionDetail `json:"MediaContainer"`
}

type ServerInfo

type ServerInfo struct {
	ID       string `json:"machineIdentifier"`
	Name     string `json:"friendlyName"`
	Version  string `json:"version"`
	Platform string `json:"platform"`
}

type ServerInfoResponse

type ServerInfoResponse struct {
	ServerInfo `json:"MediaContainer"`
}

type SessionList

type SessionList struct {
	Sessions `json:"MediaContainer"`
}

type Sessions

type Sessions struct {
	Size int `json:"size"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL