Documentation
¶
Index ¶
- Constants
- func Release(ctx *Ctx)
- type ClientType
- type Ctx
- func (c *Ctx) FilterClientType(mask ClientType) *Ctx
- func (c *Ctx) FilterDeviceType(mask DeviceType) *Ctx
- func (c *Ctx) GetBrand() string
- func (c *Ctx) GetBrowser() string
- func (c *Ctx) GetBrowserVersion() *Version
- func (c *Ctx) GetBrowserVersionString() string
- func (c *Ctx) GetClientType() ClientType
- func (c *Ctx) GetDeviceType() DeviceType
- func (c *Ctx) GetEngine() string
- func (c *Ctx) GetEngineVersion() *Version
- func (c *Ctx) GetEngineVersionString() string
- func (c *Ctx) GetModel() string
- func (c *Ctx) GetOS() string
- func (c *Ctx) GetOSVersion() *Version
- func (c *Ctx) GetOSVersionString() string
- func (c *Ctx) GetUserAgent() string
- func (c *Ctx) Reset()
- func (c *Ctx) SetRequestedWith(header string) *Ctx
- func (c *Ctx) SetUserAgent(src []byte) *Ctx
- func (c *Ctx) SetUserAgentStr(src string) *Ctx
- type DeviceType
- type Pool
- type Version
Constants ¶
View Source
const (
Unknown = "UNK"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClientType ¶
type ClientType uint8
const ( ClientTypeBrowser ClientType = 1 << iota ClientTypeMobileApp ClientTypeLibrary ClientTypeFeedReader ClientTypeMediaPlayer ClientTypePIM ClientTypeAll = ClientTypeBrowser | ClientTypeMobileApp | ClientTypeLibrary | ClientTypeFeedReader | ClientTypeMediaPlayer | ClientTypePIM )
func (ClientType) String ¶
func (t ClientType) String() string
type Ctx ¶
func AcquireWithSrc ¶
func AcquireWithSrcStr ¶
func NewCtxWithSrc ¶
func NewCtxWithSrcStr ¶
func (*Ctx) FilterClientType ¶
func (c *Ctx) FilterClientType(mask ClientType) *Ctx
func (*Ctx) FilterDeviceType ¶
func (c *Ctx) FilterDeviceType(mask DeviceType) *Ctx
func (*Ctx) GetBrowser ¶
func (*Ctx) GetBrowserVersion ¶
func (*Ctx) GetBrowserVersionString ¶
func (*Ctx) GetClientType ¶
func (c *Ctx) GetClientType() ClientType
func (*Ctx) GetDeviceType ¶
func (c *Ctx) GetDeviceType() DeviceType
func (*Ctx) GetEngineVersion ¶
func (*Ctx) GetEngineVersionString ¶
func (*Ctx) GetOSVersion ¶
func (*Ctx) GetOSVersionString ¶
func (*Ctx) GetUserAgent ¶
func (*Ctx) SetRequestedWith ¶
func (*Ctx) SetUserAgent ¶
func (*Ctx) SetUserAgentStr ¶
type DeviceType ¶
type DeviceType uint16
const ( DeviceTypeNotebook DeviceType = 1 << iota DeviceTypeMobile DeviceTypePhablet DeviceTypeTablet DeviceTypeConsole DeviceTypeTV DeviceTypeShellTV DeviceTypeCamera DeviceTypeCarBrowser DeviceTypePortableMediaPlayer DeviceTypeAll = DeviceTypeTV | DeviceTypeShellTV | DeviceTypeNotebook | DeviceTypeConsole | DeviceTypeCarBrowser | DeviceTypeCamera | DeviceTypePortableMediaPlayer | DeviceTypeMobile | DeviceTypePhablet | DeviceTypeTablet )
func (DeviceType) String ¶
func (t DeviceType) String() string
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
var ( // P is a default instance of the pool. // Just call uaxpl.Acquire() and uaxpl.Release(). P Pool )
Source Files
¶
Click to show internal directories.
Click to hide internal directories.