Documentation ¶
Index ¶
Constants ¶
View Source
const ( EOsLookUpMode = 1 /* 00000001 */ EUserAgentLookUpMode = 2 /* 00000010 */ EDeviceLookUpMode = 4 /* 00000100 */ )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceSorter ¶
type DeviceSorter []*deviceParser
func (DeviceSorter) Len ¶
func (a DeviceSorter) Len() int
func (DeviceSorter) Less ¶
func (a DeviceSorter) Less(i, j int) bool
func (DeviceSorter) Swap ¶
func (a DeviceSorter) Swap(i, j int)
type Os ¶
type Os struct { Family string Major string Minor string Patch string PatchMinor string `yaml:"patch_minor"` }
func (*Os) ToVersionString ¶
type Parser ¶
type Parser struct { RegexesDefinitions UserAgentMisses uint64 OsMisses uint64 DeviceMisses uint64 Mode int UseSort bool // contains filtered or unexported fields }
func NewFromBytes ¶
func NewWithOptions ¶
func (*Parser) ParseDevice ¶
func (*Parser) ParseUserAgent ¶
type RegexesDefinitions ¶
type UserAgent ¶
func (*UserAgent) ToVersionString ¶
type UserAgentSorter ¶
type UserAgentSorter []*uaParser
func (UserAgentSorter) Len ¶
func (a UserAgentSorter) Len() int
func (UserAgentSorter) Less ¶
func (a UserAgentSorter) Less(i, j int) bool
func (UserAgentSorter) Swap ¶
func (a UserAgentSorter) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.