Documentation
¶
Index ¶
- type Globals
- func (g *Globals) GetAccepts() *components.Accepts
- func (g *Globals) GetClientIdentifier() *string
- func (g *Globals) GetDevice() *string
- func (g *Globals) GetDeviceName() *string
- func (g *Globals) GetDeviceVendor() *string
- func (g *Globals) GetMarketplace() *string
- func (g *Globals) GetModel() *string
- func (g *Globals) GetPlatform() *string
- func (g *Globals) GetPlatformVersion() *string
- func (g *Globals) GetProduct() *string
- func (g *Globals) GetVersion() *string
- func (g Globals) MarshalJSON() ([]byte, error)
- func (g *Globals) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Globals ¶
type Globals struct {
// Indicates the client accepts the indicated media types
Accepts *components.Accepts `default:"application/xml" header:"style=simple,explode=false,name=accepts"`
// An opaque identifier unique to the client
ClientIdentifier *string `header:"style=simple,explode=false,name=X-Plex-Client-Identifier"`
// The name of the client product
Product *string `header:"style=simple,explode=false,name=X-Plex-Product"`
// The version of the client application
Version *string `header:"style=simple,explode=false,name=X-Plex-Version"`
// The platform of the client
Platform *string `header:"style=simple,explode=false,name=X-Plex-Platform"`
// The version of the platform
PlatformVersion *string `header:"style=simple,explode=false,name=X-Plex-Platform-Version"`
// A relatively friendly name for the client device
Device *string `header:"style=simple,explode=false,name=X-Plex-Device"`
// A potentially less friendly identifier for the device model
Model *string `header:"style=simple,explode=false,name=X-Plex-Model"`
// The device vendor
DeviceVendor *string `header:"style=simple,explode=false,name=X-Plex-Device-Vendor"`
// A friendly name for the client
DeviceName *string `header:"style=simple,explode=false,name=X-Plex-Device-Name"`
// The marketplace on which the client application is distributed
Marketplace *string `header:"style=simple,explode=false,name=X-Plex-Marketplace"`
}
func (*Globals) GetAccepts ¶ added in v0.26.0
func (g *Globals) GetAccepts() *components.Accepts
func (*Globals) GetClientIdentifier ¶ added in v0.26.0
func (*Globals) GetDeviceName ¶ added in v0.11.11
func (*Globals) GetDeviceVendor ¶ added in v0.26.0
func (*Globals) GetMarketplace ¶ added in v0.26.0
func (*Globals) GetPlatform ¶ added in v0.15.0
func (*Globals) GetPlatformVersion ¶ added in v0.26.0
func (*Globals) GetProduct ¶ added in v0.26.0
func (*Globals) GetVersion ¶ added in v0.26.0
func (Globals) MarshalJSON ¶ added in v0.26.0
func (*Globals) UnmarshalJSON ¶ added in v0.26.0
Click to show internal directories.
Click to hide internal directories.