Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/benbjohnson/agency
/ functions
Functions
41 in github.com/benbjohnson/agency
⨍
Functions
41
◇
Types & classes
9
↓ 6 callers
Function
NewScanner
NewScanner creates a new user agent scanner.
scanner.go:28
↓ 5 callers
Method
Scan
Scan scans a user agent string for device information.
scanner.go:109
↓ 4 callers
Function
bindataRead
(data []byte, name string)
bindata.go:23
↓ 3 callers
Function
_filePath
(dir, name string)
bindata.go:302
↓ 2 callers
Function
Asset
Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.
bindata.go:157
↓ 2 callers
Method
ModTime
()
bindata.go:64
↓ 2 callers
Method
ScanBytes
ScanBytes scans a user agent byte slice for device information.
scanner.go:37
↓ 1 callers
Function
AssetDir
AssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data c
bindata.go:225
↓ 1 callers
Function
AssetInfo
AssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.
bindata.go:183
↓ 1 callers
Method
Mode
()
bindata.go:61
↓ 1 callers
Function
RestoreAsset
RestoreAsset restores an asset under the given directory
bindata.go:261
↓ 1 callers
Function
dataBrowserCsv
()
bindata.go:83
↓ 1 callers
Function
dataBrowserCsvBytes
()
bindata.go:76
↓ 1 callers
Function
dataDeviceCsv
()
bindata.go:103
↓ 1 callers
Function
dataDeviceCsvBytes
()
bindata.go:96
↓ 1 callers
Function
dataMobileCsv
()
bindata.go:123
↓ 1 callers
Function
dataMobileCsvBytes
()
bindata.go:116
↓ 1 callers
Function
dataOsCsv
()
bindata.go:143
↓ 1 callers
Function
dataOsCsvBytes
()
bindata.go:136
↓ 1 callers
Method
matchBrowser
matchBrowser checks a unigram and bigram against the list of browser tokens.
scanner.go:179
↓ 1 callers
Method
matchDevice
matchDevice checks a unigram and bigram against the list of device tokens.
scanner.go:188
↓ 1 callers
Method
matchMobile
match checks a unigram against the list of mobile tokens.
scanner.go:170
↓ 1 callers
Method
matchOS
matchOS checks a unigram and bigram against the list of OS tokens.
scanner.go:197
↓ 1 callers
Method
read
read retrieves the next rune from the string.
scanner.go:114
↓ 1 callers
Method
readNgrams
readWord reads a word and previous bigram from the string.
scanner.go:138
↓ 1 callers
Method
reset
reset re-initializes the state of the scanner.
scanner.go:206
↓ 1 callers
Method
unread
unread moves back one rune. Only works once.
scanner.go:132
Function
AssetNames
AssetNames returns the names of the assets.
bindata.go:196
Function
BenchmarkScan
(b *testing.B)
scanner_test.go:52
Method
IsDir
()
bindata.go:67
Function
MustAsset
MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.
bindata.go:171
Method
Name
()
bindata.go:55
Function
RestoreAssets
RestoreAssets restores an asset under the given directory recursively
bindata.go:286
Function
Scan
Scan extracts properties from a user agent string.
scanner.go:231
Function
ScanBytes
ScanBytes extracts properties from a user agent byte slice.
scanner.go:226
Method
Size
()
bindata.go:58
Method
Sys
()
bindata.go:70
Function
TestScanBrowser
(t *testing.T)
scanner_test.go:10
Function
TestScanDevice
(t *testing.T)
scanner_test.go:25
Function
TestScanOS
(t *testing.T)
scanner_test.go:37
Function
init
()
agency.go:21