Discover Packages
github.com/arnarg/plex_exporter
plex
api
package
Version:
v0.2.3
Opens a new window with list of versions in this module.
Published: Dec 8, 2021
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
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 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 struct {
XMLName xml .Name `xml:"MediaContainer"`
Devices []Device `xml:"Device"`
}
type Library struct {
Size int `json:"size"`
Sections []Section `json:"Directory"`
}
type LibraryResponse struct {
Library `json:"MediaContainer"`
}
type Section struct {
ID string `json:"key"`
Name string `json:"title"`
Type string `json:"type"`
}
type SectionDetail struct {
TotalSize int `json:"totalSize"`
}
type SectionResponse struct {
SectionDetail `json:"MediaContainer"`
}
type ServerInfo struct {
ID string `json:"machineIdentifier"`
Name string `json:"friendlyName"`
Version string `json:"version"`
Platform string `json:"platform"`
}
type ServerInfoResponse struct {
ServerInfo `json:"MediaContainer"`
}
type SessionList struct {
Sessions `json:"MediaContainer"`
}
type Sessions struct {
Size int `json:"size"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.