Documentation
¶
Index ¶
- type Agent
- type DeviceKind
- type PlatformSignals
- func (s PlatformSignals) IsAndroid() bool
- func (s PlatformSignals) IsChromeOS() bool
- func (s PlatformSignals) IsIOS() bool
- func (s PlatformSignals) IsIPad() bool
- func (s PlatformSignals) IsIPhone() bool
- func (s PlatformSignals) IsLinux() bool
- func (s PlatformSignals) IsMacOS() bool
- func (s PlatformSignals) IsWindows() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct {
Raw string
Browser string
OS string
Device string
DeviceKind DeviceKind
Mobile bool
}
func (Agent) BrowserSummary ¶
type DeviceKind ¶
type DeviceKind string
const ( DeviceDesktop DeviceKind = "desktop" DevicePhone DeviceKind = "phone" DeviceTablet DeviceKind = "tablet" DeviceUnknown DeviceKind = "unknown" )
type PlatformSignals ¶
type PlatformSignals struct {
// contains filtered or unexported fields
}
func NewPlatformSignals ¶
func NewPlatformSignals(platformHint, rawUserAgent string) PlatformSignals
func (PlatformSignals) IsAndroid ¶
func (s PlatformSignals) IsAndroid() bool
func (PlatformSignals) IsChromeOS ¶
func (s PlatformSignals) IsChromeOS() bool
func (PlatformSignals) IsIOS ¶
func (s PlatformSignals) IsIOS() bool
func (PlatformSignals) IsIPad ¶
func (s PlatformSignals) IsIPad() bool
func (PlatformSignals) IsIPhone ¶
func (s PlatformSignals) IsIPhone() bool
func (PlatformSignals) IsLinux ¶
func (s PlatformSignals) IsLinux() bool
func (PlatformSignals) IsMacOS ¶
func (s PlatformSignals) IsMacOS() bool
func (PlatformSignals) IsWindows ¶
func (s PlatformSignals) IsWindows() bool
Click to show internal directories.
Click to hide internal directories.