useragent

package
v3.0.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DeviceUnknown = "unknown"
	DeviceDesktop = "desktop"
	DeviceMobile  = "mobile"
	DeviceTablet  = "tablet"
	DeviceOther   = "other" // e.g. bots

	ClientUnknown       = "unknown"
	ClientBrowser       = "browser"
	ClientMobileBrowser = "mobile browser"
	ClientEmailClient   = "email client"
	ClientRobot         = "robot"
)

Variables

View Source
var (
	EmailClients = [...]string{"Windows Live Mail", "Outlook", "Apple Mail", "Thunderbird", "Lotus Notes", "Postbox", "Sparrow", "PocoMail"}
	RegexesPath  = "/var/mailgun/uap_regexes.yaml"
)

Functions

func Parse

func Parse(uagent string) (events.ClientInfo, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL